/*
Theme Name: Thread & Shade
Theme URI: https://threadandshade.com
Author: Thread & Shade
Author URI: https://threadandshade.com
Description: Custom WordPress theme for Thread & Shade hotel textile supplier – Sri Lanka. Features WooCommerce integration, portfolio, and custom order management.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://threadandshade.com/license
Text Domain: tas
WC requires at least: 8.0
WC tested up to: 9.0
*/

/* Brand CSS custom properties – available globally alongside Tailwind utilities */
:root {
  --primary: #121554;
  --sec-light: #828181;
  --sec-dark: #262626;
  --accent-dark: #F89D1C;
  --accent: #FAA91A;
  --accent-light: #FFCB15;
  --bg: #ffffff;
  --surface: #F6F8FF;
  --border: rgba(18, 21, 84, 0.12);
  --shadow: 0 10px 30px rgba(18, 21, 84, 0.10);
  --shadow-hover: 0 14px 40px rgba(18, 21, 84, 0.14);
}

/* Google Font is loaded via functions.php */
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(900px 500px at 20% 0%, rgba(18, 21, 84, 0.05), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(250, 169, 26, 0.06), transparent 55%),
    #ffffff;
}

/* ---------- Glassmorphism / Backdrop helpers ---------- */
.glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- Hero card image overlay ---------- */
.hero-card {
  background:
    linear-gradient(180deg, rgba(18, 21, 84, 0.10), rgba(18, 21, 84, 0.22)),
    url("https://images.unsplash.com/photo-1540518614846-7eded433c457?auto=format&fit=crop&w=1400&q=80") center / cover no-repeat;
  min-height: 380px;
}

/* ---------- Product / feature card media backgrounds ---------- */
.media-shop {
  background: url("https://images.unsplash.com/photo-1615873968403-89e068629265?auto=format&fit=crop&w=1400&q=80") center / cover no-repeat;
}

.media-custom {
  background: url("https://images.unsplash.com/photo-1618220252344-8ec99ec624b1?auto=format&fit=crop&w=1400&q=80") center / cover no-repeat;
}

.media-about {
  background: url("https://images.unsplash.com/photo-1524758631624-e2822e304c36?auto=format&fit=crop&w=1400&q=80") center / cover no-repeat;
}

/* ---------- Smooth page transitions ---------- */
a,
button {
  transition: all 150ms ease;
}

/* ---------- Mini-cart & drawers ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 21, 84, 0.30);
  backdrop-filter: blur(2px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 92vw);
  background: #fff;
  box-shadow: -10px 0 60px rgba(18, 21, 84, 0.18);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.drawer-panel.open {
  transform: translateX(0);
}

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 30;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.whatsapp-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ---------- WooCommerce resets (theme handles layout) ---------- */
.woocommerce-page .woocommerce {
  display: block;
}

/* ---------- Product Variation Drawer (bottom slide-up) ---------- */
/* These rules MUST beat .drawer-panel which slides from the right */
#shop-var-drawer {
  /* Reset the right-slide from .drawer-panel */
  top: auto !important;
  right: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-height: 88vh !important;
  border-radius: 24px 24px 0 0 !important;
  box-shadow: 0 -12px 48px rgba(18, 21, 84, 0.16) !important;
  /* Key: translateY instead of translateX */
  transform: translateY(110%) !important;
  /* Override the fast .drawer-panel transition */
  transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#shop-var-drawer.var-open {
  transform: translateY(0) !important;
}

/* Handle bar at top of drawer */
#shop-var-drawer::before {
  content: "";
  display: block;
  width: 40px;
  height: 5px;
  background: rgba(18, 21, 84, 0.12);
  border-radius: 999px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

/* Overlay */
#shop-var-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(10, 12, 30, 0.35) !important;
  z-index: 9998 !important;
  display: none !important;
  cursor: pointer;
  backdrop-filter: blur(2px);
}

#shop-var-overlay.var-open {
  display: block !important;
}

/* ---------- Form focus ring override ---------- */
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================================
   PRODUCT OPTIONS BOTTOM DRAWER
   ============================================================ */

