/*
   DTF Portugal — WC Pages CSS
   Custom templates: div-based cart + checkout (no WC tables)
*/

/* Variables */
:root {
  --white: #FFFFFF; --cream: #FBF9F6; --gray-100: #F0EEEA;
  --gray-200: #E8E6E1; --gray-300: #CCC8C2; --gray-400: #A9A49E;
  --gray-500: #7D7872; --gray-700: #4A4541; --gray-900: #1D1B18;
  --green: #2D9D6F; --green-hover: #258a60; --green-soft: #D4EDE0;
  --r: 16px; --r-pill: 50px;
  --font: 'Inter', -apple-system, sans-serif;
  --font-d: 'Outfit', 'Inter', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--gray-700); background: var(--white); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.dtf-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.dtf-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.dtf-header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.05); }
.dtf-header .container {
  display: flex; align-items: center; justify-content: space-between; height: 84px;
  position: relative;
  z-index: 10;
}
.dtf-header-logo img { height: 36px; }
.dtf-nav { display: flex; gap: 24px; align-items: center; }
.dtf-nav-link { white-space: nowrap; font-size: 14px;
  font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-900);
  padding: 6px 0; position: relative; transition: color 0.25s;
}
.dtf-nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
  background: var(--green); transition: width 0.3s, left 0.3s; border-radius: 2px;
}
.dtf-nav-link:hover { color: var(--gray-900); }
.dtf-nav-link:hover::after { width: 100%; left: 0; }
.dtf-nav-link.active { color: var(--gray-900); }
.dtf-nav-link.active::after { width: 100%; left: 0; }

/* Megamenu */
.dtf-has-mega { display: flex; align-items: center; }
.dtf-mega {
  position: absolute; top: 100%; left: 0; width: 100%;
  background: var(--white); border-top: 2px solid var(--gray-200);
  box-shadow: 0 24px 64px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  padding: 48px 0 40px; border-radius: 0 0 24px 24px; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px); transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s;
  z-index: -2;
}
.dtf-mega.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition: opacity 0.2s, transform 0.2s, visibility 0s 0s; }
.dtf-mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.dtf-mega-heading { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--green); display: flex; }
.dtf-mega-heading a { font-family: var(--font-d); font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-900); text-decoration: none; }
.dtf-mega-heading a:hover { color: var(--green); }
.dtf-mega-list { list-style: none; padding: 0; margin: 0 0 24px; }
.dtf-mega-list li a { display: block; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--gray-700); text-decoration: none; border-radius: 8px; transition: all 0.2s ease; }
.dtf-mega-list li a:hover { color: var(--green); background: var(--mint); padding-left: 16px; }
.dtf-mega-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-100); text-align: center; }
.dtf-mega-all { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--green); text-decoration: none; }
.dtf-mega-all:hover { gap: 12px; }
.dtf-mobile-sub { font-size: 22px !important; font-weight: 500 !important; color: var(--gray-500) !important; padding-left: 20px; }
@media (max-width: 960px) { .dtf-mega { display: none !important; } }

/* Footer social + payments */
.dtf-footer-social { display: flex; gap: 12px; margin-top: 16px; }
.dtf-footer-social-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); transition: all 0.2s; }
.dtf-footer-social-link:hover { background: var(--green); color: white; }
.dtf-footer-payments { display: flex; align-items: center; gap: 8px; }
.dtf-footer-payments svg { opacity: 0.6; transition: opacity 0.2s; }
.dtf-footer-payments svg:hover { opacity: 1; }

.dtf-header-right { display: flex; align-items: center; gap: 16px; }
.dtf-header-phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--gray-400); transition: color 0.2s;
}
.dtf-header-phone:hover { color: var(--gray-700); }
.dtf-header-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--gray-500); transition: all 0.2s; position: relative;
}
.dtf-header-icon:hover { color: var(--gray-900); background: var(--gray-100); }
.dtf-cart-count {
  position: absolute; top: 2px; right: 0;
  background: var(--green); color: white; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.dtf-cart-count:empty { display: none; }
.dtf-header-cta {
  font-size: 13px; font-weight: 600; padding: 10px 24px;
  background: var(--green); color: white; border-radius: var(--r-pill);
  transition: all 0.25s;
}
.dtf-header-cta:hover { background: var(--green-hover); }

/* Burger + Mobile */
.dtf-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.dtf-burger span { width: 22px; height: 2px; background: var(--gray-900); border-radius: 2px; transition: all 0.3s; display: block; }
.dtf-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dtf-burger.active span:nth-child(2) { opacity: 0; }
.dtf-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) { .dtf-nav, .dtf-header-phone { display: none; } .dtf-burger { display: flex; } }
@media (max-width: 640px) { .dtf-header-cta { display: none; } }
.dtf-mobile-menu {
  position: fixed; inset: 0; background: var(--white); z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.35s; padding-top: 72px;
}
.dtf-mobile-menu.active { opacity: 1; pointer-events: all; }
.dtf-mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.dtf-mobile-nav a { font-family: var(--font-d); font-size: 28px; font-weight: 700; color: var(--gray-900); }

