/**
 * WooCommerce Styles
 */

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-wrapper {
    min-height: 100vh;
    background: var(--color-black);
    padding: 2rem 0;
}

.checkout-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 4rem;
    align-items: start;
}

/* LEFT COLUMN */
.checkout-form-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem;
}

.checkout-header {
    margin-bottom: 3rem;
}

.checkout-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-white);
    text-decoration: none;
    margin-bottom: 2rem;
}

.checkout-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.checkout-subtitle {
    font-size: 1rem;
    color: var(--color-gray-light);
}

.field-section-title {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Fields */
.woocommerce-billing-fields,
.woocommerce-shipping-fields {
    margin-bottom: 2rem;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.form-row .required {
    color: var(--color-primary);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-white);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row input[type="tel"]:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-row input::placeholder {
    color: var(--color-gray);
}

.form-row .description {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-top: 0.5rem;
}

/* Payment Methods */
.wc_payment_methods {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.wc_payment_method {
    margin-bottom: 1rem;
}

.wc_payment_method label {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.wc_payment_method label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 102, 255, 0.3);
}

.wc_payment_method input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
}

.wc_payment_method input[type="radio"]:checked + label {
    border-color: var(--color-primary);
    background: rgba(0, 102, 255, 0.1);
}

.payment_box {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

/* Checkout Submit Button */
.checkout-submit {
    width: 100%;
    margin-top: 1.5rem;
}

/* Trust Badges */
.checkout-trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trust-badge-icon {
    font-size: 1.5rem;
}

.trust-badge-text {
    font-size: 0.75rem;
    color: var(--color-gray-light);
    text-align: center;
}

/* RIGHT COLUMN */
.checkout-summary-column {
    position: sticky;
    top: 2rem;
}

.order-summary {
    padding: 2.5rem;
}

.summary-title {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

/* Order Review */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 1rem 0;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.woocommerce-checkout-review-order-table th {
    font-weight: 600;
    color: var(--color-white);
}

.woocommerce-checkout-review-order-table td {
    color: var(--color-gray-light);
    text-align: right;
}

.cart_item .product-name {
    font-weight: 600;
    color: var(--color-white);
}

.cart_item .product-total {
    font-size: 1.125rem;
    color: var(--color-primary-light);
}

.order-total th {
    font-size: 1.25rem;
    color: var(--color-white);
}

.order-total td {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-light);
}

/* Summary Features */
.summary-features {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 8px;
}

.summary-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--color-gray-light);
}

.summary-feature .feature-icon {
    color: var(--color-green);
    font-weight: 700;
}

/* Guarantee Badge */
.summary-guarantee {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.guarantee-badge {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
}

.guarantee-icon {
    font-size: 2rem;
}

.guarantee-text strong {
    display: block;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.guarantee-text p {
    font-size: 0.875rem;
    color: var(--color-gray-light);
    margin: 0;
}

/* ============================================
   ORDER RECEIVED / THANK YOU PAGE
   ============================================ */
.order-success-custom {
    max-width: 800px;
    margin: 4rem auto;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.success-animation {
    margin-bottom: 2rem;
    animation: successPop 0.6s ease-out;
}

.success-animation svg {
    animation: checkDraw 0.8s ease-out 0.3s both;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkDraw {
    0% {
        stroke-dasharray: 0 100;
    }
    100% {
        stroke-dasharray: 100 100;
    }
}

.success-title {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 2rem;
}

.license-display {
    margin: 2rem 0;
    padding: 2rem;
}

.license-label {
    font-size: 1rem;
    color: var(--color-gray-light);
    margin-bottom: 1rem;
}

.license-key-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 102, 255, 0.1);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

#license-key {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--color-primary-light);
    letter-spacing: 0.1em;
}

.btn-copy {
    padding: 0.5rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-copy:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

.post-purchase-info {
    margin-top: 3rem;
    text-align: left;
}

.post-purchase-info h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.post-purchase-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.post-purchase-info li {
    padding: 0.5rem 0;
    color: var(--color-gray-light);
    padding-left: 1.5rem;
    position: relative;
}

.post-purchase-info li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.community-link {
    text-align: center;
    margin: 2rem 0;
}

.community-link a {
    color: var(--color-primary-light);
    font-weight: 600;
}

.email-notice {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   WOOCOMMERCE NOTICES
   ============================================ */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.woocommerce-error {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    color: #ff6666;
}

.woocommerce-info {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary-light);
}

.woocommerce-message {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--color-green);
    color: var(--color-green);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .checkout-summary-column {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-form-column,
    .order-summary {
        padding: 2rem 1.5rem;
    }
    
    .checkout-trust-badges {
        flex-direction: column;
        gap: 1rem;
    }
    
    .license-key-box {
        flex-direction: column;
    }
    
    #license-key {
        font-size: 1.125rem;
    }
}

/* ============================================
   BUTTON RIPPLE EFFECT
   ============================================ */
.btn {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   LOADING STATES
   ============================================ */
.woocommerce-checkout .blockUI.blockOverlay {
    background: rgba(0, 0, 0, 0.8) !important;
}

.woocommerce-checkout .blockUI.blockOverlay::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 102, 255, 0.3);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -20px 0 0 -20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
