/* Sporttikuja WooCommerce polish — shop + single product */

.woo-wrap,
.woocommerce .woo-wrap {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.page-hero-woo h1 {
  margin-bottom: 0.25rem;
}

.woo-breadcrumb,
.woocommerce .woocommerce-breadcrumb {
  color: var(--muted, #9aa3ad);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--muted, #9aa3ad);
  text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: #e11d2e;
}

/* Notices */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
  border-radius: 14px;
  border: 1px solid rgba(192, 198, 206, 0.2);
  background: #152038;
  color: #e8eaee;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

body:not(.theme-blue) .woocommerce-notices-wrapper .woocommerce-message,
body:not(.theme-blue) .woocommerce-notices-wrapper .woocommerce-info,
body:not(.theme-blue) .woocommerce-notices-wrapper .woocommerce-error {
  background: #fff;
  color: #1a1b22;
  border-color: rgba(15, 23, 42, 0.08);
}

.woocommerce-message {
  border-top-color: #e11d2e !important;
}

/* ========== Single product ========== */
.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.75rem 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product div.product .woocommerce-product-gallery {
  background: #121c30;
  border: 1px solid rgba(192, 198, 206, 0.14);
  border-radius: 18px;
  padding: 0.85rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

body:not(.theme-blue) .single-product div.product .woocommerce-product-gallery {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery__wrapper img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  display: block;
}

.single-product .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0 !important;
  padding: 0 !important;
}

.single-product .flex-control-thumbs li {
  width: calc(25% - 0.4rem) !important;
  margin: 0 !important;
  float: none !important;
}

.single-product .flex-control-thumbs img {
  border-radius: 10px;
  border: 1px solid rgba(192, 198, 206, 0.2);
  opacity: 0.85;
}

.single-product .flex-control-thumbs .flex-active,
.single-product .flex-control-thumbs img:hover {
  opacity: 1;
  border-color: rgba(225, 29, 46, 0.55);
}

.single-product div.product .summary {
  background: linear-gradient(165deg, #17243a, #101a2c);
  border: 1px solid rgba(192, 198, 206, 0.14);
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.5rem !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

body:not(.theme-blue) .single-product div.product .summary {
  background: linear-gradient(165deg, #fff, #f5f6f8);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.single-product div.product .product_title {
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.65rem;
  color: inherit;
}

.single-product div.product p.price,
.single-product div.product .summary .price {
  color: #e11d2e !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  margin: 0.35rem 0 1rem !important;
}

.single-product div.product p.price del,
.single-product .summary .price del {
  opacity: 0.55;
  font-size: 0.85em;
  margin-right: 0.35rem;
}

.single-product div.product .woocommerce-product-details__short-description,
.single-product div.product .summary .stock,
.single-product div.product .product_meta {
  color: var(--muted, #a7b0ba);
  font-size: 0.98rem;
  line-height: 1.6;
}

body:not(.theme-blue) .single-product div.product .woocommerce-product-details__short-description,
body:not(.theme-blue) .single-product div.product .product_meta {
  color: var(--muted, #5c6570);
}

.single-product div.product .product_meta {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(192, 198, 206, 0.16);
  font-size: 0.9rem;
}

.single-product div.product .product_meta a {
  color: #e11d2e;
  text-decoration: none;
}

/* Quantity + cart */
.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0 0.35rem !important;
}

.single-product form.cart .quantity {
  margin: 0 !important;
}

.single-product form.cart .qty {
  width: 4.25rem !important;
  height: 46px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(192, 198, 206, 0.28) !important;
  background: #0c1422 !important;
  color: #fff !important;
  text-align: center;
  font-weight: 700;
}

body:not(.theme-blue) .single-product form.cart .qty {
  background: #fff !important;
  color: #1a1b22 !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

.single-product form.cart .single_add_to_cart_button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
  background: linear-gradient(180deg, #ef3344, #e11d2e) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0.85rem 1.4rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(225, 29, 46, 0.35) !important;
  height: auto !important;
  line-height: 1.2 !important;
}

.single-product form.cart .single_add_to_cart_button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  filter: brightness(1.06);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border-radius: 999px !important;
  font-weight: 700 !important;
}

/* Tabs / description */
.single-product .woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  background: linear-gradient(165deg, #17243a, #101a2c);
  border: 1px solid rgba(192, 198, 206, 0.14);
  border-radius: 18px;
  padding: 0.35rem 1.2rem 1.2rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

body:not(.theme-blue) .single-product .woocommerce-tabs {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.single-product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  margin: 0 0 1rem !important;
  border-bottom: 1px solid rgba(192, 198, 206, 0.16) !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after {
  display: none !important;
}

.single-product .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.85rem 1rem !important;
  font-weight: 800;
  color: var(--muted, #a7b0ba) !important;
  border-bottom: 2px solid transparent;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: #e11d2e !important;
  border-bottom-color: #e11d2e;
}

.single-product .woocommerce-Tabs-panel {
  padding: 0.35rem 0.25rem 0.5rem !important;
  line-height: 1.7;
  color: inherit;
}

.single-product .woocommerce-Tabs-panel h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

/* Related / upsells */
.single-product .related,
.single-product .upsells {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
}

.single-product .related > h2,
.single-product .upsells > h2 {
  text-align: center;
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  margin-bottom: 1rem;
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.85rem !important;
  background: linear-gradient(165deg, #17243a, #101a2c);
  border: 1px solid rgba(192, 198, 206, 0.14);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  text-align: left;
}

body:not(.theme-blue) .woocommerce ul.products li.product {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.woocommerce ul.products li.product a img {
  border-radius: 12px;
  margin-bottom: 0.65rem;
  width: 100%;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1rem !important;
  font-weight: 800 !important;
  padding: 0 !important;
  margin: 0 0 0.35rem !important;
}

.woocommerce ul.products li.product .price {
  color: #e11d2e !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
}

.woocommerce ul.products li.product .button {
  margin-top: 0.65rem !important;
  background: linear-gradient(180deg, #ef3344, #e11d2e) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 0.55rem 0.95rem !important;
  font-weight: 800 !important;
}

/* Sale flash */
.woocommerce span.onsale {
  background: #e11d2e !important;
  color: #fff !important;
  border-radius: 999px !important;
  min-height: 2.2em;
  line-height: 2.2em;
  font-weight: 800;
  padding: 0 0.7rem;
}

/* Clear classic floats */
.woocommerce .products ul::after,
.woocommerce ul.products::after,
.woocommerce-page .products ul::after,
.woocommerce-page ul.products::after,
.woocommerce #content div.product div.images,
.woocommerce div.product div.images,
.woocommerce-page #content div.product div.images,
.woocommerce-page div.product div.images,
.woocommerce #content div.product div.summary,
.woocommerce div.product div.summary {
  float: none;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  width: auto;
}

@media (max-width: 900px) {
  .single-product div.product {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
  .single-product form.cart {
    flex-direction: column;
    align-items: stretch;
  }
  .single-product form.cart .single_add_to_cart_button {
    width: 100%;
    text-align: center;
  }
}

/* ========== Cart + Checkout polish ========== */

/* Full width cart/checkout, less cramped white box feel */
.woocommerce-cart .woo-wrap,
.woocommerce-checkout .woo-wrap,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.woocommerce-cart .page-hero h1,
.woocommerce-checkout .page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

/* Cart table */
.woocommerce-cart table.cart,
.woocommerce-cart table.shop_table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid rgba(192, 198, 206, 0.16) !important;
  border-radius: 18px !important;
  overflow: hidden;
  background: linear-gradient(165deg, #17243a, #101a2c) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

body:not(.theme-blue) .woocommerce-cart table.cart,
body:not(.theme-blue) .woocommerce-cart table.shop_table {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.shop_table th {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--muted, #a7b0ba) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.9rem 1rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(192, 198, 206, 0.14) !important;
}

body:not(.theme-blue) .woocommerce-cart table.cart th {
  background: #f5f6f8 !important;
  color: #5c6570 !important;
}

.woocommerce-cart table.cart td,
.woocommerce-cart table.shop_table td {
  padding: 1.1rem 1rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(192, 198, 206, 0.12) !important;
  vertical-align: middle !important;
  background: transparent !important;
  color: inherit !important;
}

.woocommerce-cart table.cart tr:last-child td {
  border-bottom: 0 !important;
}

.woocommerce-cart table.cart img {
  width: 72px !important;
  height: 72px !important;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(192, 198, 206, 0.18);
  background: #0c1422;
}

.woocommerce-cart .product-name a {
  color: inherit !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  font-size: 1.02rem;
}

.woocommerce-cart .product-name a:hover {
  color: #e11d2e !important;
}

.woocommerce-cart .product-remove a {
  color: #e11d2e !important;
  font-size: 1.35rem !important;
  width: 2rem;
  height: 2rem;
  display: inline-grid !important;
  place-items: center;
  border-radius: 999px;
  background: rgba(225, 29, 46, 0.12);
}

.woocommerce-cart .product-remove a:hover {
  background: #e11d2e !important;
  color: #fff !important;
}

.woocommerce-cart .quantity .qty {
  width: 4rem !important;
  height: 42px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(192, 198, 206, 0.28) !important;
  background: #0c1422 !important;
  color: #fff !important;
  text-align: center;
  font-weight: 700;
}

body:not(.theme-blue) .woocommerce-cart .quantity .qty {
  background: #fff !important;
  color: #1a1b22 !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

.woocommerce-cart .product-price,
.woocommerce-cart .product-subtotal {
  font-weight: 800 !important;
  white-space: nowrap;
}

.woocommerce-cart .product-subtotal {
  color: #e11d2e !important;
}

/* Cart actions row */
.woocommerce-cart table.cart td.actions {
  padding: 1rem !important;
  background: rgba(0, 0, 0, 0.18) !important;
}

body:not(.theme-blue) .woocommerce-cart table.cart td.actions {
  background: #f5f6f8 !important;
}

.woocommerce-cart .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  float: none !important;
  padding: 0 !important;
}

.woocommerce-cart .coupon label {
  display: none;
}

.woocommerce-cart .coupon input#coupon_code {
  min-width: 180px;
  height: 44px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(192, 198, 206, 0.28) !important;
  background: #0c1422 !important;
  color: #fff !important;
  padding: 0 0.85rem !important;
}

body:not(.theme-blue) .woocommerce-cart .coupon input#coupon_code {
  background: #fff !important;
  color: #1a1b22 !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

.woocommerce-cart button[name="update_cart"],
.woocommerce-cart button[name="apply_coupon"] {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  padding: 0.7rem 1.15rem !important;
  font-weight: 800 !important;
  height: auto !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

body:not(.theme-blue) .woocommerce-cart button[name="update_cart"],
body:not(.theme-blue) .woocommerce-cart button[name="apply_coupon"] {
  color: #1a1b22 !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  background: #fff !important;
}

.woocommerce-cart button[name="update_cart"]:hover,
.woocommerce-cart button[name="apply_coupon"]:hover {
  border-color: #e11d2e !important;
  color: #e11d2e !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart a.checkout-button {
  background: linear-gradient(180deg, #ef3344, #e11d2e) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 1rem 1.35rem !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  text-align: center;
  display: block !important;
  box-shadow: 0 12px 28px rgba(225, 29, 46, 0.35) !important;
  margin-top: 0.75rem !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

/* Return to shop */
.woocommerce-cart .return-to-shop a.button,
.woocommerce a.button.wc-backward {
  background: transparent !important;
  color: inherit !important;
  border: 1px solid rgba(192, 198, 206, 0.28) !important;
  border-radius: 999px !important;
  padding: 0.7rem 1.15rem !important;
  font-weight: 700 !important;
}

/* Cart collaterals / totals */
.woocommerce-cart .cart-collaterals {
  margin-top: 1.5rem;
  width: 100% !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100% !important;
  float: none !important;
  background: linear-gradient(165deg, #17243a, #101a2c);
  border: 1px solid rgba(192, 198, 206, 0.16);
  border-radius: 18px;
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  max-width: 480px;
  margin-left: auto;
}

body:not(.theme-blue) .woocommerce-cart .cart-collaterals .cart_totals {
  background: linear-gradient(165deg, #fff, #f5f6f8);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.woocommerce-cart .cart_totals h2 {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.woocommerce-cart .cart_totals table {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
  border: 0 !important;
  border-bottom: 1px solid rgba(192, 198, 206, 0.12) !important;
  padding: 0.75rem 0 !important;
  background: transparent !important;
}

.woocommerce-cart .cart_totals tr:last-child th,
.woocommerce-cart .cart_totals tr:last-child td {
  border-bottom: 0 !important;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  font-size: 1.15rem;
  font-weight: 800;
  color: #e11d2e !important;
  padding-top: 1rem !important;
}

/* Shipping calculator */
.woocommerce-cart .woocommerce-shipping-calculator,
.woocommerce-cart .shipping-calculator-form {
  margin-top: 0.65rem;
}

.woocommerce-cart .shipping-calculator-button {
  color: #e11d2e !important;
  font-weight: 700;
}

.woocommerce-cart .shipping-calculator-form .input-text,
.woocommerce-cart .shipping-calculator-form select,
.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  border-radius: 12px !important;
  border: 1px solid rgba(192, 198, 206, 0.28) !important;
  background: #0c1422 !important;
  color: #fff !important;
  padding: 0.7rem 0.85rem !important;
  height: auto !important;
  min-height: 44px;
}

body:not(.theme-blue) .woocommerce-cart .shipping-calculator-form .input-text,
body:not(.theme-blue) .woocommerce-cart .shipping-calculator-form select,
body:not(.theme-blue) .woocommerce-checkout .input-text,
body:not(.theme-blue) .woocommerce-checkout select,
body:not(.theme-blue) .woocommerce-checkout textarea {
  background: #fff !important;
  color: #1a1b22 !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

/* Express pay buttons container */
.woocommerce-cart .wc-proceed-to-checkout,
.woocommerce-checkout #payment {
  margin-top: 0.85rem;
}

.woocommerce-cart .wc-proceed-to-checkout > * {
  margin-bottom: 0.55rem;
}

/* ========== Checkout ========== */
.woocommerce-checkout .col2-set {
  display: grid !important;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  width: 100% !important;
  float: none !important;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  background: linear-gradient(165deg, #17243a, #101a2c);
  border: 1px solid rgba(192, 198, 206, 0.16);
  border-radius: 18px;
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  margin-bottom: 1rem;
}

body:not(.theme-blue) .woocommerce-checkout #customer_details,
body:not(.theme-blue) .woocommerce-checkout #order_review_heading,
body:not(.theme-blue) .woocommerce-checkout #order_review {
  background: linear-gradient(165deg, #fff, #f5f6f8);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.woocommerce-checkout #order_review_heading {
  margin-bottom: 0.75rem !important;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3 {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.woocommerce-checkout .form-row {
  margin-bottom: 0.85rem !important;
  padding: 0 !important;
}

.woocommerce-checkout .form-row label {
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: inline-block;
}

.woocommerce-checkout table.shop_table {
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
  border: 0 !important;
  border-bottom: 1px solid rgba(192, 198, 206, 0.12) !important;
  padding: 0.75rem 0 !important;
  background: transparent !important;
}

.woocommerce-checkout #payment {
  background: transparent !important;
  border-radius: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 0 1rem !important;
  background: transparent !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
  padding: 0.75rem 0 !important;
  border-bottom: 1px solid rgba(192, 198, 206, 0.12);
  background: transparent !important;
}

.woocommerce-checkout #payment div.form-row {
  padding: 0 !important;
}

.woocommerce-checkout #payment #place_order,
.woocommerce-checkout button#place_order {
  background: linear-gradient(180deg, #ef3344, #e11d2e) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  width: 100%;
  padding: 1rem 1.35rem !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  box-shadow: 0 12px 28px rgba(225, 29, 46, 0.35) !important;
  float: none !important;
  margin: 0.5rem 0 0 !important;
}

.woocommerce-checkout #payment #place_order:hover {
  filter: brightness(1.05);
}

/* Payment wallet buttons - make stack neat */
.woocommerce-cart .apple-pay-button,
.woocommerce-cart [class*="apple-pay"],
.woocommerce-cart [class*="google-pay"],
.woocommerce-checkout [class*="apple-pay"],
.woocommerce-checkout [class*="google-pay"] {
  border-radius: 12px !important;
  overflow: hidden;
}

/* Mobile cart */
@media (max-width: 768px) {
  .woocommerce-cart table.cart,
  .woocommerce-cart table.shop_table {
    display: block;
  }
  .woocommerce-cart table.cart thead {
    display: none;
  }
  .woocommerce-cart table.cart tbody,
  .woocommerce-cart table.cart tr,
  .woocommerce-cart table.cart td {
    display: block;
    width: 100% !important;
  }
  .woocommerce-cart table.cart tr {
    padding: 1rem;
    border-bottom: 1px solid rgba(192, 198, 206, 0.14);
  }
  .woocommerce-cart table.cart td {
    border: 0 !important;
    padding: 0.35rem 0 !important;
    text-align: left !important;
  }
  .woocommerce-cart table.cart td.product-thumbnail img {
    width: 88px !important;
    height: 88px !important;
  }
  .woocommerce-cart table.cart td.actions {
    padding-top: 0.85rem !important;
  }
  .woocommerce-cart .cart-collaterals .cart_totals {
    max-width: none;
  }
  .woocommerce-checkout .col2-set {
    grid-template-columns: 1fr !important;
  }
  .woocommerce-cart .coupon {
    width: 100%;
  }
  .woocommerce-cart .coupon input#coupon_code {
    flex: 1;
    min-width: 0;
    width: 100%;
  }
}


/* ========== HARD override cart/checkout (beat plugins/Elementor) ========== */
body.woocommerce-cart .elementor-section.elementor-section-boxed > .elementor-container,
body.woocommerce-checkout .elementor-section.elementor-section-boxed > .elementor-container,
body.woocommerce-cart .elementor-column-gap-default > .elementor-column > .elementor-element-populated,
body.woocommerce-checkout .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.woocommerce-cart .elementor-widget-container,
body.woocommerce-checkout .elementor-widget-container,
body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .skp-content,
body.woocommerce-checkout .skp-content,
body.woocommerce-cart .panel.prose,
body.woocommerce-checkout .panel.prose {
  max-width: none !important;
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.woocommerce-cart .page-body.wrap,
body.woocommerce-checkout .page-body.wrap,
body.woocommerce-cart .woo-wrap,
body.woocommerce-checkout .woo-wrap {
  max-width: 1120px !important;
  width: min(100% - 2rem, 1120px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 1.25rem !important;
  padding-bottom: 2.5rem !important;
}

/* Kill classic Woo floats completely */
body.woocommerce-cart .woocommerce::before,
body.woocommerce-cart .woocommerce::after,
body.woocommerce-checkout .woocommerce::before,
body.woocommerce-checkout .woocommerce::after,
body.woocommerce-cart .cart-collaterals::before,
body.woocommerce-cart .cart-collaterals::after {
  display: none !important;
  content: none !important;
}

body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.woocommerce-cart .cart-collaterals {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: stretch !important;
  margin-top: 1.25rem !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
  float: none !important;
  width: 100% !important;
  max-width: 520px !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Desktop: cart form + totals side by side when wide */
@media (min-width: 960px) {
  body.woocommerce-cart .woocommerce {
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr) !important;
    gap: 1.35rem !important;
    align-items: start !important;
  }
  body.woocommerce-cart .woocommerce-notices-wrapper {
    grid-column: 1 / -1 !important;
  }
  body.woocommerce-cart .woocommerce-cart-form {
    grid-column: 1 !important;
  }
  body.woocommerce-cart .cart-collaterals {
    grid-column: 2 !important;
    margin-top: 0 !important;
  }
  body.woocommerce-cart .cart-collaterals .cart_totals {
    max-width: none !important;
    margin: 0 !important;
  }
  /* cross-sells full width under */
  body.woocommerce-cart .cross-sells {
    grid-column: 1 / -1 !important;
  }
}

/* Stronger table skin */
body.woocommerce-cart table.shop_table.cart {
  table-layout: auto !important;
  width: 100% !important;
}

body.woocommerce-cart table.shop_table.cart .product-thumbnail {
  width: 88px !important;
}

body.woocommerce-cart table.shop_table.cart .product-remove {
  width: 40px !important;
}

/* Hide empty product placeholder ugliness a bit */
body.woocommerce-cart table.cart img[src*="woocommerce-placeholder"],
body.woocommerce-cart table.cart img.woocommerce-placeholder {
  opacity: 0.55;
  object-fit: contain !important;
  padding: 0.5rem;
}

/* Buttons stack cleanly */
body.woocommerce-cart td.actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.65rem !important;
  justify-content: space-between !important;
  align-items: center !important;
}

body.woocommerce-cart td.actions .coupon {
  display: flex !important;
  gap: 0.5rem !important;
  flex: 1 1 auto !important;
}

body.woocommerce-cart td.actions .button {
  float: none !important;
}

/* Checkout hard grid */
body.woocommerce-checkout .col2-set#customer_details,
body.woocommerce-checkout #customer_details.col2-set {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1rem !important;
  width: 100% !important;
}

body.woocommerce-checkout form.checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr) !important;
  gap: 1.25rem !important;
  align-items: start !important;
}

body.woocommerce-checkout form.checkout #customer_details {
  grid-column: 1 !important;
  width: 100% !important;
  float: none !important;
}

body.woocommerce-checkout form.checkout #order_review_heading,
body.woocommerce-checkout form.checkout #order_review {
  grid-column: 2 !important;
  width: 100% !important;
  float: none !important;
}

body.woocommerce-checkout form.checkout #order_review_heading {
  position: sticky;
  top: 0.5rem;
  z-index: 2;
}

body.woocommerce-checkout form.checkout #order_review {
  position: sticky;
  top: 3.5rem;
}

@media (max-width: 959px) {
  body.woocommerce-cart .woocommerce,
  body.woocommerce-checkout form.checkout {
    display: block !important;
  }
  body.woocommerce-checkout .col2-set#customer_details,
  body.woocommerce-checkout #customer_details.col2-set {
    grid-template-columns: 1fr !important;
  }
  body.woocommerce-checkout form.checkout #order_review,
  body.woocommerce-checkout form.checkout #order_review_heading,
  body.woocommerce-checkout form.checkout #customer_details {
    position: static !important;
    grid-column: auto !important;
  }
}

/* Payment method boxes */
body.woocommerce-checkout #payment ul.payment_methods li {
  list-style: none !important;
  margin: 0 0 0.5rem !important;
  padding: 0.85rem 1rem !important;
  border: 1px solid rgba(192,198,206,.18) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.03) !important;
}

body:not(.theme-blue).woocommerce-checkout #payment ul.payment_methods li {
  background: #fff !important;
  border-color: rgba(15,23,42,.1) !important;
}

/* Express checkout / wallet buttons full width neat */
body.woocommerce-cart .wc-proceed-to-checkout > div,
body.woocommerce-cart .wc-proceed-to-checkout > form,
body.woocommerce-checkout .wc-proceed-to-checkout > div {
  width: 100% !important;
}

body.woocommerce-cart .wc-proceed-to-checkout iframe,
body.woocommerce-checkout .payment_method iframe {
  max-width: 100% !important;
}


/* ========== Checkout layout fix v3 (Tilauksesi + express pay) ========== */

/* Express wallet buttons on top, full width, neat stack */
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-notice,
body.woocommerce-checkout .wc-block-components-express-payment,
body.woocommerce-checkout #wc-stripe-payment-request-wrapper,
body.woocommerce-checkout .wcpay-payment-request-wrapper,
body.woocommerce-checkout .apple-pay-button-wrapper,
body.woocommerce-checkout .payment-request-button,
body.woocommerce-checkout .express-one-click-checkout,
body.woocommerce-checkout .paytrail-express,
body.woocommerce-checkout .woocommerce-checkout-payment-express {
  max-width: 640px;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.woocommerce-checkout form.checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr) !important;
  gap: 1.35rem !important;
  align-items: start !important;
  width: 100% !important;
  clear: both !important;
  margin-top: 1.25rem !important;
}

/* Woo often outputs customer_details then order_review as siblings */
body.woocommerce-checkout form.checkout > #customer_details {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

body.woocommerce-checkout form.checkout > #order_review_heading {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 1rem 1.25rem 0.75rem !important;
  background: linear-gradient(165deg, #17243a, #101a2c) !important;
  border: 1px solid rgba(192,198,206,.16) !important;
  border-bottom: 0 !important;
  border-radius: 18px 18px 0 0 !important;
  box-shadow: none !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
}

body.woocommerce-checkout form.checkout > #order_review {
  grid-column: 2 !important;
  grid-row: 2 !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0.5rem 1.25rem 1.35rem !important;
  background: linear-gradient(165deg, #17243a, #101a2c) !important;
  border: 1px solid rgba(192,198,206,.16) !important;
  border-top: 0 !important;
  border-radius: 0 0 18px 18px !important;
  box-shadow: 0 14px 32px rgba(0,0,0,.28) !important;
  min-height: 200px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body:not(.theme-blue).woocommerce-checkout form.checkout > #order_review_heading,
body:not(.theme-blue).woocommerce-checkout form.checkout > #order_review {
  background: linear-gradient(165deg, #fff, #f5f6f8) !important;
  border-color: rgba(15,23,42,.1) !important;
}

/* If heading is inside review, still ok */
body.woocommerce-checkout #order_review > h3,
body.woocommerce-checkout #order_review .order_review_heading {
  margin: 0 0 0.85rem !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
}

/* Order table must show */
body.woocommerce-checkout #order_review .shop_table,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table {
  display: table !important;
  width: 100% !important;
  visibility: visible !important;
  margin: 0 0 1rem !important;
  border: 0 !important;
  background: transparent !important;
}

body.woocommerce-checkout #order_review .shop_table thead,
body.woocommerce-checkout #order_review .shop_table tbody,
body.woocommerce-checkout #order_review .shop_table tfoot,
body.woocommerce-checkout #order_review .shop_table tr,
body.woocommerce-checkout #order_review .shop_table th,
body.woocommerce-checkout #order_review .shop_table td {
  display: table-row-group !important; /* reset later per element */
}

body.woocommerce-checkout #order_review .shop_table thead { display: table-header-group !important; }
body.woocommerce-checkout #order_review .shop_table tbody { display: table-row-group !important; }
body.woocommerce-checkout #order_review .shop_table tfoot { display: table-footer-group !important; }
body.woocommerce-checkout #order_review .shop_table tr { display: table-row !important; }
body.woocommerce-checkout #order_review .shop_table th,
body.woocommerce-checkout #order_review .shop_table td {
  display: table-cell !important;
  visibility: visible !important;
  opacity: 1 !important;
  padding: 0.7rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(192,198,206,.14) !important;
  background: transparent !important;
  color: inherit !important;
  vertical-align: top !important;
}

body.woocommerce-checkout #order_review .shop_table tfoot .order-total th,
body.woocommerce-checkout #order_review .shop_table tfoot .order-total td {
  color: #e11d2e !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  border-bottom: 0 !important;
  padding-top: 0.9rem !important;
}

