/* =========================
   🧱 CART BASE LAYOUT
   Vaikuttaa koko cart-sivun rakenteeseen
========================= */

.woocommerce-cart td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.woocommerce-cart .product-thumbnail {
  display: none; /* poistaa thumbnailit */
}

.woocommerce-cart h1 {
  display: none; /* poistaa sivun otsikon */
}

.woocommerce-cart .woocommerce {
  margin-top: 35px;
}

/* =========================
   🧾 PRODUCT INFO BLOCK
   Tuotteen nimi + sisältö
========================= */

.woocommerce-cart .product-name {
  line-height: 1.5;
  padding-left: 0 !important;
}

.woocommerce-cart .product-name strong {
  display: block;
  margin-bottom: 2px;
}

.woocommerce-cart .product-name span {
  display: block;
  margin-bottom: 8px;
  opacity: 0.7;
}

.woocommerce-cart .product-name br {
  display: none;
}

/* =========================
   ❌ REMOVE BUTTON
   Poistonappi (X)
========================= */

.woocommerce-cart td.product-remove a.remove {
  color: #ffb300 !important;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid rgba(255, 179, 0, 0.3);
  border-radius: 50%;
  width: 20px;
  height: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.2s ease;
}

.woocommerce-cart td.product-remove a.remove:hover {
  color: #ff6a00 !important;
  border-color: #ff6a00;
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.6);
  transform: scale(1.1);
}

/* =========================
   💰 HEADERS & PRICES
========================= */

.woocommerce-cart thead th {
  color: rgba(255, 204, 0, 0.45);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
}

.woocommerce-cart .product-price {
  color: #ffcc00;
  font-weight: 400;
  font-size: 13px;
  opacity: 0.6;
  letter-spacing: 0.5px;
}

.woocommerce-cart .product-subtotal {
  color: #ffcc00;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.35);
}

/* =========================
   🎟️ COUPON (DEFAULT UI)
========================= */

.woocommerce-cart .coupon {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.woocommerce-cart .coupon input {
  background: #1a1a1a;
  border: 1px solid rgba(255, 140, 0, 0.4);
  color: #fff;
  height: 30px;
  font-size: 11px;
  padding: 4px 8px;
}

.woocommerce-cart .coupon input:focus {
  border-color: #ff6a00;
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.6);
}

.woocommerce-cart .coupon button {
  background: #1a1a1a;
  border: 1px solid rgba(255, 140, 0, 0.4);
  color: #ffcc00;
  height: 30px;
  font-size: 10px;
  padding: 0 10px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.woocommerce-cart .coupon button:hover {
  border-color: #ff6a00;
  color: #ff6a00;
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.6);
}

/* =========================
   🚫 HIDE DEFAULT COUPON
   (käytetään custom togglea)
========================= */

.woocommerce-cart .woocommerce-cart-form .coupon {
  display: none !important;
}

/* =========================
   🔢 QUANTITY CONTROLS
   Plus/miinus napit + input
========================= */

/* poistaa selaimen spinnerit */
.woocommerce-cart input.qty::-webkit-inner-spin-button,
.woocommerce-cart input.qty::-webkit-outer-spin-button {
  display: none;
}

/* quantity input */
.woocommerce-cart input.qty {
  appearance: textfield;
  background: #1a1a1a;
  border: 1px solid rgba(255, 140, 0, 0.4);
  color: #ffcc00;
  height: 34px;
  width: 50px;
  text-align: center;
  font-size: 14px;
}