/* Footer */
.dtf-footer { padding: 64px 0 32px; background: var(--gray-900); color: rgba(255,255,255,0.4); }
.dtf-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.dtf-footer-logo { height: 24px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.dtf-footer-brand p { font-size: 14px; line-height: 1.6; }
.dtf-footer-col h4 { font-size: 12px; font-weight: 600; margin-bottom: 14px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.dtf-footer-col a, .dtf-footer-col p { display: block; font-size: 14px; margin-bottom: 8px; transition: color 0.2s; }
.dtf-footer-col a:hover { color: white; }
.dtf-footer-trust { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.dtf-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; color: rgba(255,255,255,0.2);
}
@media (max-width: 768px) { .dtf-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .dtf-footer-grid { grid-template-columns: 1fr; } .dtf-footer-bottom { flex-direction: column; gap: 8px; } }

/* ─── WC PAGE WRAPPER ───────────────────────────────────── */
.dtf-wc-page { padding: 96px 0 60px; background: var(--cream); min-height: 50vh; }
.dtf-wc-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.dtf-wc-title {
  font-family: var(--font-d); font-size: 28px; font-weight: 800;
  color: var(--gray-900); margin-bottom: 24px;
}
.dtf-wc-body > p { font-size: 13px; color: var(--gray-500); margin-bottom: 20px; line-height: 1.6; }
.dtf-wc-body > p strong { color: var(--gray-700); }

/* ═══════════════════════════════════════════════════════════
   CART — Custom div-based template (woocommerce/cart/cart.php)
   ═══════════════════════════════════════════════════════════ */

/* Two-column layout */
.dtf-cart-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}

/* Left column */
.dtf-cart-header {
  font-family: var(--font-d);
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 20px;
}

/* Cart items list */
.dtf-cart-items-list {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
}

/* Individual cart item card */
.dtf-cart-item-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
}
.dtf-cart-item-card:last-child {
  border-bottom: none;
}

/* Thumbnail */
.dtf-cic-thumbnail {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.dtf-cic-thumbnail img,
.dtf-cic-thumbnail a img {
  width: 80px !important;
  height: 80px !important;
  max-width: 80px !important;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--gray-100);
}

/* Details: name + unit price */
.dtf-cic-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.dtf-cic-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.4;
}
.dtf-cic-name a {
  color: var(--gray-900);
  transition: color 0.2s;
}
.dtf-cic-name a:hover {
  color: var(--green);
}
.dtf-cic-name dl.variation {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 4px;
}
.dtf-cic-name dl.variation dt,
.dtf-cic-name dl.variation dd {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-500);
  margin: 0;
}
.dtf-cic-price {
  font-size: 13px;
  color: var(--gray-500);
}

/* Actions: qty + subtotal + remove */
.dtf-cic-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.dtf-cic-quantity .quantity {
  display: flex;
  align-items: center;
}
.dtf-cic-quantity .qty {
  width: 56px;
  height: 38px;
  text-align: center;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  font-family: var(--font);
  background: var(--white);
  transition: border-color 0.2s;
}
.dtf-cic-quantity .qty:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,157,111,0.1);
}
.dtf-cic-subtotal {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  min-width: 70px;
  text-align: right;
}
.dtf-cic-remove {
  display: flex;
  align-items: center;
}
.dtf-cic-remove a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--gray-400);
  transition: all 0.2s;
}
.dtf-cic-remove a:hover {
  background: #FEE2E2;
  color: #DC2626;
}
.dtf-cic-remove svg {
  width: 18px;
  height: 18px;
}

/* Cart form actions: coupon + update button */
.dtf-cart-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.dtf-cart-coupon {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}
.dtf-cart-coupon .input-text {
  flex: 1;
  height: 44px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--gray-900);
  font-family: var(--font);
  background: var(--white);
  transition: border-color 0.2s;
}
.dtf-cart-coupon .input-text:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,157,111,0.1);
}

