/* RV Moms 12 — main.css */

/* ---- Base body ---- */
body {
  font-family: "Be Vietnam Pro", ui-sans-serif, system-ui, sans-serif;
  background-color: #faf8ff;
  color: #151b29;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reserve space for the fixed mobile bottom nav (56px) so it never covers
   page content or the footer. Applied to body so it works site-wide
   regardless of where the nav renders in the DOM. */
@media (max-width: 767px) {
  body {
    padding-bottom: 3.5rem;
  }
}

/* ---- Material Symbols (loaded via Google Fonts in functions.php) ---- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
  /* Hide raw icon names (e.g. "shopping_cart") while the icon font loads.
     JS in functions.php adds .icons-ready to <html> once the font is active,
     restoring colour. A 2-s CSS animation acts as a no-JS fallback. */
  color: transparent;
}
html.icons-ready .material-symbols-outlined {
  color: inherit;
}
@keyframes rv-icon-reveal { to { color: inherit; } }
.material-symbols-outlined {
  animation: rv-icon-reveal 0s 2s forwards;
}

/* ---- Card lift animation (matches Stitch .card-lift) ---- */
.card-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.04), 0 8px 10px -6px rgba(0,0,0,0.04);
}

/* ---- Shop product card hover (matches Stitch .product-card-hover) ---- */
.product-card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ---- Line clamp ---- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Header: default size + scroll-compact ---- */
.rvmoms12-header-inner {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: padding 0.3s ease;
}
.rvmoms12-header-logo {
  height: 2.5rem;        /* 40px default */
  transition: height 0.3s ease;
}
.rvmoms12-header-logo-text {
  transition: font-size 0.3s ease;
}
/* Compact state — triggered by JS when scrollY > 60 */
#site-header.rvmoms12-compact { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
#site-header.rvmoms12-compact .rvmoms12-header-inner {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
#site-header.rvmoms12-compact .rvmoms12-header-logo { height: 1.875rem; } /* 30px */
#site-header.rvmoms12-compact .rvmoms12-header-logo-text { font-size: 1rem; }

/* Mobile: more aggressive shrink — logo drops to 24px, padding near zero */
@media (max-width: 767px) {
  #site-header.rvmoms12-compact .rvmoms12-header-inner {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }
  #site-header.rvmoms12-compact .rvmoms12-header-logo { height: 1.5rem; } /* 24px */
  #site-header.rvmoms12-compact .rvmoms12-header-logo-text { font-size: 0.85rem; }

  /* Logo should be bigger on mobile (per site owner request) but the
     site-wide custom-CSS rule (#site-header .flex-shrink-0 img { height:100px })
     is too tall at 100px — it pushes the cart/menu icons off-screen. Cap to
     3.5rem (56px), noticeably larger than the theme default (40px) while
     still leaving room for the action icons. Must match or exceed the
     custom-CSS rule's specificity (1 id + 2 classes/tags) to win. */
  #site-header .flex-shrink-0 img.rvmoms12-header-logo,
  #site-header a.flex-shrink-0 img {
    height: 3.5rem !important;
    max-height: 3.5rem !important;
  }

  /* Right-side action icons (cart, menu) must never shrink away */
  #site-header .rvmoms12-cart-toggle,
  #site-header .rvmoms12-menu-toggle {
    flex-shrink: 0 !important;
  }
}

/* ---- Mini-cart drawer animation ---- */
.rvmoms12-mini-cart-overlay { animation: rv-fadeIn 0.15s ease; }
@keyframes rv-fadeIn { from { opacity: 0; } to { opacity: 1; } }
#rvmoms12-cart-overlay > div { animation: rv-slideInRight 0.2s ease; }
@keyframes rv-slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* ---- Mobile menu drawer animation (same pattern as mini-cart) ---- */
.rvmoms12-mobile-menu-overlay { animation: rv-fadeIn 0.15s ease; }
.rvmoms12-mobile-menu-overlay .rvmoms12-mobile-menu { animation: rv-slideInRight 0.2s ease; }

