/*
Theme Name: FPVSPARE Checkout
Description: Native WooCommerce cart, checkout and customer account for the FPVSPARE storefront.
Version: 0.1.6
Requires PHP: 8.2
Text Domain: fpvspare-checkout
*/
* { box-sizing: border-box; }
body { margin: 0; color: #151c19; font: 15px/1.55 Arial, Helvetica, sans-serif; }
[hidden] { display: none !important; }
a { color: #245326; }
.shell { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 5; padding: 10px; background: #fff; }
.skip-link:focus { top: 8px; }
.checkout-top { margin: 0; background: #14201a; color: #dce8e0; font-size: 12px; font-weight: 700; }
.checkout-top p { margin-block: 0; padding-block: 8px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; }
.checkout-top a { color: inherit; text-underline-offset: 2px; }
.checkout-header { border-bottom: 1px solid #e0e6e2; }
.checkout-header .shell, .checkout-footer .shell { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 19px; }
.checkout-header .shell { padding-block: 8px; }
.checkout-header a, .checkout-footer a { text-decoration: none; font-weight: 700; }
.checkout-header a:hover, .checkout-footer a:hover { text-decoration: underline; }
.checkout-brand { display: inline-flex; align-items: center; font-size: 27px; letter-spacing: -.075em; font-weight: 900; color: #151c19; }
.checkout-brand span { color: #407325; }
.checkout-brand img { display: block; width: 204px; height: auto; }
.checkout-footer .checkout-brand img { width: 156px; }
.checkout-header nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cart-header .shell, .cart-footer .shell { width: min(1320px, calc(100% - 40px)); }
.cart-product-search { display: flex; flex: 0 1 550px; min-width: 0; }
.cart-product-search input, .cart-product-search button { min-height: 42px; border: 1px solid #ccd8d0; font: inherit; }
.cart-product-search input { flex: 1; width: 100%; min-width: 0; border-radius: 5px 0 0 5px; padding: 8px 12px; background: #f4f7f5; }
.cart-product-search button { border-left: 0; border-radius: 0 5px 5px 0; padding: 8px 14px; background: #f4f7f5; font-weight: 700; cursor: pointer; }
.cart-product-search button:hover { background: #eaf1eb; }
.cart-product-search .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.checkout-header .cart-header-nav { border-top: 1px solid #e0e6e2; }
.cart-header-nav .shell { justify-content: flex-start; gap: 6px 24px; padding-block: 10px; font-size: 13px; }
.cart-header-nav a, .cart-account, .focused-checkout-header nav a { color: #151c19; }
.checkout-main { min-height: 49vh; padding-block: 28px 48px; }
.checkout-main h1 { font-size: clamp(32px, 5vw, 50px); letter-spacing: -.045em; line-height: 1.1; margin-block: 0 22px; }
.checkout-main h2, .checkout-main h3 { letter-spacing: -.02em; }
.checkout-footer { border-top: 1px solid #e0e6e2; background: #f4f7f5; font-size: 13px; }
.checkout-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-weight: 700; }
.cart-footer .shell { justify-content: flex-start; align-items: start; gap: 20px clamp(32px, 6vw, 102px); }
.cart-footer nav { display: grid; align-items: start; gap: 7px; }
.cart-footer nav h2 { font-size: 14px; margin: 0 0 3px; }
.footer-cookie-settings { color: #245326; background: transparent; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; }
.footer-cookie-settings:hover { text-decoration: underline; }
.cart-continue { display: inline-block; margin: 0 0 16px; font-weight: 700; text-underline-offset: 2px; }
.cart-discover, .cart-guidance { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 10px; }
.cart-discover { max-width: 760px; margin-block: 16px; }
.cart-discover-link { display: grid; gap: 2px; padding: 14px; border: 1px solid #e0e6e2; border-radius: 6px; background: #f4f7f5; color: #151c19; text-decoration: none; }
.cart-discover-link:hover { border-color: #52872e; }
.cart-discover-link span, .cart-guidance a { font-size: 13px; }
.cart-guidance { margin-top: 26px; padding: 14px 0; border-top: 1px solid #e0e6e2; }
.cart-guidance > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-block: 2px; }
.cart-guidance strong { flex-basis: 100%; font-size: 14px; }
.woocommerce-cart-form .coupon #coupon_code { width: 145px; min-height: 35px; }
.woocommerce table.shop_table { border-color: #e0e6e2; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding-block: 11px; }
.woocommerce #payment { background: #f4f7f5; }
.woocommerce .woocommerce-input-wrapper input, .woocommerce .woocommerce-input-wrapper textarea, .woocommerce .select2-container--default .select2-selection--single { width: 100%; min-height: 42px; border: 1px solid #ccd8d0; border-radius: 4px; padding: 8px 10px; font: inherit; }
.woocommerce .woocommerce-input-wrapper [type=checkbox] { width: auto; min-height: auto; }
.woocommerce .select2-selection--single .select2-selection__rendered { padding: 0 5px 0 0; line-height: 24px; }
.woocommerce .select2-selection--single .select2-selection__arrow { top: 7px; }
.woocommerce #payment #place_order, .woocommerce .wc-proceed-to-checkout a.checkout-button, .woocommerce a.button.alt { background: #baff3f; color: #14201a; font-weight: 750; border-radius: 5px; }
.woocommerce #payment #place_order:hover, .woocommerce .wc-proceed-to-checkout a.checkout-button:hover { background: #a7ed27; color: #14201a; }
.woocommerce .woocommerce-info, .woocommerce .woocommerce-message { border-top-color: #568933; background: #f4f7f5; }
.woocommerce .woocommerce-info::before, .woocommerce .woocommerce-message::before { color: #407325; }
.woocommerce progress { accent-color: #52872e; }
.fpv-delivery-summary { padding: 12px 14px; background: #f4f7f5; border: 1px solid #e0e6e2; border-radius: 6px; font-size: 13px; color: #39473e; }
.fpv-delivery-summary strong { color: #151c19; }
.fpv-delivery-summary p { margin: 4px 0 0; }
.fpv-carrier-logos { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0; padding: 0; list-style: none; }
.fpv-carrier-logos li { display: grid; place-items: center; width: 64px; height: 38px; padding: 5px; border: 1px solid #e0e6e2; border-radius: 4px; background: #fff; }
.fpv-carrier-logos img { display: block; width: 100%; height: 26px; object-fit: contain; }
.fpv-address-checkout { max-width: 780px; margin-inline: auto; }
.fpv-checkout-steps ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0 0 26px; list-style: none; }
.fpv-checkout-steps li { border-bottom: 2px solid #e0e6e2; padding: 0 0 8px; color: #58635e; font-size: 13px; }
.fpv-checkout-steps li[aria-current="step"] { border-color: #407325; color: #151c19; font-weight: 700; }
.fpv-checkout-intro h2 { margin: 0 0 4px; }
.fpv-checkout-intro p { margin: 0 0 18px; color: #58635e; }
.woocommerce .fpv-address-checkout #customer_details > div { width: 100%; float: none; }
.fpv-address-action { margin: 12px 0 18px; }
.woocommerce .fpv-address-action button.button.alt { background: #14201a; color: #fff; min-height: 44px; padding-inline: 18px; }
.fpv-address-action [role="status"]:empty { display: none; }
.fpv-address-action [role="status"], .fpv-city-credit { color: #58635e; }
.fpv-city-credit { display: inline-block; margin: 0 0 16px; }
.woocommerce tr[data-fpv-delivery="unavailable"] td { background: #fff2e7; color: #613c22; }
.woocommerce #fpv-payment-title { margin-block: 20px 8px; }
@media (max-width: 600px) {
  .shell { width: calc(100% - 26px); }
  .checkout-header .shell { align-items: start; flex-direction: column; padding-block: 12px; }
  .checkout-header .checkout-brand img { width: 172px; }
  .checkout-header.cart-header .shell, .cart-footer .shell { width: calc(100% - 26px); }
  .checkout-header.cart-header > .shell { display: grid; grid-template-columns: 1fr auto; gap: 9px 10px; align-items: center; }
  .cart-product-search { grid-column: 1 / -1; grid-row: 2; }
  .checkout-header .cart-header-nav .shell { flex-direction: row; align-items: center; padding-block: 9px; gap: 6px 14px; }
  .checkout-header.focused-checkout-header .shell { flex-direction: row; align-items: center; }
  .focused-checkout-header nav { font-size: 13px; }
  .checkout-main { padding-block: 20px 30px; }
  .woocommerce table.shop_table th, .woocommerce table.shop_table td { padding-inline: 8px; }
}
@media (max-width: 768px) {
  #content .woocommerce-cart-form table.cart .cart_item td.product-thumbnail { display: block; text-align: left !important; }
  .woocommerce table.shop_table_responsive.cart .cart_item td.product-thumbnail::before { content: none; }
  .woocommerce table.shop_table_responsive.cart .cart_item td.product-thumbnail img { width: 56px; height: 56px; object-fit: contain; }
  .woocommerce-cart-form .actions .coupon { display: flex; gap: 6px; }
  .woocommerce-cart-form .actions .coupon #coupon_code { flex: 1; width: 0; min-width: 0; margin: 0; }
  .woocommerce-cart-form .actions .coupon .button { width: auto; white-space: nowrap; }
}
