/* =========================
   General WooCommerce Form Inputs (Cart + Checkout)
   ========================= */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce-cart-form input.input-text,
.woocommerce-cart-form select,
.woocommerce-cart-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    font-size: 1rem;
    color: #111827;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* On focus */
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce-cart-form input.input-text:focus,
.woocommerce-cart-form select:focus,
.woocommerce-cart-form textarea:focus {
    outline: none;
    border-color: #ffa217;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 162, 23, 0.25);
}

/* Placeholder styling */
.woocommerce form .form-row input::placeholder,
.woocommerce form .form-row textarea::placeholder,
.woocommerce-cart-form input::placeholder,
.woocommerce-cart-form textarea::placeholder {
    color: #9ca3af;
}

/* Labels */
.woocommerce form .form-row label,
.woocommerce-cart-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #374151;
}

/* Select dropdown */
.woocommerce form .form-row select,
.woocommerce-cart-form select {
    appearance: none;
    background-size: 12px;
    padding-right: 36px; /* space for dropdown icon */
    cursor: pointer;
}

/* Textarea */
.woocommerce form .form-row textarea,
.woocommerce-cart-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit buttons */
.woocommerce form .form-row button.button,
.woocommerce-cart-form button.button,
.woocommerce-page button.button {
    background: #ffa217;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 1rem;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.woocommerce form .form-row button.button:hover,
.woocommerce-cart-form button.button:hover,
.woocommerce-page button.button:hover {
    background: #ff8c00;
    color: #fff;
}

/* =========================
   WooCommerce Cart Table
   ========================= */
.woocommerce-cart-form table.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.woocommerce-cart-form table.shop_table thead {
    background: #f9fafb;
}

.woocommerce-cart-form table.shop_table th,
.woocommerce-cart-form table.shop_table td {
    padding: 14px 16px;
    font-size: 0.95rem;
    color: #374151;
    text-align: left;
}

.woocommerce-cart-form table.shop_table th {
    font-weight: 600;
    color: #111827;
}

.woocommerce-cart-form table.shop_table tbody tr:nth-child(even) {
    background: #fefefe;
}

.woocommerce-cart-form table.shop_table tbody tr:hover {
    background: #fff7eb;
    transition: background 0.2s ease;
}

/* Actions buttons inside cart */
.woocommerce-cart-form table.shop_table .button {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    background: #ffa217;
    color: #fff;
    border: none;
    transition: all 0.2s ease;
}

.woocommerce-cart-form table.shop_table .button:hover {
    background: #ff8c00;
    color: #fff;
}

/* Coupon & Update Cart Buttons */
.woocommerce-cart-form .coupon input.input-text,
.woocommerce-cart-form .coupon button.button {
    display: inline-block;
    margin-right: 8px;
    margin-top: 5px;
}

.woocommerce-cart-form .coupon input.input-text {
    width: auto;
    flex: 1;
}

/* =========================
   WooCommerce Checkout Table
   ========================= */
.woocommerce-checkout-review-order table.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.woocommerce-checkout-review-order table.shop_table thead {
    background: #f9fafb;
}

.woocommerce-checkout-review-order table.shop_table th,
.woocommerce-checkout-review-order table.shop_table td {
    padding: 14px 16px;
    font-size: 0.95rem;
    color: #374151;
    text-align: left;
}

.woocommerce-checkout-review-order table.shop_table th {
    font-weight: 600;
    color: #111827;
}

.woocommerce-checkout-review-order table.shop_table tbody tr:nth-child(even) {
    background: #fefefe;
}

.woocommerce-checkout-review-order table.shop_table tbody tr:hover {
    background: #fff7eb;
    transition: background 0.2s ease;
}

/* Order review buttons */
.woocommerce-checkout-review-order .button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    background: #ffa217;
    color: #000;
    border: none;
    transition: all 0.2s ease;
}

.woocommerce-checkout-review-order .button:hover {
    background: #ff8c00;
    color: #fff;
}

/* Misc spacing for checkout */
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2,
.woocommerce-checkout-review-order,
.cart_totals {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.woocommerce-checkout h3 {
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
}

#add_payment_method #payment, 
.woocommerce-cart #payment, 
.woocommerce-checkout #payment {
    background: rgb(140 140 140 / 14%)!important;
}

.woocommerce span.onsale {
    background-color: #de0f00!important;
}