/* Payment block inside order review */
body.woocommerce-checkout #order_review #payment {
  background: transparent !important;
  border: 0 !important;
  padding: 0.35rem 0 0 !important;
  margin: 0 !important;
  display: block !important;
}

body.woocommerce-checkout #payment .place-order {
  margin-top: 0.85rem !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Billing card */
body.woocommerce-checkout #customer_details {
  background: linear-gradient(165deg, #17243a, #101a2c) !important;
  border: 1px solid rgba(192,198,206,.16) !important;
  border-radius: 18px !important;
  padding: 1.25rem 1.35rem 1.4rem !important;
  box-shadow: 0 14px 32px rgba(0,0,0,.28) !important;
}

body:not(.theme-blue).woocommerce-checkout #customer_details {
  background: linear-gradient(165deg, #fff, #f5f6f8) !important;
  border-color: rgba(15,23,42,.1) !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.07) !important;
}

/* Express pay row above form: center and limit width */
body.woocommerce-checkout .page-body .woocommerce > .woocommerce-notices-wrapper + *,
body.woocommerce-checkout .woo-wrap > .woocommerce > form.checkout {
  /* keep */
}

/* OR divider spacing */
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout p.woocommerce-notice {
  text-align: center;
}

@media (max-width: 900px) {
  body.woocommerce-checkout form.checkout {
    display: block !important;
  }
  body.woocommerce-checkout form.checkout > #customer_details,
  body.woocommerce-checkout form.checkout > #order_review_heading,
  body.woocommerce-checkout form.checkout > #order_review {
    grid-column: auto !important;
    grid-row: auto !important;
    border-radius: 18px !important;
    border: 1px solid rgba(192,198,206,.16) !important;
    margin-bottom: 1rem !important;
  }
  body.woocommerce-checkout form.checkout > #order_review_heading {
    margin-bottom: 0 !important;
    border-radius: 18px 18px 0 0 !important;
    border-bottom: 0 !important;
  }
  body.woocommerce-checkout form.checkout > #order_review {
    border-radius: 0 0 18px 18px !important;
    border-top: 0 !important;
  }
}


