/* Salient Modal Styles for Member Frontend */
.nectar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: none;
}

.nectar-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: nectarModalBackdropIn 0.3s ease-out;
}

@keyframes nectarModalBackdropIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.nectar-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 1;

    container-type: inline-size;
}

.nectar-modal-content::-webkit-scrollbar {
    width: 6px;
}

.nectar-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.nectar-modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.nectar-modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.nectar-modal-header {
    padding: 25px 30px 20px 30px;
    /* border-bottom: 1px solid #e5e5e5; */
    position: relative;
}

.nectar-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.nectar-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.nectar-modal-close:hover {
    background-color: #f5f5f5;
    transform: scale(1.1);
}

.nectar-modal-close:active {
    transform: scale(0.95);
}

.nectar-modal-close .icon-salient-m-close {
    font-size: 18px;
    color: #666;
    line-height: 1;
}

.nectar-modal-body {
    padding: 0 30px;
}

.nectar-modal-body p {
    margin: 0 0 20px 0;
    padding-bottom: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.nectar-modal-footer {
    padding: 20px 30px;
    /* border-top: 1px solid #e5e5e5; */
    display: flex;
    flex-direction: column;

    @container (min-width: 500px) {
        flex-direction: row;
    }

    gap: 15px;
    align-items: center;
    justify-content: center;
}

.nectar-modal-footer .nectar-button {
    margin: 0;
    min-width: 200px;
    text-align: center;
    transition: all 0.2s ease;
    background: #0098dd;
    padding: 14px !important;
}

.nectar-modal-footer .nectar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media only screen and (max-width: 690px) {
    .nectar-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .nectar-modal-header,
    .nectar-modal-body,
    .nectar-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nectar-modal-header h3 {
        font-size: 20px;
        padding-right: 40px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .nectar-modal-content {
        background: #2a2a2a;
        color: #fff;
    }

    .nectar-modal-header {
        border-bottom-color: #444;
    }

    .nectar-modal-header h3 {
        color: #fff;
    }

    .nectar-modal-body p {
        color: #ccc;
    }

    .nectar-modal-footer {
        border-top-color: #444;
    }

    .nectar-modal-close:hover {
        background-color: #444;
    }

    .nectar-modal-close .icon-salient-m-close {
        color: #ccc;
    }

    .nectar-modal-content::-webkit-scrollbar-track {
        background: #444;
    }

    .nectar-modal-content::-webkit-scrollbar-thumb {
        background: #666;
    }

    .nectar-modal-content::-webkit-scrollbar-thumb:hover {
        background: #888;
    }
}