/* Overlay – shared with right drawer but also covers var drawer */
.var-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 21, 84, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 44;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.var-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer panel – slides up from bottom */
.var-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 48px rgba(18, 21, 84, 0.18);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.var-drawer.var-open {
  transform: translateY(0);
}

/* Centre the drawer on wide screens */
@media (min-width: 640px) {
  .var-drawer {
    left: 50%;
    right: auto;
    width: 480px;
    transform: translateX(-50%) translateY(100%);
    border-radius: 20px 20px 0 0;
  }

  .var-drawer.var-open {
    transform: translateX(-50%) translateY(0);
  }
}

/* Drag handle */
.var-handle {
  width: 40px;
  height: 4px;
  background: rgba(18, 21, 84, 0.14);
  border-radius: 999px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

/* Header row */
.var-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid rgba(18, 21, 84, 0.09);
  flex-shrink: 0;
}

.var-header-title {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #121554;
  letter-spacing: -0.2px;
}

.var-close-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(18, 21, 84, 0.07);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(38, 38, 38, 0.65);
  transition: background 150ms, color 150ms;
  padding: 0;
}

.var-close-btn:hover {
  background: rgba(18, 21, 84, 0.12);
  color: #121554;
}

.var-close-btn svg {
  width: 16px;
  height: 16px;
}

/* Scrollable body */
.var-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 16px;
  -webkit-overflow-scrolling: touch;
}

/* Product image strip */
.var-img-wrap {
  width: 100%;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(18, 21, 84, 0.05), rgba(250, 169, 26, 0.07));
  margin: 16px 0 14px;
  flex-shrink: 0;
}

.var-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title & price */
.var-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 900;
  color: #121554;
  line-height: 1.25;
}

.var-price {
  font-size: 18px;
  font-weight: 900;
  color: #121554;
  margin-bottom: 14px;
}

.var-price .price ins {
  text-decoration: none;
}

.var-price .price del {
  font-size: 13px;
  font-weight: 600;
  color: rgba(38, 38, 38, 0.40);
  margin-right: 4px;
}

/* Short description */
.var-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(38, 38, 38, 0.62);
  font-style: italic;
}

/* Attribute sections */
.var-section {
  margin-bottom: 20px;
}

.var-label {
  display: block;
  font-size: 11px;
  font-weight: 900;
  color: rgba(38, 38, 38, 0.52);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 10px;
}

/* Color swatches */
.var-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.var-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid rgba(18, 21, 84, 0.14);
  cursor: pointer;
  position: relative;
  transition: border-color 150ms, transform 150ms;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

.var-swatch:hover {
  transform: scale(1.10);
}

.var-swatch.active {
  border-color: #121554;
  box-shadow: 0 0 0 3px rgba(18, 21, 84, 0.18);
}

.var-swatch[title="White"].active,
.var-swatch[style*="fff"].active,
.var-swatch[style*="white"].active {
  border-color: #121554;
}

/* Checkmark on active swatch */
.var-swatch.active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23121554' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.var-swatch[data-light="true"].active::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23121554' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Size buttons */
.var-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.var-size-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(18, 21, 84, 0.20);
  background: #fff;
  color: #121554;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms;
  font-family: inherit;
}

.var-size-btn:hover {
  border-color: #121554;
  background: rgba(18, 21, 84, 0.05);
}

.var-size-btn.active {
  background: #121554;
  color: #fff;
  border-color: #121554;
}

/* Quantity stepper */
.var-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(18, 21, 84, 0.05);
  border: 1.5px solid rgba(18, 21, 84, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.var-qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #121554;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: background 150ms;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.var-qty-btn:hover {
  background: rgba(18, 21, 84, 0.10);
}

.var-qty-btn:active {
  background: rgba(18, 21, 84, 0.18);
}

.var-qty-val {
  min-width: 40px;
  text-align: center;
  font-weight: 900;
  font-size: 16px;
  color: #121554;
  user-select: none;
}

/* Sticky footer CTA */
.var-footer {
  flex-shrink: 0;
  padding: 14px 20px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(18, 21, 84, 0.09);
  background: #fff;
}