/* ========== Checkout polish v4 ========== */

/* Align both columns same visual height start */
body.woocommerce-checkout form.checkout {
  gap: 1.5rem !important;
}

body.woocommerce-checkout #customer_details,
body.woocommerce-checkout form.checkout > #customer_details {
  padding: 1.5rem 1.5rem 1.6rem !important;
}

/* Form labels */
body.woocommerce-checkout .form-row label {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.4rem !important;
  color: #c5ccd6 !important;
}

body:not(.theme-blue).woocommerce-checkout .form-row label {
  color: #3a4250 !important;
}

body.woocommerce-checkout .required {
  color: #e11d2e !important;
}

/* Inputs unified */
body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .select2-container .select2-selection--single {
  border-radius: 14px !important;
  border: 1px solid rgba(192,198,206,.22) !important;
  background: #0b1320 !important;
  color: #f3f4f6 !important;
  min-height: 48px !important;
  padding: 0.75rem 0.95rem !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
  width: 100% !important;
}

body:not(.theme-blue).woocommerce-checkout .form-row input.input-text,
body:not(.theme-blue).woocommerce-checkout .form-row textarea,
body:not(.theme-blue).woocommerce-checkout .form-row select,
body:not(.theme-blue).woocommerce-checkout .select2-container .select2-selection--single {
  background: #fff !important;
  color: #1a1b22 !important;
  border-color: rgba(15,23,42,.14) !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .form-row input.input-text:focus,
body.woocommerce-checkout .form-row textarea:focus,
body.woocommerce-checkout .form-row select:focus,
body.woocommerce-checkout .select2-container--open .select2-selection--single {
  border-color: rgba(225,29,46,.55) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(225,29,46,.18) !important;
}

/* Select2 dropdown dark */
body.woocommerce-checkout .select2-dropdown {
  background: #152038 !important;
  border: 1px solid rgba(192,198,206,.2) !important;
  border-radius: 12px !important;
  color: #f3f4f6 !important;
  overflow: hidden;
}

body.woocommerce-checkout .select2-results__option {
  padding: 0.65rem 0.85rem !important;
}

body.woocommerce-checkout .select2-results__option--highlighted {
  background: #e11d2e !important;
  color: #fff !important;
}

body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  color: #f3f4f6 !important;
  line-height: 48px !important;
  padding-left: 0.95rem !important;
}

