/**
 * WooCommerce Shopify Integration - Subtle Checkout Theme
 * Professional and clean for customers
 */

:root {
    --checkout-primary: #00FF41;
    --checkout-dark: #001100;
    --checkout-glow: rgba(0, 255, 65, 0.3);
}

/* ============================================
   CHECKOUT BUTTON - Professional Style
   ============================================ */

#place_order.wsi-checkout-button {
    background: linear-gradient(135deg, #00AA2E 0%, #00FF41 100%) !important;
    border: 2px solid #00FF41 !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 14px 32px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    position: relative;
    min-height: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3) !important;
    text-shadow: none !important;
}

#place_order.wsi-checkout-button:hover {
    background: linear-gradient(135deg, #00FF41 0%, #00DD36 100%) !important;
    border-color: #00FF41 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.4) !important;
}

#place_order.wsi-checkout-button:disabled,
#place_order.wsi-checkout-button.wsi-processing {
    background: #999999 !important;
    border-color: #777777 !important;
    color: #FFFFFF !important;
    cursor: not-allowed;
    transform: none !important;
    opacity: 0.7;
    box-shadow: none !important;
}

/* ============================================
   BUTTON SPINNER
   ============================================ */

.wsi-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: wsi-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes wsi-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   CHECKOUT NOTICES - Clean Style
   ============================================ */

.wsi-checkout-notice {
    background: #F0FFF4 !important;
    border: 1px solid #00FF41 !important;
    border-left: 4px solid #00FF41 !important;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: #004D00 !important;
}

.wsi-checkout-notice::before {
    content: "🔒 ";
    margin-right: 4px;
}

/* ============================================
   ERROR MESSAGES - Clear and Visible
   ============================================ */

.wsi-error-message,
.woocommerce-error,
.woocommerce-notice--error {
    background: #FFF5F5 !important;
    border: 2px solid #FF0000 !important;
    border-left: 4px solid #FF0000 !important;
    color: #CC0000 !important;
    padding: 14px 18px !important;
    margin-bottom: 20px;
    border-radius: 4px !important;
    animation: wsi-slideDown 0.3s ease-out;
    font-weight: 600;
}

.wsi-error-message::before,
.woocommerce-error::before,
.woocommerce-notice--error::before {
    content: "⚠ " !important;
    font-weight: 700;
}

@keyframes wsi-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SUCCESS MESSAGES
   ============================================ */

.woocommerce-message,
.woocommerce-notice--success {
    background: #F0FFF4 !important;
    border: 2px solid #00FF41 !important;
    border-left: 4px solid #00FF41 !important;
    color: #004D00 !important;
    padding: 14px 18px !important;
    margin-bottom: 20px;
    border-radius: 4px !important;
    font-weight: 600;
}

.woocommerce-message::before,
.woocommerce-notice--success::before {
    content: "✓ " !important;
    color: #00FF41;
}

/* ============================================
   FORM STYLING - Clean and Professional
   ============================================ */

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    border: 1px solid #DDDDDD !important;
    border-radius: 4px !important;
    padding: 10px 14px !important;
    transition: all 0.3s ease !important;
}

.woocommerce-checkout input[type="text"]:focus,
.woocommerce-checkout input[type="email"]:focus,
.woocommerce-checkout input[type="tel"]:focus,
.woocommerce-checkout input[type="password"]:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #00FF41 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.1) !important;
}

.woocommerce-checkout label {
    color: #333333 !important;
    font-weight: 600 !important;
}

/* ============================================
   HIDE UNNECESSARY ELEMENTS
   ============================================ */

.wc_payment_methods,
.payment_box {
    display: none !important;
}

/* ============================================
   CHECKOUT PAGE LAYOUT
   ============================================ */

.woocommerce-checkout .woocommerce-checkout-payment {
    background: transparent;
    padding: 0;
}

/* ============================================
   LOADING STATE
   ============================================ */

.wsi-processing {
    pointer-events: none;
    position: relative;
}

/* ============================================
   TEST MODE INDICATOR
   ============================================ */

.wsi-test-mode-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #FF6600;
    color: white;
    padding: 10px 18px;
    border: 2px solid #FF8800;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    z-index: 99999;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wsi-test-mode-indicator::before {
    content: "⚠ ";
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) {
    #place_order.wsi-checkout-button {
        width: 100%;
        font-size: 15px !important;
        padding: 16px 20px !important;
    }

    .wsi-checkout-notice {
        font-size: 13px;
        padding: 12px 16px;
    }

    .wsi-test-mode-indicator {
        bottom: 10px;
        right: 10px;
        font-size: 11px;
        padding: 8px 14px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

#place_order.wsi-checkout-button:focus {
    outline: 3px solid rgba(0, 255, 65, 0.5) !important;
    outline-offset: 2px;
}

/* ============================================
   ORDER REVIEW TABLE - Clean Style
   ============================================ */

.woocommerce-checkout-review-order-table {
    border: 1px solid #DDDDDD !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    border: 1px solid #EEEEEE !important;
    padding: 12px !important;
}

.woocommerce-checkout-review-order-table thead th {
    background: #F7F7F7 !important;
    font-weight: 700;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    background: #F0FFF4 !important;
    color: #004D00 !important;
    font-weight: 700;
    font-size: 16px;
}

/* ============================================
   CART TABLE - Clean Style
   ============================================ */

.woocommerce-cart-form table.cart {
    border: 1px solid #DDDDDD !important;
}

.woocommerce-cart-form table.cart th,
.woocommerce-cart-form table.cart td {
    border: 1px solid #EEEEEE !important;
}

.woocommerce-cart-form table.cart thead {
    background: #F7F7F7 !important;
}

/* Cart Buttons */
.woocommerce-cart .button,
.woocommerce-cart input[type="submit"] {
    background: linear-gradient(135deg, #00AA2E 0%, #00FF41 100%) !important;
    color: #000000 !important;
    border: 2px solid #00FF41 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.3) !important;
}

.woocommerce-cart .button:hover,
.woocommerce-cart input[type="submit"]:hover {
    background: linear-gradient(135deg, #00FF41 0%, #00DD36 100%) !important;
    box-shadow: 0 6px 16px rgba(0, 255, 65, 0.4) !important;
    transform: translateY(-1px);
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

#place_order.wsi-checkout-button,
.wsi-btn-spinner {
    will-change: transform;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* End of Checkout Theme */
