@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;600;700&display=swap');

.tcls-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(44, 42, 36, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.tcls-popup-overlay[hidden] {
    display: none !important;
    opacity: 0;
}

body.admin-bar .tcls-popup-overlay {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .tcls-popup-overlay {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.tcls-popup-card {
    background-color: #ffffff;
    border: 1px solid #E8E2D8;
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.tcls-popup-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #C9A96E;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.tcls-popup-title {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    color: #2C2A24;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.tcls-popup-text {
    font-size: 15px;
    color: #6B6760;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.tcls-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    text-align: left;
}

.tcls-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: #6B6760;
    line-height: 1.4;
    cursor: pointer;
}

.tcls-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #E8E2D8;
    border-radius: 4px;
    background-color: #fff;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tcls-checkbox:checked {
    background-color: #C9A96E;
    border-color: #C9A96E;
}

.tcls-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tcls-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.tcls-btn {
    width: 100%;
    padding: 14px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    line-height: 1;
}

.tcls-btn-primary {
    background-color: #C9A96E;
    color: #ffffff;
    border: none;
    text-transform: uppercase;
    border-radius: 0;
}

.tcls-btn-primary:hover:not(:disabled) {
    background-color: #B8943A;
}

.tcls-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tcls-btn-secondary {
    background-color: transparent;
    color: #2C2A24;
    border: 1px solid #2C2A24;
    border-radius: 0;
}

.tcls-btn-secondary:hover {
    background-color: #f5f5f5;
}

.tcls-popup-footer {
    font-size: 12px;
    color: #6B6760;
    margin: 0;
    line-height: 1.4;
}

.tcls-popup-footer a {
    color: #6B6760;
    text-decoration: underline;
}

.tcls-popup-footer a:hover {
    color: #2C2A24;
}

body.tcls-popup-active {
    overflow: hidden !important;
}