body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
}

/* Name fields side by side already - spacing */
body.woocommerce-checkout .form-row-first,
body.woocommerce-checkout .form-row-last {
  width: 48% !important;
}

/* Order card polish */
body.woocommerce-checkout form.checkout > #order_review_heading {
  padding: 1.15rem 1.35rem 0.85rem !important;
  letter-spacing: -0.01em;
}

body.woocommerce-checkout form.checkout > #order_review {
  padding: 0.25rem 1.35rem 1.45rem !important;
}

body.woocommerce-checkout #order_review .shop_table td.product-name {
  font-weight: 700 !important;
}

body.woocommerce-checkout #order_review .shop_table tfoot th {
  font-weight: 700 !important;
  color: #c5ccd6 !important;
}

/* Payment methods - kill white plugin box */
body.woocommerce-checkout #payment,
body.woocommerce-checkout #order_review #payment,
body.woocommerce-checkout .wc-payment-form,
body.woocommerce-checkout .payment_box,
body.woocommerce-checkout .woocommerce-checkout-payment {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0.85rem 0 0 !important;
  color: inherit !important;
}

body.woocommerce-checkout #payment ul.payment_methods {
  border: 1px solid rgba(192,198,206,.18) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 0 1rem !important;
  background: #0c1422 !important;
}