.var-add-btn {
  width: 100%;
  padding: 15px 24px;
  border-radius: 14px;
  border: none;
  background: #121554;
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(18, 21, 84, 0.24);
  transition: background 150ms, box-shadow 150ms;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.var-add-btn:hover {
  background: #0d0f3e;
  box-shadow: 0 10px 30px rgba(18, 21, 84, 0.32);
}

.var-add-btn:disabled {
  background: rgba(18, 21, 84, 0.35);
  cursor: not-allowed;
  box-shadow: none;
}

.var-add-btn .loading-dots::after {
  content: '…';
  animation: dotsPulse 1.2s infinite;
}

@keyframes dotsPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* ---------- Scrollbar styling ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: rgba(18, 21, 84, 0.22);
  border-radius: 10px;
}
/* ========== Trusted by Our Customers ========== */
.logos {
  padding: 12px 24px 32px;
  background: transparent;
}

.logos-card {
  max-width: 1120px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(18, 21, 84, 0.12);
  border-radius: 16px;
  padding: 28px 36px;
}

.logos-head {
  text-align: left;
  margin-bottom: 24px;
}

.logos-head h3 {
  font-size: 0.75rem;
  font-weight: 800;
  color: #121554;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.logo-item img {
  height: 75px;
  object-fit: contain;
  display: block;
  opacity: 0.85;
}

/* ============================================================
   AUTH PAGES  (login + register)
   ============================================================ */

.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
}

@media (max-width: 767px) {
  .auth-page { grid-template-columns: 1fr; }
}

/* ── Brand panel (left) ── */
.auth-brand-panel {
  background: #121554;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

@media (max-width: 767px) {
  .auth-brand-panel { display: none; }
}

.auth-brand-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 52px;
  width: 100%;
}

.auth-deco {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
}
.auth-deco--1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #FAA91A, transparent 70%);
  top: -100px; right: -120px;
}
.auth-deco--2 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, #fff, transparent 70%);
  bottom: -60px; left: -80px;
}
.auth-deco--3 {
  width: 160px; height: 160px;
  background: radial-gradient(circle, #FAA91A, transparent 70%);
  bottom: 180px; right: 60px;
  opacity: 0.08;
}

.auth-brand-logo { display: inline-block; margin-bottom: 56px; }
.auth-logo-img   { height: 68px; width: auto; filter: brightness(0) invert(1); }

.auth-brand-copy { margin-bottom: 40px; }
.auth-brand-title {
  font-size: 28px; font-weight: 900; color: #fff;
  line-height: 1.25; letter-spacing: -0.4px; margin: 0 0 14px;
}
.auth-brand-sub {
  font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.64);
  margin: 0;
}

.auth-features {
  list-style: none; margin: 0 0 auto; padding: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.auth-features li {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.80);
}
.auth-feature-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  color: #FAA91A; display: flex; align-items: center; justify-content: center;
}
.auth-feature-icon svg { width: 18px; height: 18px; }