/* Shared button styles */
.dtf-btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}
.dtf-btn--primary {
  background: var(--green);
  color: var(--white);
}
.dtf-btn--primary:hover {
  background: var(--green-hover);
}
.dtf-btn--secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
}
.dtf-btn--secondary:hover {
  border-color: var(--gray-300);
  background: var(--gray-100);
}
.dtf-cart-update-btn {
  margin-left: auto;
}

/* Right column: Cart totals */
.dtf-cart-right {
  position: sticky;
  top: 96px;
}
/* Cart totals — specificity must beat WC's .woocommerce .cart-collaterals .cart_totals (0,3,0) */
.dtf-cart-right .cart-collaterals {
  width: 100% !important;
  float: none !important;
  display: block !important;
}
.dtf-cart-right .cart-collaterals .cart_totals {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--gray-200);
  width: 100% !important;
  float: none !important;
}
.dtf-cart-right .cart_totals h2 {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.dtf-cart-right .cart_totals table { border: none; width: 100%; border-collapse: collapse; }
.dtf-cart-right .cart_totals th,
.dtf-cart-right .cart_totals td {
  border: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  background: transparent;
}
.dtf-cart-right .cart_totals th { font-weight: 500; color: var(--gray-500); text-align: left; }
.dtf-cart-right .cart_totals td { font-weight: 600; color: var(--gray-900); text-align: right; }
.dtf-cart-right .cart_totals .order-total td { font-size: 22px; font-weight: 700; border-bottom: none; }
.dtf-cart-right .cart_totals .order-total .amount { color: var(--green); }
.dtf-cart-right .cart_totals .shipping td { font-weight: 400; font-size: 13px; text-align: left; word-break: break-word; }
.dtf-cart-right .cart_totals .shipping th { width: 80px; vertical-align: top; }
.dtf-cart-right .cart_totals #shipping_method { list-style: none; padding: 0; margin: 0; }
.dtf-cart-right .cart_totals #shipping_method li { margin-bottom: 6px; }
.dtf-cart-right .cart_totals #shipping_method label { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--gray-700); }
.dtf-cart-right .cart_totals #shipping_method input[type="radio"] { accent-color: var(--green); margin-right: 6px; }
.dtf-cart-right .wc-proceed-to-checkout {
  padding: 0;
}
.dtf-cart-right .wc-proceed-to-checkout a {
  display: block;
  width: 100% !important;
  text-align: center;
  padding: 16px;
  margin-top: 16px;
  background: var(--green);
  color: var(--white);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s;
  box-sizing: border-box;
  float: none !important;
}
.dtf-cart-right .wc-proceed-to-checkout a:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45,157,111,0.25);
}

/* ═══════════════════════════════════════════════════════════
   CHECKOUT — Custom template (woocommerce/checkout/form-checkout.php)
   ═══════════════════════════════════════════════════════════ */

/* Two-column layout */
.dtf-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
}

/* Left column: billing + shipping */
.dtf-checkout-left {}
.dtf-customer-details {}

/* Section headers */
.dtf-checkout-left .woocommerce-billing-fields h3,
.dtf-checkout-left .woocommerce-shipping-fields h3,
.dtf-checkout-left .woocommerce-additional-fields h3 {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

/* Form inputs */
.dtf-checkout-form .form-row .input-text,
.dtf-checkout-form .form-row textarea,
.dtf-checkout-form .form-row select {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--gray-900);
  font-family: var(--font);
  background: var(--white);
  transition: border-color 0.2s;
}
.dtf-checkout-form .form-row textarea { height: auto; min-height: 80px; padding: 12px 14px; }
.dtf-checkout-form .form-row .input-text:focus,
.dtf-checkout-form .form-row textarea:focus,
.dtf-checkout-form .form-row select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,157,111,0.1);
}
.dtf-checkout-form .form-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
  display: block;
}
.dtf-checkout-form .form-row label .required { color: #E87461; }

/* Select2 */
.dtf-checkout-form .select2-container .select2-selection--single {
  height: 46px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  display: flex;
  align-items: center;
}
.dtf-checkout-form .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 44px;
  padding-left: 14px;
  font-size: 14px;
  color: var(--gray-900);
}
.dtf-checkout-form .select2-container .select2-selection--single .select2-selection__arrow { height: 44px; right: 10px; }
.dtf-checkout-form .select2-container--open .select2-selection--single {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,157,111,0.1);
}