body:not(.theme-blue).woocommerce-checkout #payment ul.payment_methods {
  background: #f3f4f6 !important;
  border-color: rgba(15,23,42,.1) !important;
}

body.woocommerce-checkout #payment ul.payment_methods li {
  margin: 0 !important;
  padding: 0.95rem 1.05rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(192,198,206,.12) !important;
  border-radius: 0 !important;
  background: transparent !important;
  list-style: none !important;
}

body.woocommerce-checkout #payment ul.payment_methods li:last-child {
  border-bottom: 0 !important;
}

body.woocommerce-checkout #payment ul.payment_methods li label {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  font-weight: 700 !important;
  color: #f3f4f6 !important;
  cursor: pointer;
}

body:not(.theme-blue).woocommerce-checkout #payment ul.payment_methods li label {
  color: #1a1b22 !important;
}

body.woocommerce-checkout #payment ul.payment_methods li img {
  max-height: 24px !important;
  width: auto !important;
  margin: 0 !important;
  filter: none !important;
}

/* Hide bubble/arrow white payment_box chrome from Stripe/Klarna */
body.woocommerce-checkout #payment div.payment_box {
  background: rgba(255,255,255,.04) !important;
  color: #c5ccd6 !important;
  border: 1px solid rgba(192,198,206,.14) !important;
  border-radius: 12px !important;
  padding: 0.85rem 1rem !important;
  margin: 0.75rem 0 0.15rem !important;
  box-shadow: none !important;
  position: relative !important;
}