.auth-brand-footer { margin-top: 48px; }
.auth-brand-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.78);
}
.auth-brand-badge svg { color: #FAA91A; }

/* ── Form panel (right) ── */
.auth-form-panel {
  background: #F6F8FF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-form-inner {
  width: 100%;
  max-width: 420px;
}

.auth-mobile-logo {
  display: none;
  text-align: center;
  margin-bottom: 32px;
}
.auth-mobile-logo img { height: 56px; width: auto; }

@media (max-width: 767px) {
  .auth-mobile-logo { display: block; }
}

.auth-form-head { margin-bottom: 28px; }
.auth-form-title {
  font-size: 26px; font-weight: 900; color: #121554;
  letter-spacing: -0.4px; margin: 0 0 6px;
}
.auth-form-subtitle {
  font-size: 14px; color: rgba(38,38,38,0.55); margin: 0;
}

/* Info notice (register page) */
.auth-notice {
  display: flex; align-items: flex-start; gap: 10px;
  background: #EEF2FF;
  border: 1px solid rgba(18,21,84,0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: rgba(38,38,38,0.72);
  line-height: 1.55;
  margin-bottom: 20px;
}
.auth-notice-icon {
  width: 16px; height: 16px; flex-shrink: 0;
  color: #121554; margin-top: 1px;
}

/* WC form wrapper card */
.auth-wc-wrap {
  background: #fff;
  border: 1px solid rgba(18,21,84,0.10);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(18,21,84,0.07);
  margin-bottom: 20px;
}

/* Footer links */
.auth-form-links {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 8px;
  font-size: 13px;
}
.auth-link-muted  { color: rgba(38,38,38,0.50); }
.auth-link-sep    { color: rgba(38,38,38,0.25); }
.auth-link-primary {
  font-weight: 700; color: #121554;
  text-decoration: none;
  transition: color 150ms;
}
.auth-link-primary:hover { color: #FAA91A; }

/* ── WooCommerce form overrides ── */
.auth-wc-wrap .woocommerce-error,
.auth-wc-wrap .woocommerce-message,
.auth-wc-wrap .woocommerce-info {
  background: #F6F8FF;
  border-left: 3px solid #121554;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #262626;
  list-style: none;
  margin: 0 0 20px;
}
.auth-wc-wrap .woocommerce-error {
  border-left-color: #e53e3e;
  background: #fff5f5;
  color: #c53030;
}

.auth-wc-wrap .woocommerce-form-login,
.auth-wc-wrap .woocommerce-form-register,
.auth-wc-wrap .login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0; padding: 0;
}

.auth-wc-wrap .form-row,
.auth-wc-wrap .woocommerce-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
}

.auth-wc-wrap label,
.auth-wc-wrap .woocommerce-form__label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: rgba(38,38,38,0.68) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  display: block !important;
  margin: 0 !important;
}
.auth-wc-wrap label .required,
.auth-wc-wrap label span.required {
  color: #FAA91A !important;
  font-weight: 800 !important;
}

.auth-wc-wrap input[type="text"],
.auth-wc-wrap input[type="email"],
.auth-wc-wrap input[type="password"],
.auth-wc-wrap .woocommerce-Input {
  width: 100% !important;
  padding: 11px 16px !important;
  border-radius: 12px !important;
  border: 1.5px solid rgba(18,21,84,0.14) !important;
  background: #F6F8FF !important;
  font-size: 14px !important;
  font-family: inherit !important;
  color: #262626 !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 150ms, background 150ms, box-shadow 150ms !important;
  box-shadow: none !important;
}
.auth-wc-wrap input[type="text"]:focus,
.auth-wc-wrap input[type="email"]:focus,
.auth-wc-wrap input[type="password"]:focus {
  border-color: #121554 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(18,21,84,0.08) !important;
}

.auth-wc-wrap .woocommerce-form__label-for-checkbox,
.auth-wc-wrap .inline {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(38,38,38,0.65) !important;
  cursor: pointer;
}
.auth-wc-wrap .woocommerce-form__input-checkbox,
.auth-wc-wrap input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  border-radius: 4px !important;
  border: 1.5px solid rgba(18,21,84,0.25) !important;
  padding: 0 !important;
  accent-color: #121554;
  cursor: pointer;
  flex-shrink: 0;
}

