/* Course Access Manager Frontend Styles */
.cam-package-button {
    display: inline-block;
    padding: 12px 24px;
    background: #2271b1;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
}

.cam-package-button:hover {
    background: #135e96;
    color: white;
}

.cam-package-button.cam-purchased {
    background: #46b450;
    cursor: not-allowed;
}

.cam-package-button.cam-purchased:hover {
    background: #46b450;
}

.cam-wayforpay-payment {
    margin: 20px 0;
}

.cam-wayforpay-payment form {
    display: inline-block;
}


.cam-wayforpay-payment .cam-buy-button {
    display: inline-block;
    padding: 12px 24px;
    background: #2271b1;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cam-wayforpay-payment .cam-buy-button:hover {
    background: #135e96;
}

.cam-thank-you {
    max-width: 600px;
    width: 100%;
    margin: 0;
    padding: 30px;
    background: white;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 20px 20px 0px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.cam-thank-you h2 {
    color: #46b450;
    margin-top: 0;
}

.cam-thank-you .cam-magic-link-button {
    display: inline-block;
    padding: 12px 24px;
    background: #2271b1;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
}

.cam-thank-you .cam-magic-link-button:hover {
    background: #135e96;
}

.cam-thank-you.cam-waiting {
    background: white;
}

.cam-thank-you.cam-waiting h2 {
    color: #f56e28;
}

.cam-price-display {
    margin: 10px 0;
    font-size: 18px;
}

.cam-original-price {
    text-decoration: line-through !important;
    color: #8c8f94;
    margin-right: 8px;
}

.cam-discount-badge {
    display: inline-block;
    background: #46b450;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.cam-error {
    color: #d63638;
    padding: 10px;
    background: #f6f7f7;
    border-radius: 4px;
    border-left: 4px solid #d63638;
}

/* Package shortcode wrapper */
.cam-package-shortcode {
    display: inline-block;
    margin: 10px 0;
}

/* Currency display */
.cam-uah-price {
    color: #2271b1;
    font-weight: 600;
}

/* Thank you page animations */
.cam-thank-you {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Thank you page responsiveness */
@media (max-width: 768px) {
    .cam-thank-you {
        margin: 20px;
        padding: 20px;
        max-width: calc(100% - 40px);
    }
    
    .cam-thank-you h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .cam-thank-you p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .cam-thank-you .cam-magic-link-button {
        padding: 15px 30px;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
        margin-top: 25px;
    }
    
    .cam-thank-you.cam-waiting h2 {
        font-size: 1.5rem;
    }
    
    .cam-thank-you.cam-waiting p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .cam-thank-you {
        margin: 15px;
        padding: 15px;
        max-width: calc(100% - 30px);
    }
    
    .cam-thank-you h2 {
        font-size: 1.3rem;
    }
    
    .cam-thank-you .cam-magic-link-button {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}

 /* Full-page white background wrapper for thank-you page */
.cam-thank-you-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-sizing: border-box;
}

/* Checkout button */
.cam-checkout-button {
    display: block;
    max-width: 200px;
    padding: 12px 24px;
    background: linear-gradient(168deg, rgba(253, 192, 193, 1) 19%, rgba(192, 80, 97, 1) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    font-family: Montserrat;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
    margin: 0 auto;
    box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.15);
}

input[type="checkbox"] {
  accent-color: #C05061;
}


.cam-checkout-button:hover {
    background: #C05061;
    color: white;
}

.cam-checkout-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #cccccc !important;
}

.cam-checkout-button--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #cccccc !important;
    pointer-events: none;
}

.cam-logged-in-user {
    font-weight: bold;
    margin-bottom: 10px;
}

.cam-logged-in-email {
    color: #666;
    font-size: 0.9em;
}

.cam-cart-error {
    color: #d63638;
    padding: 10px;
    background: #f6f7f7;
    border-radius: 4px;
    border-left: 4px solid #d63638;
    display: block;
    margin: 10px 0;
}

/* In assets/css/frontend.css */
.cam-error {
    border-color: #dc3232 !important;
}

.cam-error-message {
    color: #dc3232;
    font-size: 0.9em;
    margin-top: 5px;
}

.cam-info {
    border-color: #46b450 !important;
}

.cam-info-message {
    color: #46b450;
    font-size: 0.9em;
    margin-top: 5px;
}

.cam-global-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.cam-checkout-reg-message {
    margin-bottom: 10px;
    color: #333;
    font-family: Montserrat;
    font-weight: 300;
    font-size: 1em;
}

.cam-field-readonly {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    border-color: #ddd;
}