/* ePropulsion UAE — WordPress / WooCommerce skin (loaded after main.css).
   Makes Woo's cart, checkout, account and notices match the ePropulsion design. */

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none; margin: 0 0 24px; padding: 14px 18px; border: 0; border-left: 4px solid var(--ep-blue);
  background: #eef5fc; color: var(--ep-text-dark); font-size: 15px;
}
.woocommerce-message { border-left-color: var(--ep-teal); background: #eafaf9; }
.woocommerce-error { border-left-color: var(--ep-error); background: #fff1f1; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button, .woocommerce-info .button { float: right; }

/* Buttons */
.ep-woo .button, .ep-woo button.button, .ep-woo input.button, .ep-woo a.button, .ep-woo #place_order, .ep-woo .checkout-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 0;
  background: var(--ep-blue-bright); color: #fff; font: inherit; font-size: 16px; font-weight: 400; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease;
}
.ep-woo .button:hover, .ep-woo #place_order:hover, .ep-woo .checkout-button:hover { background: var(--ep-blue); color: #fff; }
.ep-woo .button:disabled, .ep-woo .button[disabled] { opacity: .45; }
.ep-woo .checkout-button, .ep-woo #place_order { width: 100%; }

/* Cart table */
.ep-woo table.shop_table { width: 100%; border-collapse: collapse; border: 0; border-radius: 0; margin: 0 0 30px; background: #fff; }
.ep-woo table.shop_table th { padding: 0 12px 12px; border: 0; border-bottom: 1px solid var(--ep-border); text-align: left; font-size: 13px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: var(--ep-blue); }
.ep-woo table.shop_table td { padding: 18px 12px; border: 0; border-bottom: 1px solid var(--ep-border); vertical-align: middle; color: var(--ep-text-dark); }
.ep-woo table.shop_table .product-thumbnail img { width: 80px; height: 80px; object-fit: contain; background: var(--ep-muted); }
.ep-woo table.shop_table .product-name a { color: var(--ep-text-dark); font-weight: 500; }
.ep-woo table.shop_table .product-remove a { color: var(--ep-meta) !important; font-size: 22px; text-decoration: none; }
.ep-woo table.shop_table .product-remove a:hover { color: var(--ep-error) !important; background: none; }
.ep-woo .quantity .qty { width: 70px; height: 42px; border: 1px solid var(--ep-border); text-align: center; font: inherit; }
.ep-woo td.actions .coupon { display: none; }
.ep-woo .cart-collaterals .cart_totals { width: 100%; max-width: 420px; margin-left: auto; padding: 30px; background: var(--ep-muted); border: 1px solid var(--ep-border); }
.ep-woo .cart_totals h2, .ep-woo #order_review_heading, .ep-woo .woocommerce-billing-fields h3, .ep-woo .woocommerce-additional-fields h3 { font-size: 20px; color: var(--ep-blue-h); margin: 0 0 18px; }
.ep-woo .cart_totals table.shop_table th, .ep-woo .cart_totals table.shop_table td { padding: 12px 0; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ep-text-dark); }
.ep-woo .order-total th, .ep-woo .order-total td { font-size: 18px !important; font-weight: 600; color: var(--ep-blue) !important; }
.ep-woo .wc-proceed-to-checkout { padding: 10px 0 0; }

/* Forms (checkout / account) */
.ep-woo .form-row { margin: 0 0 18px; padding: 0; }
.ep-woo .form-row label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 500; color: var(--ep-heading); }
.ep-woo .form-row .required { color: var(--ep-error); text-decoration: none; border: 0; }
.ep-woo .input-text, .ep-woo select, .ep-woo textarea, .ep-woo .select2-container .select2-selection--single {
  width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #e5e5e5; border-radius: 0; background: #fff; color: var(--ep-text-dark); font: inherit; font-size: 15px;
}
.ep-woo textarea.input-text { min-height: 110px; padding: 10px 12px; }
.ep-woo .input-text:focus, .ep-woo select:focus, .ep-woo textarea:focus { outline: none; border-color: var(--ep-blue); }
.ep-woo .select2-container .select2-selection--single .select2-selection__rendered { line-height: 40px; padding-left: 0; }
.ep-woo .select2-container .select2-selection--single .select2-selection__arrow { height: 40px; }
.ep-woo .woocommerce-invalid .input-text, .ep-woo .woocommerce-invalid select { border-color: var(--ep-error); }

/* Checkout layout */
@media (min-width: 960px) {
  .ep-woo form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0 50px; align-items: start; }
  .ep-woo form.checkout > .col2-set { grid-column: 1; }
  .ep-woo form.checkout > #order_review_heading, .ep-woo form.checkout > #order_review { grid-column: 2; }
  .ep-woo form.checkout > #order_review_heading { grid-row: 1; }
  .ep-woo form.checkout > #order_review { grid-row: 2 / span 3; position: sticky; top: 80px; }
}
.ep-woo .col2-set .col-1, .ep-woo .col2-set .col-2 { width: 100%; float: none; }
.ep-woo #order_review { padding: 30px; background: var(--ep-muted); border: 1px solid var(--ep-border); }
.ep-woo #payment { background: transparent; border-radius: 0; }
.ep-woo #payment ul.payment_methods { padding: 0 0 16px; border-bottom: 1px solid var(--ep-border); }
.ep-woo #payment div.payment_box { background: #fff; color: var(--ep-text); border-radius: 0; }
.ep-woo #payment div.payment_box::before { display: none; }
.ep-woo .woocommerce-terms-and-conditions-wrapper { font-size: 14px; }
.ep-woo .woocommerce-privacy-policy-text p { font-size: 13px; color: var(--ep-meta); }

/* Order received */
.ep-woo .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 10px 30px; padding: 20px; margin: 0 0 30px; list-style: none; background: var(--ep-muted); border: 1px solid var(--ep-border); }
.ep-woo .woocommerce-order-overview li { border: 0 !important; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--ep-meta); }
.ep-woo .woocommerce-order-overview strong { display: block; margin-top: 4px; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ep-text-dark); }
.ep-woo .woocommerce-thankyou-order-received { font-size: 20px; font-weight: 600; color: var(--ep-teal); }

/* Empty cart */
.ep-woo .cart-empty { padding: 50px 20px; text-align: center; background: #fff; border: 1px dashed var(--ep-border); border-left: 1px dashed var(--ep-border); }
.ep-woo .return-to-shop { text-align: center; }

/* Admin bar offset for the sticky navbar */
.admin-bar .ep-navbar.is-stuck { top: 32px; }
@media (max-width: 782px) { .admin-bar .ep-navbar.is-stuck { top: 0; } }

/* WP alignments in legal content */
.ep-prose img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Form notices span the whole form grid */
.ep-form > .ep-alert, form > .ep-alert { grid-column: 1 / -1; }