/* Right column: Order review */
.dtf-checkout-right {
  position: sticky;
  top: 96px;
}
.dtf-order-review-box {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--gray-200);
}
.dtf-order-review-box > h3 {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

/* Order review table */
.dtf-order-review-box #order_review table { border: none; width: 100%; border-collapse: collapse; }
.dtf-order-review-box #order_review table th,
.dtf-order-review-box #order_review table td {
  border: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
  background: transparent;
}
.dtf-order-review-box #order_review table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  font-weight: 600;
}
.dtf-order-review-box #order_review table tfoot th { font-weight: 500; color: var(--gray-500); }
.dtf-order-review-box #order_review table tfoot td { font-weight: 600; color: var(--gray-900); }
.dtf-order-review-box #order_review .order-total td {
  font-size: 20px;
  font-weight: 700;
  border-top: 2px solid var(--gray-200);
  border-bottom: none;
  padding-top: 14px;
}
.dtf-order-review-box #order_review .order-total .amount { color: var(--green); }

/* Shipping in checkout */
.dtf-order-review-box #shipping_method { list-style: none; padding: 0; margin: 0; }
.dtf-order-review-box #shipping_method li { margin-bottom: 4px; }
.dtf-order-review-box #shipping_method label { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--gray-700); }
.dtf-order-review-box #shipping_method input[type="radio"] { accent-color: var(--green); margin-right: 6px; }

/* Payment methods */
.dtf-order-review-box #payment { background: transparent; }
.dtf-order-review-box #payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 16px; border: none; }
.dtf-order-review-box #payment .payment_methods li {
  margin-bottom: 8px;
  background: var(--cream);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.dtf-order-review-box #payment .payment_methods li:has(input:checked) { border-color: var(--green); }
.dtf-order-review-box #payment .payment_methods li label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}
.dtf-order-review-box #payment .payment_methods li label img { max-height: 22px; width: auto; }
.dtf-order-review-box #payment .payment_methods li input[type="radio"] { accent-color: var(--green); }
.dtf-order-review-box #payment .payment_box {
  background: var(--cream);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-200);
}
.dtf-order-review-box #payment .payment_box::before { display: none; }

/* Place order */
.dtf-order-review-box #place_order {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}
.dtf-order-review-box #place_order:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45,157,111,0.25);
}

/* Terms & privacy */
.dtf-checkout-form .woocommerce-terms-and-conditions-wrapper label { font-size: 13px; color: var(--gray-500); }
.dtf-checkout-form .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] { accent-color: var(--green); }
.dtf-checkout-form .woocommerce-privacy-policy-text p { font-size: 12px; color: var(--gray-400); }
.dtf-checkout-form .woocommerce-privacy-policy-text a { color: var(--green); }

/* Wallet override */
.dtf-checkout-form .dtf-wallet-checkout {
  background: var(--cream) !important;
  border: 1px solid var(--gray-200) !important;
  border-left: none !important;
  border-radius: 10px !important;
  padding: 20px !important;
  margin: 16px 0 !important;
}
.dtf-checkout-form .dtf-wallet-checkout h3 {
  font-family: var(--font-d) !important;
  color: var(--gray-900) !important;
  font-size: 16px !important;
}

/* ═══════════════════════════════════════════════════════════
   SHARED: Notices, buttons
   ═══════════════════════════════════════════════════════════ */

.woocommerce .woocommerce-message { border-top-color: var(--green); background: #E8F5EE; border-radius: 8px; }
.woocommerce .woocommerce-info { border-top-color: var(--green); background: var(--cream); border-radius: 8px; }
.woocommerce .woocommerce-info a { color: var(--green); font-weight: 600; }
.woocommerce .woocommerce-error { border-top-color: #DC2626; background: #FEF2F2; border-radius: 8px; }
.woocommerce a.button.alt, .woocommerce button.button.alt { background-color: var(--green) !important; border-radius: 8px; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background-color: var(--green-hover) !important; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Cart */
  .dtf-cart-layout { grid-template-columns: 1fr; }
  .dtf-cart-right { position: static; }

  .dtf-cart-item-card {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }
  .dtf-cic-thumbnail { width: 64px; height: 64px; }
  .dtf-cic-thumbnail img,
  .dtf-cic-thumbnail a img {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
  }
  .dtf-cic-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--gray-100);
  }
  .dtf-cart-form-actions { flex-direction: column; }
  .dtf-cart-coupon { max-width: 100%; }
  .dtf-cart-update-btn { margin-left: 0; width: 100%; }

  /* Checkout */
  .dtf-checkout-layout { grid-template-columns: 1fr; }
  .dtf-checkout-right { position: static; }
  .dtf-checkout-form .form-row-first,
  .dtf-checkout-form .form-row-last { width: 100%; float: none; }
}