.auth-wc-wrap .lost_password { margin: 0 !important; }
.auth-wc-wrap .lost_password a {
  font-size: 12px !important;
  color: rgba(38,38,38,0.48) !important;
  text-decoration: none;
  transition: color 150ms;
}
.auth-wc-wrap .lost_password a:hover { color: #121554 !important; }

.auth-wc-wrap .woocommerce-button,
.auth-wc-wrap .woocommerce-Button,
.auth-wc-wrap button[type="submit"],
.auth-wc-wrap input[type="submit"],
.auth-wc-wrap .button {
  width: 100% !important;
  padding: 13px 24px !important;
  border-radius: 12px !important;
  background: #121554 !important;
  color: #fff !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(18,21,84,0.22) !important;
  transition: background 150ms, box-shadow 150ms, transform 100ms !important;
  letter-spacing: 0.1px !important;
  display: block !important;
}
.auth-wc-wrap .woocommerce-button:hover,
.auth-wc-wrap .woocommerce-Button:hover,
.auth-wc-wrap button[type="submit"]:hover,
.auth-wc-wrap input[type="submit"]:hover {
  background: #0d0f3e !important;
  box-shadow: 0 12px 32px rgba(18,21,84,0.30) !important;
  transform: translateY(-1px) !important;
}
.auth-wc-wrap .woocommerce-button:active,
.auth-wc-wrap .woocommerce-Button:active,
.auth-wc-wrap button[type="submit"]:active {
  transform: translateY(0) !important;
}

.auth-wc-wrap .woocommerce-privacy-policy-text {
  font-size: 12px;
  color: rgba(38,38,38,0.48);
  line-height: 1.6;
  margin: 0;
}
.auth-wc-wrap .woocommerce-privacy-policy-text a {
  color: #121554;
  font-weight: 600;
}

/* ── Fallback (non-WC) form ── */
.auth-fallback-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(38,38,38,0.68);
}
.auth-req { color: #FAA91A; font-weight: 800; }
.auth-field input {
  padding: 11px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(18,21,84,0.14);
  background: #F6F8FF;
  font-size: 14px;
  font-family: inherit;
  color: #262626;
  outline: none;
  transition: border-color 150ms, background 150ms, box-shadow 150ms;
}
.auth-field input:focus {
  border-color: #121554;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(18,21,84,0.08);
}
.auth-submit-btn {
  width: 100%;
  padding: 13px 24px;
  border-radius: 12px;
  background: #121554;
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(18,21,84,0.22);
  transition: background 150ms, box-shadow 150ms, transform 100ms;
}
.auth-submit-btn:hover {
  background: #0d0f3e;
  box-shadow: 0 12px 32px rgba(18,21,84,0.30);
  transform: translateY(-1px);
}
.auth-fallback-note {
  font-size: 12px;
  color: rgba(38,38,38,0.48);
  text-align: center;
  margin: 0;
}

/* ============================================================
   WOOCOMMERCE TOAST NOTIFICATIONS
   ============================================================ */
#tas-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(380px, calc(100vw - 32px));
}

.tas-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(18, 21, 84, 0.16), 0 2px 8px rgba(18, 21, 84, 0.08);
  pointer-events: auto;
  border-left: 4px solid #121554;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 280ms ease, transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.tas-toast.tas-toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.tas-toast.tas-toast--hiding {
  opacity: 0;
  transform: translateX(28px);
}

.tas-toast--success { border-left-color: #16a34a; }
.tas-toast--error   { border-left-color: #e53e3e; }
.tas-toast--info    { border-left-color: #121554; }

.tas-toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.tas-toast--success .tas-toast__icon { color: #16a34a; }
.tas-toast--error   .tas-toast__icon { color: #e53e3e; }
.tas-toast--info    .tas-toast__icon { color: #121554; }

.tas-toast__body {
  flex: 1;
  min-width: 0;
}

.tas-toast__text {
  font-size: 13px;
  line-height: 1.55;
  color: #262626;
  margin: 0;
}

.tas-toast__text a {
  color: #121554;
  font-weight: 700;
  text-decoration: underline;
}

.tas-toast__close {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(38, 38, 38, 0.40);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms;
  margin-top: 1px;
}

.tas-toast__close:hover { color: #262626; }

.tas-toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 0 10px;
  background: currentColor;
  opacity: 0.25;
  animation: tasToastProgress linear forwards;
}

.tas-toast {
  position: relative;
  overflow: hidden;
}

@keyframes tasToastProgress {
  from { width: 100%; }
  to   { width: 0%; }
}

@media (max-width: 480px) {
  #tas-toast-container {
    top: auto;
    bottom: 88px;
    right: 12px;
    left: 12px;
    max-width: 100%;
  }

  .tas-toast {
    transform: translateY(16px);
  }

  .tas-toast.tas-toast--visible  { transform: translateY(0); }
  .tas-toast.tas-toast--hiding   { transform: translateY(16px); }
}