/* ---- Variation chooser — full popup system (no Tailwind dependency) ---- */

/* Overlay: bottom-sheet on mobile, centred on desktop */
#rvmoms12-variation-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10,14,26,0.55);
  backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
@media (min-width: 768px) {
  #rvmoms12-variation-overlay { align-items: center; padding: 1.5rem; }
}

/* Modal shell */
@keyframes rv-slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes rv-modalIn { from { transform: translateY(12px) scale(0.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.rvmoms12-var-modal {
  position: relative;
  width: 100%;
  background: #ffffff;
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: rv-slideUp 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
/* Desktop/tablet: image left, details right, side-by-side */
@media (min-width: 768px) {
  .rvmoms12-var-modal {
    width: 42rem;
    max-width: calc(100vw - 2rem);
    max-height: 85vh;
    max-height: 85dvh;
    display: grid;
    grid-template-columns: 40% 60%;
    border-radius: 1.25rem;
    animation: rv-modalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
}
/* Mobile: bottom sheet, image on top, details below, scrolls internally if content overflows */
@media (max-width: 767px) {
  .rvmoms12-var-modal {
    max-height: 90vh;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .rvmoms12-var-drag { flex-shrink: 0; }
  .rvmoms12-var-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Drag handle */
.rvmoms12-var-drag {
  display: flex; justify-content: center;
  padding: 0.625rem 0 0.375rem;
}
@media (min-width: 768px) { .rvmoms12-var-drag { display: none; } }
.rvmoms12-var-drag-pill {
  width: 2.25rem; height: 0.3125rem;
  border-radius: 9999px; background: rgba(21,27,41,0.15);
}

/* Product image */
.rvmoms12-var-img-wrap {
  width: 100%;
  background: #f1f3ff;
  border-bottom: 1px solid #ececf3;
}
.rvmoms12-var-img { width: 100%; height: 10rem; object-fit: contain; display: block; padding: 0.75rem; box-sizing: border-box; }
@media (min-width: 768px) {
  .rvmoms12-var-img-wrap {
    height: 100%;
    border-bottom: none;
    border-right: 1px solid #ececf3;
    display: flex;
    overflow: hidden;
  }
  .rvmoms12-var-img { width: 100%; height: 100%; min-height: 20rem; padding: 0; object-fit: cover; }
}

/* Close button — floats over the image/top-right corner */
.rvmoms12-variation-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  z-index: 2;
  flex-shrink: 0; width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  color: #151b29;
  border: none; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.rvmoms12-variation-close:hover { background: #ffffff; transform: scale(1.05); }
.rvmoms12-variation-close:active { transform: scale(0.95); }
.rvmoms12-variation-close svg { display: block; }

/* Body */
.rvmoms12-var-body { padding: 1.25rem 1.25rem 0; }
@media (min-width: 768px) {
  .rvmoms12-var-body {
    padding: 1.75rem 1.75rem 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-sizing: border-box;
  }
}

/* Header row */
.rvmoms12-var-header {
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .rvmoms12-var-header { padding-right: 2rem; }
}

/* Product name */
.rvmoms12-var-name {
  font-size: 1.0625rem; font-weight: 700;
  color: #151b29; line-height: 1.35;
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 768px) {
  .rvmoms12-var-name { font-size: 1.25rem; }
}

/* Attribute fields */
.rvmoms12-variation-fields { display: flex; flex-direction: column; gap: 1.375rem; }
@media (min-width: 768px) {
  .rvmoms12-variation-fields { flex: 1 1 auto; }
}
.rvmoms12-attr-label {
  display: block; font-size: 0.8125rem;
  font-weight: 600; color: #151b29; margin: 0 0 0.625rem;
}
.rvmoms12-var-chips { display: flex; flex-wrap: wrap; gap: 0.625rem; }

/* Sticky footer: price + error + CTA, separated from scrollable content */
.rvmoms12-var-footer {
  position: sticky;
  bottom: 0;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  background: #ffffff;
  border-top: 1px solid #ececf3;
}
@media (min-width: 768px) {
  .rvmoms12-var-footer { padding: 1.25rem 1.75rem 1.75rem; margin-top: 1.75rem; }
}

/* Price */
.rvmoms12-variation-price {
  font-size: 1.375rem;
  font-weight: 800; color: #00357f; min-height: 1.75rem;
  font-variant-numeric: tabular-nums;
}

/* Error */
.rvmoms12-variation-error {
  margin-top: 0.5rem; font-size: 0.8125rem; font-weight: 500;
  color: #ba1a1a;
  display: flex; align-items: center; gap: 0.375rem;
}
.rvmoms12-variation-error.hidden { display: none; }

/* Add to cart button */
.rvmoms12-variation-add {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 0.875rem;
  min-height: 3rem;
  background: #00357f; color: #ffffff;
  padding: 0 1rem; border-radius: 0.875rem;
  font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.01em;
  border: none; cursor: pointer; text-align: center;
  transition: opacity 0.15s, transform 0.1s;
}
.rvmoms12-variation-add:disabled { opacity: 0.35; cursor: not-allowed; }
.rvmoms12-variation-add:not(:disabled):hover { opacity: 0.92; }
.rvmoms12-variation-add:not(:disabled):active { transform: scale(0.98); }

/* Chips */
.rvmoms12-var-chip {
  min-height: 2.75rem;
  padding: 0 1.125rem; border-radius: 9999px;
  border: 1.5px solid #dcdfea;
  font-size: 0.875rem; font-weight: 600; color: #151b29;
  background: #ffffff; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}
.rvmoms12-var-chip:hover { border-color: #00357f; color: #00357f; }
.rvmoms12-var-chip[data-active="1"] {
  background: #00357f; color: #ffffff; border-color: #00357f;
  box-shadow: 0 2px 8px rgba(0,53,127,0.25);
}

/* ---- Free shipping / reward-offer bar ---- */
.rvmoms12-shipping-bar-wrap {
  position: relative;
  padding-top: 22px; /* room for pip labels + arrows above the bar */
}
.rvmoms12-shipping-bar {
  height: 4px;
  background: #e9edff;
  border-radius: 2px;
  overflow: hidden;
}
.rvmoms12-shipping-bar-fill {
  height: 100%;
  background: #00357f;
  transition: width 0.4s ease;
  border-radius: 2px;
}

/* Milestone pips sit on top of the bar, positioned via inline `left: %` */
.rvmoms12-offer-pip {
  position: absolute;
  top: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.rvmoms12-offer-pip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #c3c6d5;
  box-sizing: border-box;
}
.rvmoms12-offer-pip.is-unlocked .rvmoms12-offer-pip-dot {
  background: #00357f;
  border-color: #00357f;
}
.rvmoms12-offer-pip-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: #737784;
  background: #f1f3ff;
  border-radius: 4px;
  padding: 3px 6px;
}
.rvmoms12-offer-pip.is-unlocked .rvmoms12-offer-pip-label {
  color: #00357f;
  background: #e9edff;
}
.rvmoms12-offer-pip-arrow {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #f1f3ff;
}
.rvmoms12-offer-pip.is-unlocked .rvmoms12-offer-pip-arrow {
  border-top-color: #e9edff;
}
/* Keep the first/last pip labels from overflowing the drawer edges */
.rvmoms12-offer-pip:first-child { align-items: flex-start; }
.rvmoms12-offer-pip:first-child .rvmoms12-offer-pip-label,
.rvmoms12-offer-pip:first-child .rvmoms12-offer-pip-arrow { left: 0; transform: none; }
.rvmoms12-offer-pip:last-child { align-items: flex-end; }
.rvmoms12-offer-pip:last-child .rvmoms12-offer-pip-label,
.rvmoms12-offer-pip:last-child .rvmoms12-offer-pip-arrow { left: auto; right: 0; transform: none; }

/* ---- Qty stepper in mini-cart ---- */
.rvmoms12-qty-stepper input[type="number"] {
  -moz-appearance: textfield;
  width: 40px;
  text-align: center;
  background: transparent;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
}
.rvmoms12-qty-stepper input[type="number"]::-webkit-inner-spin-button,
.rvmoms12-qty-stepper input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- Add to cart button states ---- */
.rvmoms12-atc:disabled { opacity: 0.6; cursor: not-allowed; }
.rvmoms12-atc.adding { opacity: 1; }
.rvmoms12-atc.adding,
.rvmoms12-variation-add:disabled:has(.rvmoms12-btn-spinner) {
  display: inline-flex; align-items: center; justify-content: center;
}

/* Loading spinner shown inside a button while an Add to Cart request is in flight */
@keyframes rv-spin { to { transform: rotate(360deg); } }
.rvmoms12-btn-spinner {
  display: inline-block;
  width: 1.125rem; height: 1.125rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: rv-spin 0.6s linear infinite;
}

/* ---- WhatsApp bounce ---- */
@keyframes rv-waBounce { 0%,100%{transform:scale(1);} 50%{transform:scale(1.08);} }
.rvmoms12-whatsapp-btn:hover { animation: rv-waBounce 0.4s ease; }

/* ---- Announcement bar + scrolling ticker ---- */
.rvmoms12-announcement-bar {
  display: flex;
  align-items: center;
  height: 2.25rem;       /* single fixed-height line */
  overflow: hidden;
  font-size: 0.8125rem;
  position: relative;
}
.rvmoms12-ticker-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0; /* prevent flex child from expanding beyond parent */
}
.rvmoms12-ticker-inner {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: rv-ticker 22s linear infinite;
}
.rvmoms12-ticker-inner:hover { animation-play-state: paused; }
.rvmoms12-ticker-item {
  padding: 0 4rem;
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes rv-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.rvmoms12-ann-close-btn {
  flex-shrink: 0;
  width: 2rem; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.rvmoms12-ann-close-btn:hover { opacity: 1; }

/* ---- Shop filter sidebar — slide-in on mobile ---- */
@media (max-width: 767px) {
  .rvmoms12-filter-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .rvmoms12-filter-sidebar.rvmoms12-filter-open {
    transform: translateX(0);
  }
  .rvmoms12-filter-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .rvmoms12-filter-backdrop.rvmoms12-filter-open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ---- Custom scrollbar (matches Stitch) ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f3ff; }
::-webkit-scrollbar-thumb { background: #00357f; border-radius: 10px; }

/* ---- Prose (rich text sections) ---- */
.prose h1, .prose h2, .prose h3 { font-weight: 700; margin-bottom: 0.75rem; line-height: 1.2; }
.prose p { margin-bottom: 1rem; line-height: 1.7; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose a { color: #00357f; text-decoration: underline; }
.prose li { margin-bottom: 0.25rem; }

/* ---- WC catalog ordering select ---- */
.woocommerce-ordering select {
  background: #ffffff;
  border: 1px solid #c3c6d5;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 14px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  color: #151b29;
}
.woocommerce-ordering select:focus { outline: none; border-color: #00357f; }

/* ---- WC pagination ---- */
.woocommerce-pagination { margin-top: 3rem; }
.woocommerce-pagination ul {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Manrope", sans-serif;
  border: 1px solid #c3c6d5;
  color: #434653;
  text-decoration: none;
  transition: all 0.15s;
}
.woocommerce-pagination ul li .current,
.woocommerce-pagination ul li a:hover {
  background: #00357f;
  color: #fff;
  border-color: #00357f;
}

/* ---- My Account: generic WC dashboard/orders/address/form content ---- */
.woocommerce-MyAccount-content p { margin-bottom: 1rem; line-height: 1.6; }
.woocommerce-MyAccount-content > p:last-child { margin-bottom: 0; }
.woocommerce-MyAccount-content mark { background: none; font-weight: 600; color: #151b29; }
.woocommerce-MyAccount-content a { color: #00357f; text-decoration: underline; }

.woocommerce-MyAccount-content table.shop_table,
.woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}
@media (max-width: 767px) {
  .woocommerce-MyAccount-content table.shop_table thead { display: none; }
  .woocommerce-MyAccount-content table.shop_table,
  .woocommerce-MyAccount-content table.shop_table tbody,
  .woocommerce-MyAccount-content table.shop_table tr,
  .woocommerce-MyAccount-content table.shop_table td { display: block; width: 100%; }
  .woocommerce-MyAccount-content table.shop_table tr {
    border: 1px solid #c3c6d5;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
  }
  .woocommerce-MyAccount-content table.shop_table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.375rem 0;
    border: none !important;
    text-align: right;
  }
  .woocommerce-MyAccount-content table.shop_table td::before {
    content: attr(data-title);
    font-weight: 600;
    color: #434653;
    text-align: left;
  }
}
.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #c3c6d5;
  text-align: left;
}
.woocommerce-MyAccount-content table.shop_table th { color: #434653; font-weight: 600; }
.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button,
.woocommerce-MyAccount-content .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.125rem;
  border-radius: 0.5rem;
  background: #00357f;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.woocommerce-MyAccount-content .button:hover { opacity: 0.88; }
.woocommerce-MyAccount-content .button.cancel { background: #ba1a1a; }

.woocommerce-MyAccount-content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .woocommerce-MyAccount-content .woocommerce-Addresses { grid-template-columns: 1fr 1fr; }
}
.woocommerce-MyAccount-content .woocommerce-Address {
  border: 1px solid #c3c6d5;
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.woocommerce-MyAccount-content .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.woocommerce-MyAccount-content .woocommerce-Address-title h3 { font-weight: 600; font-size: 1rem; }
.woocommerce-MyAccount-content .woocommerce-Address address { font-style: normal; line-height: 1.6; color: #434653; font-size: 0.875rem; }

.woocommerce-MyAccount-content form .form-row { margin-bottom: 1rem; }
.woocommerce-MyAccount-content form label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #151b29;
}
.woocommerce-MyAccount-content form .required { color: #ba1a1a; text-decoration: none; }
.woocommerce-MyAccount-content form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.woocommerce-MyAccount-content form select,
.woocommerce-MyAccount-content form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #c3c6d5;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  background: #ffffff;
}
.woocommerce-MyAccount-content form input:focus,
.woocommerce-MyAccount-content form select:focus,
.woocommerce-MyAccount-content form textarea:focus {
  outline: none;
  border-color: #00357f;
}
.woocommerce-MyAccount-content form .button[type="submit"],
.woocommerce-MyAccount-content form button[type="submit"] {
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
}
.woocommerce-MyAccount-content fieldset {
  border: 1px solid #c3c6d5;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1rem;
}
.woocommerce-MyAccount-content legend { font-weight: 600; padding: 0 0.375rem; font-size: 0.875rem; }

@media (max-width: 480px) {
  .woocommerce-MyAccount-content form .form-row-first,
  .woocommerce-MyAccount-content form .form-row-last { width: 100%; float: none; }
}

/* ---- Mobile nav safe area ---- */
@media (max-width: 767px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* ---- WC notices ---- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.woocommerce-message { background: #c6e9c7; border-left: 3px solid #47654b; color: #04210c; }
.woocommerce-info    { background: #d9e2ff; border-left: 3px solid #00357f; color: #001945; }
.woocommerce-error   { background: #ffdad6; border-left: 3px solid #ba1a1a; color: #93000a; }

/* ---- WC single product remove default layout ---- */
.slb-wc-main, .woocommerce-page .woocommerce { width: 100%; }

/* ---- Footer payment icons ---- */
.rvmoms12-payment-icon {
  display: block;
  width: 3rem !important;
  height: 1.5rem !important;
  max-width: 3rem !important;
  max-height: 1.5rem !important;
  object-fit: contain !important;
  opacity: 0.8 !important;
}

/* Scroll affordance: fade the trailing edge of horizontally-scrollable rows
   on mobile so it's visually clear there's more content off-screen. */
@media (max-width: 767px) {
  .rvmoms12-gallery-thumbs,
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
  }
}
