/* Unlock UI Styles - extracted from templates/payments/unlock-ui.php */

:root {
    --cbt-primary: #0b78d1;
    --cbt-success: #10b981;
    --cbt-bg-soft: #f8fafc;
    --cbt-text-main: #0f172a;
    --cbt-text-muted: #64748b;
    --cbt-border-light: #e2e8f0;
}

.cbt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    /* Ensure it sits on top of everything including admin bar if necessary */
}

.cbt-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
}

.cbt-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 600px;
    /* Reduced from 700px */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: cbtSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cbt-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(241, 245, 249, 0.8);
    border: none;
    width: 24px;
    /* Tiny close button */
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #475569;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.cbt-modal-close:hover {
    background: #f1f5f9;
    color: #ef4444;
    transform: rotate(90deg);
}

.cbt-unlock-header {
    padding: 20px 20px 10px;
    /* Very tight header */
    text-align: center;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.cbt-unlock-header h3 {
    margin: 0 0 4px;
    font-size: 1.5rem;
    /* Reduced from 1.75rem */
    font-weight: 800;
    color: var(--cbt-text-main);
    letter-spacing: -0.025em;
}

.cbt-unlock-header p {
    margin: 0;
    color: var(--cbt-text-muted);
    font-size: 0.9rem;
    /* Reduced from 1rem */
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.4;
}

.cbt-unlock-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    /* Very small gap */
    padding: 12px 20px 24px;
}

.cbt-unlock-option-card {
    border: 1px solid var(--cbt-border-light);
    border-radius: 12px;
    padding: 16px;
    /* Reduced from 24px */
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
}

.cbt-unlock-option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.1);
}

.cbt-unlock-option-card.highlighted {
    border: 2px solid var(--cbt-primary);
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    box-shadow: 0 10px 15px -5px rgba(11, 120, 209, 0.1);
}

.opt-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cbt-primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.opt-label {
    font-weight: 700;
    color: var(--cbt-text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.opt-price {
    font-size: 1.75rem;
    /* Reduced from 2rem */
    font-weight: 900;
    color: var(--cbt-text-main);
    margin-bottom: 2px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.opt-price small {
    font-size: 0.8rem;
    color: var(--cbt-text-muted);
    font-weight: 500;
}

.opt-validity {
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--cbt-border-light);
}

.opt-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
    font-size: 0.8rem;
    /* Smaller features */
    color: #334155;
    flex-grow: 1;
}

.opt-features li {
    list-style: none !important;
    margin-bottom: 8px !important;
    /* Tighter lines */
    padding-left: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px;
    line-height: 1.3;
}

.opt-features li::before {
    content: "" !important;
    width: 14px;
    /* Smaller tick */
    height: 14px;
    background-color: var(--cbt-success);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd' /%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd' /%3E%3C/svg%3E") no-repeat center;
    display: inline-block;
    flex-shrink: 0;
    margin-top: 2px;
}

.cbt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    /* Reduced button sizing */
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.cbt-button.primary {
    background: var(--cbt-primary);
    color: #fff;
    box-shadow: 0 4px 10px 0 rgba(11, 120, 209, 0.25);
}

.cbt-button.primary:hover {
    background: #0966b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(11, 120, 209, 0.35);
}

.cbt-button.success {
    background: var(--cbt-success);
    color: #fff;
    box-shadow: 0 4px 10px 0 rgba(16, 185, 129, 0.25);
}

.cbt-button.success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.35);
}

.cbt-button.full-width {
    width: 100%;
}

.opt-more-plans {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--cbt-border-light);
}

.opt-more-plans a {
    color: var(--cbt-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
}

.opt-more-plans a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cbt-unlock-options {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .cbt-modal-content {
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 20px;
    }

    .cbt-unlock-header {
        padding: 30px 20px 10px;
    }
}

@keyframes cbtSlideUp {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}