/**
 * JPS Enhanced Checkout UI - Minimal Version
 * Only subtle enhancements that won't conflict with theme
 * Brand Color: Orange (#E67E22)
 */

/* ================================================
   FORM INPUT FOCUS STATES (Safe to add)
   ================================================ */
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: #E67E22 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15) !important;
}

.woocommerce .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #E67E22 !important;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15) !important;
}

/* ================================================
   BUTTONS (Safe - using !important to override)
   ================================================ */
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce #place_order,
.woocommerce .button.alt,
.woocommerce button.button.alt {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3) !important;
    transition: all 0.3s ease !important;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #place_order:hover,
.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover {
    background: linear-gradient(135deg, #D35400 0%, #C0392B 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4) !important;
}

/* Coupon button */
.woocommerce .coupon .button {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(230, 126, 34, 0.25) !important;
}

.woocommerce .coupon .button:hover {
    background: linear-gradient(135deg, #D35400 0%, #C0392B 100%) !important;
}

/* ================================================
   ORDER TOTAL HIGHLIGHT
   ================================================ */
.woocommerce .cart_totals .order-total td,
.woocommerce .cart_totals .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
    color: #E67E22 !important;
    font-weight: 700 !important;
}

/* ================================================
   PRICE COLORS
   ================================================ */
.woocommerce table.shop_table .product-price ins,
.woocommerce table.shop_table .product-subtotal .amount {
    color: #E67E22 !important;
    font-weight: 600 !important;
}

.woocommerce table.shop_table .product-price del {
    color: #999 !important;
}

/* ================================================
   SUCCESS/ERROR MESSAGES
   ================================================ */
.woocommerce-message {
    border-top-color: #E67E22 !important;
}

.woocommerce-message::before {
    color: #E67E22 !important;
}

/* ================================================
   REMOVE BUTTON
   ================================================ */
.woocommerce table.shop_table .product-remove a.remove:hover {
    background: #e74c3c !important;
    color: #fff !important;
}

/* ================================================
   LOADING SPINNER
   ================================================ */
.woocommerce .blockUI.blockOverlay::after {
    border-top-color: #E67E22 !important;
}

/* ================================================
   CHANGE ADDRESS LINK
   ================================================ */
.woocommerce-shipping-destination a,
a.shipping-calculator-button {
    color: #E67E22 !important;
}

.woocommerce-shipping-destination a:hover,
a.shipping-calculator-button:hover {
    color: #D35400 !important;
}

/* ================================================
   EDIT DESIGN BUTTON (Lumise)
   ================================================ */
.lumise-edit-design-btn,
a[href*="lumise"].button,
.edit-design-button {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(230, 126, 34, 0.25) !important;
}

.lumise-edit-design-btn:hover,
a[href*="lumise"].button:hover,
.edit-design-button:hover {
    background: linear-gradient(135deg, #D35400 0%, #C0392B 100%) !important;
}

/* ================================================
   REQUIRED FIELD ASTERISK
   ================================================ */
.woocommerce form .form-row label .required {
    color: #E67E22 !important;
}

/* ================================================
   ADDRESS HELPER TEXT (Thai Address Autocomplete)
   ================================================ */
.jps-address-helper {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

/* Address autocomplete suggestions */
.jps-address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
}

.jps-address-suggestions.active {
    display: block;
}

.jps-suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}

.jps-suggestion-item:last-child {
    border-bottom: none;
}

.jps-suggestion-item:hover,
.jps-suggestion-item.selected {
    background: #fff5eb;
}

.jps-suggestion-main {
    font-weight: 500;
    color: #333;
}

.jps-suggestion-sub {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.jps-suggestion-highlight {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
}

.jps-address-autocomplete-wrapper {
    position: relative;
}