body.woocommerce-checkout #payment div.payment_box::before,
body.woocommerce-checkout #payment div.payment_box::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
}

body:not(.theme-blue).woocommerce-checkout #payment div.payment_box {
  background: #fff !important;
  color: #3a4250 !important;
  border-color: rgba(15,23,42,.1) !important;
}

body.woocommerce-checkout #payment div.payment_box p {
  color: inherit !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* Stripe/Klarna iframes containers */
body.woocommerce-checkout #payment .StripeElement,
body.woocommerce-checkout #payment .wc-block-components-radio-control-accordion-option,
body.woocommerce-checkout #payment .payment_method_stripe,
body.woocommerce-checkout #payment .payment_method_klarna {
  background: transparent !important;
}

body.woocommerce-checkout #payment .wc-stripe-elements-field,
body.woocommerce-checkout #payment .stripe-card-group,
body.woocommerce-checkout #payment iframe {
  border-radius: 10px !important;
}

/* Place order */
body.woocommerce-checkout #place_order,
body.woocommerce-checkout button#place_order {
  margin-top: 0.85rem !important;
  width: 100% !important;
  border-radius: 999px !important;
  padding: 1.05rem 1.4rem !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  background: linear-gradient(180deg, #ef3344, #e11d2e) !important;
  box-shadow: 0 14px 30px rgba(225,29,46,.4) !important;
}

