﻿#logout-warning {
    position: fixed;
    display: none;
    z-index: 1071;
    width: 100%;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    background: rgba(0, 0, 0, 0.5);
}

#logout-warning .afs-modal-content {
    max-height: 70vh;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    height: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 12px;
    padding: 30px 30px 25px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    margin: 0 auto;
}

#logout-warning .afs-modal-center-content,
.logout-warning-center-content {
    text-align: center;
}

#logout-warning .afs-modal-center-content {
    margin-top: 10px;
}

.logout-warning-center-content {
    margin-top: 0;
}

.warning-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    display: block;
}

#logout-warning .modal-title {
    color: #2d3436;
    font-size: 25px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

#logout-warning .modal-text {
    color: #636e72;
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 25px 0;
    font-weight: 400;
}

#logout-warning .modal-text span {
    display: inline;
    margin: 0;
    padding: 0;
}

#logout-warning .modal-text span:last-child {
    display: block;
    margin-top: 20px;
    padding: 0;
}

#logout-warning #countdown {
    color: #ff4757;
    font-weight: 600;
    margin: 0;
    padding: 0;
    display: inline;
}

#logout-warning #countdownText {
    color: #ff4757;
    display: inline;
}

#logout-warning #timerContainer {
    margin-top: 20px;
    font-size: 20px;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

#logout-warning #stay-loggedin-btn {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 35px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px 5px 0;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 15rem;
}

#logout-warning #stay-loggedin-btn:hover {
    background: linear-gradient(135deg, #00a085, #008f75);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

#logout-warning #logout-btn {
    background: transparent;
    color: #666;
    border: none;
    border-radius: 25px;
    padding: 10px 35px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px 5px 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

#logout-warning #logout-btn:hover {
    background: #f8f9fa;
    color: #333;
}

#logout-warning .productSpecificationAttribute-title h3 {
    color: #007855;
}

#logout-warning .productSpecificationAttribute-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 10px auto;
    flex-wrap: wrap;
}

/* Tablet and Mobile Styles */
@media only screen and (max-width: 850px) {
    #logout-warning .afs-modal-content {
        width: 90%;
        max-width: 90%;
        padding: 30px 20px 25px;
    }

    .warning-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 20px;
    }

    #logout-warning .modal-title {
        font-size: 20px;
    }

    #logout-warning .modal-text {
        font-size: 14px;
    }

    #logout-warning #stay-loggedin-btn,
    #logout-warning #logout-btn {
        padding: 10px 35px;
        font-size: 14px;
    }
}

/* Short Screen Height Styles */
@media only screen and (max-height: 740px) {
    #afsModal .afs-modal-content {
        height: 80% !important;
    }
}

@media only screen and (max-height: 550px) {
    #afsModal .afs-modal-content {
        height: 90% !important;
    }

    #logout-warning .afs-modal-content {
        padding: 25px 20px 20px;
    }

    .warning-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
    }
}