/* Glint Popup Message Styles */

.glint-popup-message {
    position: fixed;
    bottom: 0;
    left: 0;
    right: auto;
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    visibility: hidden;
}

.glint-popup-message.show {
    transform: translateY(0);
    visibility: visible;
}

.glint-popup-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 5px 5px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px 40px;
    font-size: 0.85rem;
}

.glint-popup-content ul{
    margin: 5px 0;
    padding-left: 0;
}

.glint-popup-content li{
    list-style: inside;
}

.glint-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.glint-popup-close:hover,
.glint-popup-close:focus {
    background-color: #f0f0f0;
    color: #333;
    outline: none;
}

.glint-popup-body {
    margin-top: 10px;
    line-height: 1.6;
}

.glint-popup-body p {
    margin: 0 0 10px 0;
}

.glint-popup-body p:last-child {
    margin-bottom: 0;
}

/* Animation for smooth appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        visibility: hidden;
    }
    to {
        transform: translateY(0);
        visibility: visible;
    }
}

/* Ensure popup doesn't interfere with page content */
.glint-popup-message * {
    box-sizing: border-box;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glint-popup-content {
        border: 2px solid;
    }

    .glint-popup-close {
        border: 1px solid;
    }
}