/* Terms */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin: 0.75rem 0 !important;
  font-size: 0.9rem;
  color: #a7b0ba;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text a,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
  color: #e11d2e !important;
}

/* Express pay top - center card */
body.woocommerce-checkout .woocommerce > .wc-block-components-express-payment,
body.woocommerce-checkout .woocommerce-checkout-payment-express,
body.woocommerce-checkout #wc-stripe-payment-request-wrapper,
body.woocommerce-checkout .wcpay-express-checkout-wrapper {
  max-width: 520px;
  margin: 0 auto 1rem !important;
}

body.woocommerce-checkout .woocommerce-info {
  max-width: 520px;
  margin: 0.5rem auto 1rem !important;
  text-align: center;
  background: transparent !important;
  border: 0 !important;
  color: #a7b0ba !important;
  box-shadow: none !important;
}


/* ========== Payment methods contrast fix ========== */
body.woocommerce-checkout #payment ul.payment_methods {
  background: #08101c !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}

body.woocommerce-checkout #payment ul.payment_methods li {
  background: #121c30 !important;
  border-bottom: 1px solid rgba(255,255,255,.1) !important;
}

body.woocommerce-checkout #payment ul.payment_methods li:nth-child(odd) {
  background: #162438 !important;
}

body.woocommerce-checkout #payment ul.payment_methods li label,
body.woocommerce-checkout #payment ul.payment_methods li label span,
body.woocommerce-checkout #payment .wc_payment_method > label {
  color: #f5f7fa !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}

body.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
  accent-color: #e11d2e;
  width: 1.1rem;
  height: 1.1rem;
}

/* Selected method highlight */
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method.payment_method_active,
body.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked + label,
body.woocommerce-checkout #payment li.wc_payment_method:has(input:checked) {
  background: #1c2c44 !important;
  box-shadow: none;
}

body.woocommerce-checkout #payment li.wc_payment_method:has(input:checked) > label {
  color: #ffffff !important;
}

/* Payment description boxes (Klarna/card details) */
body.woocommerce-checkout #payment div.payment_box,
body.woocommerce-checkout #payment .payment_box,
body.woocommerce-checkout #payment .wc-payment-form,
body.woocommerce-checkout #payment .klarna-payments-container,
body.woocommerce-checkout #payment [id*="klarna"],
body.woocommerce-checkout #payment [class*="klarna"],
body.woocommerce-checkout #payment [class*="stripe"] {
  background: #0b1422 !important;
  color: #e8edf4 !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 12px !important;
}

body.woocommerce-checkout #payment div.payment_box p,
body.woocommerce-checkout #payment div.payment_box span,
body.woocommerce-checkout #payment div.payment_box li,
body.woocommerce-checkout #payment div.payment_box label,
body.woocommerce-checkout #payment .payment_box * {
  color: #e8edf4 !important;
  opacity: 1 !important;
}

body.woocommerce-checkout #payment div.payment_box a {
  color: #ff6b76 !important;
}

/* Stripe Elements fields on dark */
body.woocommerce-checkout #payment .StripeElement,
body.woocommerce-checkout #payment .wc-stripe-elements-field,
body.woocommerce-checkout #payment .wc-stripe-iban-element-field,
body.woocommerce-checkout #payment .form-row.woocommerce-SavedPaymentMethods-saveNew,
body.woocommerce-checkout #payment .wc-credit-card-form {
  background: #0b1422 !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 12px !important;
  padding: 0.75rem !important;
}

body.woocommerce-checkout #payment .wc-credit-card-form label,
body.woocommerce-checkout #payment .form-row label {
  color: #dce3ec !important;
}