/* wrapper */
.quantity {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* plus/minus napit */
.quantity button {
  background: #1a1a1a;
  border: 1px solid rgba(255, 140, 0, 0.4);
  color: #ffcc00;
  width: 26px;
  height: 34px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantity button:hover {
  border-color: #ff6a00;
  color: #ff6a00;
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.6);
}

/* =========================
   🔄 UPDATE CART BUTTON
   Piilotetaan default nappi
========================= */

.woocommerce-cart button[name="update_cart"] {
  display: none !important;
}

/* =========================
   🎨 CART ITEM CARD
   Tuotteen visuaalinen blokki
========================= */

.woocommerce-cart .product-name .sc-cart-item {
  position: relative;
  display: block;
  width: 100%;
  max-width: 480px;

  padding: 16px 18px;
  margin-bottom: 18px;

  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;

  transition: all 0.25s ease;
}

/* hover efekti */
.woocommerce-cart .product-name .sc-cart-item:hover {
  background: rgba(255, 204, 0, 0.05);

  box-shadow:
    0 0 0 1px rgba(255, 204, 0, 0.08),
    0 6px 18px rgba(255, 204, 0, 0.08);

  transform: translateY(-2px);
}

/* alareunan fade line */
.woocommerce-cart .product-name .sc-cart-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 204, 0, 0.35),
    transparent
  );
}

/* viimeinen item ei näytä viivaa */
.woocommerce-cart .cart_item:last-child .sc-cart-item::after {
  display: none;
}

/* vasen glow-line hoverissa */
.woocommerce-cart .product-name .sc-cart-item::before {
  content: "";
  position: absolute;

  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;

  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 204, 0, 0.4),
    transparent
  );

  opacity: 0;
  transition: opacity 0.25s ease;
}

.woocommerce-cart .product-name .sc-cart-item:hover::before {
  opacity: 1;
}

/* =========================
   🎛️ TONE BLOCK
   Tagit + kuvaus
========================= */

.sc-tone-block {
  margin-top: 10px;
  max-width: 420px;
}

.sc-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.sc-tag {
  font-size: 9px;
  padding: 2px 6px;
  border: 1px solid;
  border-radius: 3px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.sc-desc {
  font-size: 12px;
  line-height: 1.7;
  color: #ccc !important;
  margin-top: 6px;
  max-width: 420px;
}

/* =========================
   💰 TOTALS BLOCK (LAYOUT + STYLE)
   Oikean reunan yhteenveto
========================= */

.woocommerce-cart .cart_totals {
  position: relative;

  max-width: 420px;
  margin-left: auto;
  margin-right: 0;

  padding: 20px;
  border-radius: 6px;

  border: 1px solid rgba(0, 255, 156, 0.35);

  animation: scGlowBreath 4s ease-in-out infinite;
}

/* glow animaatio */
@keyframes scGlowBreath {
  0% {
    box-shadow:
      0 0 6px rgba(0, 255, 156, 0.12),
      0 0 14px rgba(0, 255, 156, 0.08);
  }
  50% {
    box-shadow:
      0 0 14px rgba(0, 255, 156, 0.25),
      0 0 28px rgba(0, 255, 156, 0.18);
  }
  100% {
    box-shadow:
      0 0 6px rgba(0, 255, 156, 0.12),
      0 0 14px rgba(0, 255, 156, 0.08);
  }
}

/* piilotetaan "Cart totals" otsikko */
.woocommerce-cart .cart_totals h2 {
  display: none;
}

/* =========================
   🧾 SUBTOTAL + SHIPPING
========================= */

/* Subtotal (vihreä mutta kevyt) */
.woocommerce-cart .cart_totals tr.cart-subtotal th,
.woocommerce-cart .cart_totals tr.cart-subtotal td {
  color: rgba(0, 255, 156, 0.6);
  font-weight: 400;
  font-size: 13px;
}

/* Shipping label */
.woocommerce-cart .cart_totals tr.shipping th {
  color: #777;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Shipping content */
.woocommerce-cart .cart_totals tr.shipping td {
  color: #aaa;
  font-size: 13px;
  line-height: 1.5;
}

/* Shipping methods */
.woocommerce-cart .cart_totals .woocommerce-shipping-methods {
  color: #bbb;
}

/* Change address link */
.woocommerce-cart .cart_totals a {
  color: #888;
  font-size: 12px;
  text-decoration: underline;
}

.woocommerce-cart .cart_totals a:hover {
  color: #ffcc00;
}

/* =========================
   💎 TOTAL (HERO NUMBER)
========================= */

.woocommerce-cart .order-total th {
  color: rgba(0, 255, 156, 0.75);
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.7;
}

.woocommerce-cart .order-total td {
  color: #00e08a;
  font-size: 26px;
  font-weight: 700;

  text-shadow:
    0 0 6px rgba(0, 255, 156, 0.4),
    0 0 14px rgba(0, 255, 156, 0.6);

  transition: all 0.25s ease;
}

/* divider totalin alle */
.woocommerce-cart .order-total {
  position: relative;
}

.woocommerce-cart .order-total::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 12px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 204, 0, 0.4),
    transparent
  );
}