/* Light theme keep readable too */
body:not(.theme-blue).woocommerce-checkout #payment ul.payment_methods {
  background: #eef0f4 !important;
  border-color: rgba(15,23,42,.12) !important;
}
body:not(.theme-blue).woocommerce-checkout #payment ul.payment_methods li {
  background: #fff !important;
  border-bottom-color: rgba(15,23,42,.08) !important;
}
body:not(.theme-blue).woocommerce-checkout #payment ul.payment_methods li label {
  color: #121c30 !important;
}
body:not(.theme-blue).woocommerce-checkout #payment div.payment_box {
  background: #f5f6f8 !important;
  color: #1a1b22 !important;
  border-color: rgba(15,23,42,.1) !important;
}
body:not(.theme-blue).woocommerce-checkout #payment div.payment_box p,
body:not(.theme-blue).woocommerce-checkout #payment div.payment_box span,
body:not(.theme-blue).woocommerce-checkout #payment div.payment_box * {
  color: #1a1b22 !important;
}


/* ========== Tilauksesi spacing fix ========== */
/* Kill the empty black band between heading and order table */
body.woocommerce-checkout form.checkout > #order_review_heading {
  margin: 0 !important;
  padding: 1.15rem 1.35rem 0.65rem !important;
  border: 1px solid rgba(192,198,206,.16) !important;
  border-bottom: 0 !important;
  border-radius: 18px 18px 0 0 !important;
  background: linear-gradient(165deg, #17243a, #121c30) !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
  min-height: 0 !important;
  height: auto !important;
}

body.woocommerce-checkout form.checkout > #order_review {
  margin: 0 !important;
  margin-top: -1px !important; /* seal seam */
  padding: 0 1.35rem 1.35rem !important;
  border: 1px solid rgba(192,198,206,.16) !important;
  border-top: 0 !important;
  border-radius: 0 0 18px 18px !important;
  background: linear-gradient(180deg, #121c30, #0e182a) !important;
  box-shadow: 0 14px 32px rgba(0,0,0,.28) !important;
  min-height: 0 !important;
}

/* If Woo nests heading inside #order_review, collapse extra top space */
body.woocommerce-checkout #order_review > #order_review_heading,
body.woocommerce-checkout #order_review h3#order_review_heading,
body.woocommerce-checkout #order_review .order_review_heading {
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Remove empty pseudo / spacer blocks plugins leave */
body.woocommerce-checkout #order_review::before,
body.woocommerce-checkout #order_review_heading::after,
body.woocommerce-checkout form.checkout > #order_review_heading + #order_review::before {
  display: none !important;
  content: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Table flush under title */
body.woocommerce-checkout #order_review table.shop_table,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table {
  margin-top: 0 !important;
  margin-bottom: 0.85rem !important;
}

body.woocommerce-checkout #order_review table.shop_table thead th {
  padding-top: 0.35rem !important;
  padding-bottom: 0.65rem !important;
}

body.woocommerce-checkout #order_review table.shop_table tbody td {
  padding-top: 0.7rem !important;
  padding-bottom: 0.7rem !important;
}

/* Collapse any empty paragraphs/divs above table */
body.woocommerce-checkout #order_review > p:empty,
body.woocommerce-checkout #order_review > div:empty,
body.woocommerce-checkout #order_review > .blockUI,
body.woocommerce-checkout form.checkout > #order_review_heading + #order_review > .woocommerce-NoticeGroup:empty {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Grid: no gap between heading row and review row */
body.woocommerce-checkout form.checkout {
  row-gap: 0 !important;
  column-gap: 1.5rem !important;
}

body.woocommerce-checkout form.checkout > #order_review_heading {
  grid-row: 1 !important;
  align-self: end !important;
}

body.woocommerce-checkout form.checkout > #order_review {
  grid-row: 2 !important;
  align-self: start !important;
}

/* When both are stacked in same column, treat as one unit */
@media (min-width: 901px) {
  body.woocommerce-checkout form.checkout {
    grid-template-rows: auto auto !important;
  }
  body.woocommerce-checkout form.checkout > #customer_details {
    grid-row: 1 / span 2 !important;
  }
}

/* Mobile: still no gap */
@media (max-width: 900px) {
  body.woocommerce-checkout form.checkout > #order_review_heading {
    margin-bottom: 0 !important;
  }
  body.woocommerce-checkout form.checkout > #order_review {
    margin-top: -1px !important;
  }
}


/* ========== Remove payment red strip ========== */
body.woocommerce-checkout #payment,
body.woocommerce-checkout #payment ul.payment_methods,
body.woocommerce-checkout #payment ul.payment_methods li,
body.woocommerce-checkout #payment li.wc_payment_method,
body.woocommerce-checkout #payment li.wc_payment_method:has(input:checked),
body.woocommerce-checkout #payment ul.payment_methods li.payment_method_active,
body.woocommerce-checkout #payment .payment_box,
body.woocommerce-checkout #order_review #payment {
  box-shadow: none !important;
  border-left: 0 !important;
  outline: none !important;
}

body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(input:checked),
body.woocommerce-checkout #payment li.wc_payment_method:has(input:checked) {
  background: #1c2c44 !important;
  box-shadow: none !important;
  border-left: 0 !important;
}

/* Selected state: soft red ring instead of left strip */
body.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
  outline: 1px solid rgba(225, 29, 46, 0.45) !important;
  outline-offset: -1px;
  background: #1a2840 !important;
}

/* Kill any ::before red bar */
body.woocommerce-checkout #payment::before,
body.woocommerce-checkout #payment ul.payment_methods::before,
body.woocommerce-checkout #payment li::before,
body.woocommerce-checkout #order_review #payment::before {
  display: none !important;
  content: none !important;
  width: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