/* spacing table */
.woocommerce-cart .cart_totals table {
  margin-bottom: 20px;
}

/* =========================
   🚀 CHECKOUT BUTTON (CTA)
========================= */

.woocommerce-cart .checkout-button {
  display: inline-block;

  width: auto !important;
  max-width: 420px;

  margin-left: auto;
  margin-top: 18px;

  padding: 14px 22px;

  background: #111;
  border: 1px solid rgba(255, 204, 0, 0.6);
  color: #ffcc00;

  font-size: 15px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase;

  text-decoration: none !important;

  position: relative;
  overflow: hidden;

  transition: all 0.25s ease;
}

/* hover */
.woocommerce-cart .checkout-button:hover {
  border-color: #ffcc00;

  box-shadow:
    0 0 12px rgba(255, 204, 0, 0.4),
    inset 0 0 10px rgba(255, 204, 0, 0.15);

  transform: translateY(-1px);

  animation: none;
}

/* click */
.woocommerce-cart .checkout-button:active {
  transform: translateY(0);
}

/* CTA glow pulse */
@keyframes scCtaPulse {
  0%   { box-shadow: 0 0 0 rgba(255, 204, 0, 0); }
  50%  { box-shadow: 0 0 10px rgba(255, 204, 0, 0.25); }
  100% { box-shadow: 0 0 0 rgba(255, 204, 0, 0); }
}

.woocommerce-cart .checkout-button {
  animation: scCtaPulse 3s ease-in-out infinite;
}

/* CTA arrow */
.woocommerce-cart .checkout-button::after {
  content: "→";
  position: absolute;

  right: 18px;
  top: 50%;

  transform: translateY(-50%) translateX(-6px);
  opacity: 0;

  font-size: 14px;

  transition: all 0.25s ease;
}

.woocommerce-cart .checkout-button:hover::after {
  opacity: 0.8;
  transform: translateY(-50%) translateX(0);
}

/* =========================
   🔗 SECONDARY CTA
   "build another pickup"
========================= */

.sc-secondary-cta {
  text-align: center;
  margin-top: 16px;
}

.sc-build-more {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: rgba(255,255,255,0.45);

  text-decoration: none !important; /* 🔥 pakottaa pois */
  border-bottom: none !important;   /* 🔥 varmistus joillekin teemoille */

  transition: all 0.2s ease;
}

.sc-build-more:hover {
  color: #ffcc00;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.35);

  text-decoration: none !important; /* 🔥 myös hoverissa */
}

/* =========================
   🎟️ COUPON TOGGLE (CUSTOM)
========================= */

.sc-coupon-toggle {
  max-width: 420px;
  margin: -40px 0 10px auto;
}

/* link */
.sc-coupon-link {
  font-size: 12px;
  color: #777;
  cursor: pointer;
  text-align: right;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.sc-coupon-link:hover {
  color: #ffcc00;
}

/* hidden box */
.sc-coupon-box {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: all 0.3s ease;
}

.sc-coupon-box.active {
  max-height: 80px;
  opacity: 1;
  margin-top: 12px;
}

/* inputs */
.sc-coupon-box input {
  background: #1a1a1a;
  border: 1px solid rgba(255, 140, 0, 0.4);
  color: #fff;
  height: 34px;
  padding: 4px 8px;
}

.sc-coupon-box button {
  background: #1a1a1a;
  border: 1px solid rgba(255, 140, 0, 0.4);
  color: #ffcc00;
  height: 34px;
  padding: 0 12px;
}

.sc-coupon-box button:hover {
  border-color: #ff6a00;
  color: #ff6a00;
}

/* =========================
   🚚 SHIPPING FORM
========================= */

.woocommerce-cart .shipping-calculator-form input,
.woocommerce-cart .shipping-calculator-form select {
  background: #1a1a1a;
  border: 1px solid rgba(255, 140, 0, 0.4);
  color: #fff;

  height: 34px;
  padding: 6px 10px;
  font-size: 12px;

  width: 100%;
}

.woocommerce-cart .shipping-calculator-form input:focus,
.woocommerce-cart .shipping-calculator-form select:focus {
  border-color: #ff6a00;
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.6);
  outline: none;
}

/* labels */
.woocommerce-cart .shipping-calculator-form label {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
  display: block;
}

/* update button */
.woocommerce-cart .shipping-calculator-form button {
  background: #1a1a1a;
  border: 1px solid rgba(255, 140, 0, 0.4);
  color: #ffcc00;

  height: 32px;
  padding: 0 12px;
  font-size: 11px;
  margin-top: 8px;

  transition: all 0.2s ease;
}

.woocommerce-cart .shipping-calculator-form button:hover {
  border-color: #ff6a00;
  color: #ff6a00;
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.6);
}

/* =========================
   🖼️ HEADER IMAGE FIX
   Estää kuvan venymisen cartissa
========================= */

header img {
  object-fit: contain;
  max-height: 80px;
}

/* FORCE progress bar näkyväksi */

.sc-progress {
  display: flex !important;
  align-items: center;
  gap: 16px;
  margin: 30px auto;
  max-width: 1100px;
}

.sc-step {
  font-size: 12px;
  letter-spacing: 2px;
  color: #777;
}

.sc-step.active {
  color: #ffcc00;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.5);
}

.sc-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 204, 0, 0.3);
}

.woocommerce-cart .checkout-button {
  position: relative;

  background: linear-gradient(135deg, #111, #1a1a1a);
  border: 1px solid rgba(255, 204, 0, 0.6);
  color: #ffcc00;

  box-shadow:
    0 0 8px rgba(255, 204, 0, 0.2),
    0 0 18px rgba(255, 204, 0, 0.15);

  animation: scCtaGlow 2.5s ease-in-out infinite;
}

@keyframes scCtaGlow {
  0% {
    box-shadow:
      0 0 6px rgba(255, 204, 0, 0.15),
      0 0 12px rgba(255, 204, 0, 0.1);
  }
  50% {
    box-shadow:
      0 0 14px rgba(255, 204, 0, 0.35),
      0 0 28px rgba(255, 204, 0, 0.2);
  }
  100% {
    box-shadow:
      0 0 6px rgba(255, 204, 0, 0.15),
      0 0 12px rgba(255, 204, 0, 0.1);
  }
}
/* 🔧 FIX: serial pysyy samalla rivillä */
.woocommerce-cart .product-name span {
  display: inline !important;
}

/* =========================
   🚀 WC NOTICE – CENTER MODAL TOAST
========================= */

.wc-block-components-notice-banner {
  position: fixed !important;

  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);

  z-index: 9999;

  min-width: 280px;
  max-width: 420px;

  text-align: center;

  background: rgba(0, 255, 156, 0.08) !important;
  border: 1px solid rgba(0, 255, 156, 0.4) !important;
  color: #00ff9c !important;

  border-radius: 8px;
  padding: 18px 24px;

  backdrop-filter: blur(10px);

  box-shadow:
    0 0 14px rgba(0, 255, 156, 0.25),
    0 0 40px rgba(0, 255, 156, 0.15);

  /* ✨ animaatiot */
  animation:
    scNoticeCenterIn 0.35s ease-out,
    scNoticeCenterOut 0.5s ease-in 2.8s forwards;
}

/* teksti */
.wc-block-components-notice-banner__content {
  color: #00ff9c !important;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* icon keskelle */
.wc-block-components-notice-banner__icon {
  display: block;
  margin: 0 auto 8px auto;
}

.wc-block-components-notice-banner__icon svg {
  fill: #00ff9c !important;
  width: 18px;
  height: 18px;
}

/* =========================
   ✨ ENTER
========================= */

@keyframes scNoticeCenterIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.9);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

/* =========================
   💨 EXIT
========================= */

@keyframes scNoticeCenterOut {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.95);
    filter: blur(6px);
    pointer-events: none;
  }
}
