/**
 * ROOH Collections - Luxury Interactive Authentication Page Styles
 * 55/45 Showcase: Prominent Laptop Shopping Video, Minimal Header, Understated Controls & Warm Ivory Auth Card
 * Version: 2.2.0
 */

/* -------------------------------------------------------------------------
   1. Base & Layout Shell
   ------------------------------------------------------------------------- */
.rooh-account-main {
  padding: 0 !important;
  margin: 0 !important;
  background-color: #f7f5f0;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

.rooh-auth-split {
  display: flex;
  flex-direction: row;
  min-height: calc(100vh - 120px);
  width: 100%;
  position: relative;
  overflow: hidden;
  align-items: stretch;
}

/* -------------------------------------------------------------------------
   2. Left Section - Full-Bleed Luxury Video Showcase
   ------------------------------------------------------------------------- */
.rooh-auth-showcase-col {
  flex: 0 0 55%;
  max-width: 55%;
  position: relative;
  background-color: #071b45;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rooh-auth-showcase-col--video {
  position: relative;
  overflow: hidden;
}

.rooh-auth-video-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.rooh-auth-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.rooh-auth-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 27, 69, 0.55) 0%,
    rgba(10, 8, 6, 0.28) 42%,
    rgba(7, 27, 69, 0.8) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.rooh-auth-video-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 38px 28px;
}

/* -------------------------------------------------------------------------
   3. Overlaid Showcase Content (Header, Hero Message & Video Controls)
   ------------------------------------------------------------------------- */
/* Minimalist Luxury Brand Header */
.rooh-auth-showcase-header {
  text-align: center;
  margin: 0 0 12px;
}

.rooh-auth-brand-eyebrow {
  display: block;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #cfa64c;
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.rooh-auth-showcase-title {
  font-family: var(--serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(24px, 2.3vw, 32px);
  color: #ffffff;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.rooh-auth-showcase-subtitle-wrap {
  margin-top: 10px;
}

/* Discover. Shop. Celebrate. - Luxury High-Visibility Pill */
.rooh-auth-showcase-subtitle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff !important;
  background: rgba(7, 27, 69, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(207, 166, 76, 0.7);
  border-radius: 24px;
  padding: 8px 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  opacity: 1 !important;
  visibility: visible !important;
}

/* Center Luxury Unboxing Glass Card (High-Contrast, Clean & Fully Visible) */
.rooh-auth-video-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: auto 0;
  padding: 12px 0;
}

.rooh-auth-video-glass-card {
  max-width: 520px;
  width: 92%;
  background: rgba(7, 27, 69, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(207, 166, 76, 0.65);
  border-radius: 18px;
  padding: 26px 34px;
  color: #ffffff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.rooh-auth-video-glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.7);
  border-color: rgba(207, 166, 76, 0.9);
}

.rooh-auth-badge-tag {
  display: inline-block;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #cfa64c;
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Every ROOH heirloom arrives in bespoke royal packaging... - Prominent & Crisp */
.rooh-auth-badge-text {
  font-family: var(--serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(16px, 1.4vw, 20px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.65;
  color: #ffffff !important;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  opacity: 1 !important;
  visibility: visible !important;
}

/* Video Controls Bar */
.rooh-auth-video-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 4;
  margin-top: 12px;
}

.rooh-auth-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(7, 27, 69, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(207, 166, 76, 0.5);
  border-radius: 24px;
  padding: 7px 16px;
  color: #f1f5f9;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.rooh-auth-video-btn:hover {
  background: #cfa64c;
  color: #071b45;
  border-color: #cfa64c;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(207, 166, 76, 0.35);
}

.rooh-auth-video-btn svg {
  stroke: currentColor;
}

/* -------------------------------------------------------------------------
   6. Right Panel - Elegant Login Form (~45% Width)
   ------------------------------------------------------------------------- */
.rooh-auth-form-col {
  flex: 0 0 45%;
  max-width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf8f5;
  padding: 36px 36px;
  position: relative;
  overflow-y: auto;
}

/* Form Container: Warm ivory background, 18px rounded corners, champagne border, very subtle shadow */
.rooh-auth-form-card {
  width: 100%;
  max-width: 480px;
  background: #faf7f2;
  border: 1px solid #e7ded0;
  border-radius: 18px;
  padding: 34px 38px 28px;
  box-shadow: 0 10px 30px rgba(12, 35, 64, 0.04);
  position: relative;
  overflow: hidden;
}

/* Light Gold Floral Outlines in Corners (14% Opacity) */
.rooh-auth-floral-bg {
  position: absolute;
  pointer-events: none;
  opacity: 0.14;
  z-index: 0;
}

.rooh-auth-floral-bg--top-right {
  top: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
}

.rooh-auth-floral-bg--bottom-right {
  bottom: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
}

.rooh-auth-card-inner {
  position: relative;
  z-index: 1;
}

/* Form Heading */
.rooh-auth-card-header {
  text-align: center;
  margin-bottom: 20px;
}

.rooh-auth-card-eyebrow {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 10.5px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8c8275;
  font-weight: 600;
  margin-bottom: 4px;
}

.rooh-auth-card-title {
  font-family: var(--serif, 'Playfair Display', Georgia, serif);
  font-size: 26px;
  font-weight: 700;
  color: #071B45;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.rooh-auth-card-desc {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 13px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

/* Authentication Tabs: Rounded Segmented Control */
.rooh-auth-tabs-pill {
  display: flex;
  background: #f1ede6;
  border-radius: 36px;
  padding: 4px;
  margin-bottom: 22px;
  gap: 4px;
  border: 1px solid #e2dbcf;
}

.rooh-auth-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 30px;
  border: none;
  background: transparent;
  color: #071B45;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.rooh-auth-tab-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

/* Active Tab: Deep navy #071B45 with white text */
.rooh-auth-tab-btn.is-active {
  background: #071B45;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(7, 27, 69, 0.25);
}

.rooh-auth-tab-btn.is-active svg {
  stroke: #cfa64c;
}

/* Tab Panels */
.rooh-auth-panel {
  display: none;
}

.rooh-auth-panel.is-active {
  display: block;
}

/* Form Fields: White Background, Soft Gray Borders, Subtle 8px Corners */
.rooh-auth-form .rooh-form-field {
  margin-bottom: 18px;
}

.rooh-auth-form label {
  display: block;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  color: #071B45;
  margin-bottom: 6px;
}

.rooh-input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Small Navy Icons (#071B45) */
.rooh-field-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #071B45;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.rooh-input-icon-wrap input[type="text"],
.rooh-input-icon-wrap input[type="email"],
.rooh-input-icon-wrap input[type="password"] {
  width: 100% !important;
  height: 48px !important;
  padding: 0 42px 0 42px !important;
  border: 1.5px solid #dfdcd5 !important;
  border-radius: 8px !important;
  font-family: var(--font-body, 'Montserrat', sans-serif) !important;
  font-size: 13.5px !important;
  color: #0f172a !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

/* Visible Keyboard Focus States */
.rooh-input-icon-wrap input:focus {
  border-color: #cfa64c !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(207, 166, 76, 0.2) !important;
  outline: none !important;
}

/* Password Toggle */
.rooh-password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 4px;
  color: #8c8275;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.rooh-password-toggle-btn:hover {
  color: #071B45;
}

.rooh-password-toggle-btn .rooh-eye-closed {
  display: none;
}

.rooh-password-toggle-btn.is-showing .rooh-eye-open {
  display: none;
}

.rooh-password-toggle-btn.is-showing .rooh-eye-closed {
  display: block;
}

/* Additional Options: Remember me & Forgot password neatly aligned */
.rooh-form-row--meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -2px 0 20px;
  font-size: 12.5px;
  gap: 12px;
  flex-wrap: wrap;
}

.rooh-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  cursor: pointer;
  user-select: none;
  margin: 0 !important;
}

.rooh-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #cfa64c;
  cursor: pointer;
  margin: 0;
}

.rooh-forgot-link {
  color: #8c8275;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.rooh-forgot-link:hover {
  color: #071B45;
  text-decoration: underline;
}

/* Primary Button: Solid gold #CFA64C, Navy text #071B45, No gradient, Full width */
.rooh-btn--gold-solid {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  height: 48px !important;
  background: #CFA64C !important;
  color: #071B45 !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: var(--font-heading, 'Montserrat', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(207, 166, 76, 0.28) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.rooh-btn--gold-solid:hover {
  background: #be963c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(207, 166, 76, 0.38) !important;
}

.rooh-btn--gold-solid svg {
  transition: transform 0.2s ease;
  stroke: #071B45;
}

.rooh-btn--gold-solid:hover svg {
  transform: translateX(3px);
}

/* Social Authentication */
.rooh-auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0 16px;
  color: #94a3b8;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.rooh-auth-divider::before,
.rooh-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2dbcf;
}

.rooh-auth-divider span {
  padding: 0 12px;
}

.rooh-social-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rooh-social-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #dfdcd5;
  border-radius: 8px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rooh-social-auth-btn svg {
  width: 18px;
  height: 18px;
}

.rooh-social-auth-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #071B45;
  transform: translateY(-1px);
}

/* 2-Column Grid for Registration Names */
.rooh-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* -------------------------------------------------------------------------
   5. Responsive Adaptations (Desktop 55/45, Laptop, Tablet, Mobile)
   ------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .rooh-auth-showcase-col {
    flex: 0 0 52%;
    max-width: 52%;
  }

  .rooh-auth-form-col {
    flex: 0 0 48%;
    max-width: 48%;
    padding: 30px 24px;
  }
}

@media (max-width: 991px) {
  .rooh-auth-split {
    flex-direction: column;
    min-height: auto;
  }

  .rooh-auth-showcase-col {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    min-height: 320px;
  }

  .rooh-auth-showcase-col--video {
    min-height: 320px;
    height: auto;
  }

  .rooh-auth-video-content {
    padding: 28px 24px 22px;
  }

  .rooh-auth-showcase-subtitle {
    font-size: 12.5px;
    padding: 7px 18px;
  }

  /* Hide Unboxing Experience text narrative card on mobile / tablet screens */
  .rooh-auth-video-badge-wrap {
    display: none !important;
  }

  .rooh-auth-video-glass-card {
    display: none !important;
  }

  .rooh-auth-form-col {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    padding: 36px 20px;
  }

  .rooh-auth-form-card {
    max-width: 480px;
  }
}

@media (max-width: 640px) {
  .rooh-auth-showcase-col {
    min-height: 250px;
  }

  .rooh-auth-showcase-col--video {
    min-height: 250px;
  }

  .rooh-auth-video-content {
    padding: 20px 16px 16px;
  }

  .rooh-auth-brand-eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  .rooh-auth-showcase-title {
    font-size: 22px;
  }

  .rooh-auth-showcase-subtitle {
    font-size: 11px !important;
    padding: 5px 14px !important;
    letter-spacing: 0.1em !important;
  }

  .rooh-auth-video-badge-wrap {
    display: none !important;
  }

  .rooh-auth-video-glass-card {
    display: none !important;
  }

  .rooh-auth-video-controls-bar {
    margin-top: 8px;
    gap: 8px;
  }

  .rooh-auth-video-btn {
    padding: 5px 12px;
    font-size: 11px;
  }

  .rooh-auth-form-col {
    padding: 20px 14px;
  }

  .rooh-auth-form-card {
    padding: 26px 18px 22px;
    border-radius: 14px;
    max-width: 100%;
  }

  .rooh-form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rooh-social-auth-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ROOH COLLECTIONS — MY ACCOUNT ADDRESS EDIT FORM & CROSS-FORM CONSISTENCY
   Matches exact luxury aesthetics of Account & Security (form-edit-account.php)
   ========================================================================== */

/* 1. Address Form Page Layout */
.rooh-address-edit-page-wrap {
  width: 100%;
  margin: 0 auto;
}

.rooh-address-back-bar {
  margin-bottom: 20px;
}

.rooh-address-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0c2340 !important;
  text-decoration: none !important;
  padding: 6px 12px 6px 8px !important;
  border-radius: 6px !important;
  background: #f5f1e8 !important;
  border: 1px solid #e7e2d7 !important;
  transition: all 0.2s ease !important;
}

.rooh-address-back-btn:hover {
  background: #0c2340 !important;
  color: #ffffff !important;
  border-color: #0c2340 !important;
}

.rooh-address-back-btn svg {
  transition: transform 0.2s ease;
}

.rooh-address-back-btn:hover svg {
  transform: translateX(-2px);
}

/* 2. Address Form Grid (Permanent Fix for Overlapping Fields) */
.rooh-address-fields-grid,
.woocommerce-address-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px 18px !important;
  width: 100% !important;
  margin: 0 0 24px 0 !important;
  padding: 0 !important;
}

/* Individual Form Rows in Address Form */
.rooh-address-fields-grid .form-row,
.woocommerce-address-fields__field-wrapper .form-row,
.woocommerce-address-fields .form-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* Full Width Rows (Country, Street, Town, State, Phone, Email) */
.rooh-address-fields-grid .form-row-wide,
.woocommerce-address-fields__field-wrapper .form-row-wide,
.rooh-address-fields-grid .notes,
.woocommerce-address-fields__field-wrapper .notes {
  grid-column: span 2 !important;
  width: 100% !important;
}

/* Two-column splits (First Name, Last Name) */
.rooh-address-fields-grid .form-row-first,
.woocommerce-address-fields__field-wrapper .form-row-first {
  grid-column: 1 !important;
  width: 100% !important;
}

.rooh-address-fields-grid .form-row-last,
.woocommerce-address-fields__field-wrapper .form-row-last {
  grid-column: 2 !important;
  width: 100% !important;
}

/* Form Labels (Crisp, High-Contrast & Clearly Positioned) */
.rooh-address-fields-grid .form-row label,
.woocommerce-address-fields__field-wrapper .form-row label,
.woocommerce-address-fields .form-row label,
.rooh-security-card .form-row label,
.rooh-security-card .rooh-form-field label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0c2340 !important;
  margin: 0 0 7px 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  position: static !important;
}

.rooh-address-fields-grid .form-row label abbr.required,
.woocommerce-address-fields__field-wrapper .form-row label abbr.required,
.rooh-security-card label span.required,
.rooh-security-card label abbr.required {
  color: #dc2626 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  margin-left: 4px !important;
  border-bottom: none !important;
}

.rooh-address-fields-grid .form-row label .optional,
.woocommerce-address-fields__field-wrapper .form-row label .optional {
  color: #64748b !important;
  font-weight: 400 !important;
  font-size: 12px !important;
  margin-left: 4px !important;
}

/* Input Wrappers */
.rooh-address-fields-grid .woocommerce-input-wrapper,
.woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper {
  display: block !important;
  width: 100% !important;
  position: relative !important;
}

/* Inputs, Textareas & Native Selects */
.rooh-address-fields-grid .form-row input.input-text,
.woocommerce-address-fields__field-wrapper .form-row input.input-text,
.rooh-address-fields-grid .form-row select,
.woocommerce-address-fields__field-wrapper .form-row select,
.rooh-address-fields-grid .form-row textarea,
.woocommerce-address-fields__field-wrapper .form-row textarea,
.rooh-edit-account-form input.input-text,
.rooh-security-card input.input-text,
.rooh-security-card select {
  display: block !important;
  width: 100% !important;
  height: 48px !important;
  padding: 10px 14px !important;
  background: #ffffff !important;
  border: 1px solid #d8d1c5 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  color: #0c2340 !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Street Address 2 (Apartment/Suite) sub-input spacing */
#billing_address_2_field,
#shipping_address_2_field {
  margin-top: -6px !important;
}

/* Textarea height */
.rooh-address-fields-grid .form-row textarea,
.woocommerce-address-fields__field-wrapper .form-row textarea {
  height: auto !important;
  min-height: 80px !important;
}

/* Input Focus States */
.rooh-address-fields-grid .form-row input.input-text:focus,
.woocommerce-address-fields__field-wrapper .form-row input.input-text:focus,
.rooh-address-fields-grid .form-row select:focus,
.woocommerce-address-fields__field-wrapper .form-row select:focus,
.rooh-address-fields-grid .form-row textarea:focus,
.woocommerce-address-fields__field-wrapper .form-row textarea:focus,
.rooh-edit-account-form input.input-text:focus,
.rooh-security-card input.input-text:focus,
.rooh-security-card select:focus {
  border-color: #ba925b !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(186, 146, 91, 0.18) !important;
}

/* 3. Select2 / Dropdown Overrides (Fixing Country and State overlapping) */
.rooh-address-fields-grid .select2-container,
.woocommerce-address-fields__field-wrapper .select2-container,
.woocommerce-address-fields .select2-container {
  width: 100% !important;
  display: block !important;
  position: relative !important;
}

.rooh-address-fields-grid .select2-container .select2-selection--single,
.woocommerce-address-fields__field-wrapper .select2-container .select2-selection--single,
.woocommerce-address-fields .select2-container .select2-selection--single {
  height: 48px !important;
  padding: 0 14px !important;
  background: #ffffff !important;
  border: 1px solid #d8d1c5 !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.rooh-address-fields-grid .select2-container--default .select2-selection--single .select2-selection__rendered,
.woocommerce-address-fields__field-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered,
.woocommerce-address-fields .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 46px !important;
  font-size: 14px !important;
  color: #0c2340 !important;
  padding-left: 0 !important;
}

.rooh-address-fields-grid .select2-container--default .select2-selection--single .select2-selection__arrow,
.woocommerce-address-fields__field-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow,
.woocommerce-address-fields .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
  right: 12px !important;
}

.rooh-address-fields-grid .select2-container--default.select2-container--open .select2-selection--single,
.woocommerce-address-fields__field-wrapper .select2-container--default.select2-container--open .select2-selection--single,
.rooh-address-fields-grid .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce-address-fields__field-wrapper .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce-address-fields .select2-container--default.select2-container--open .select2-selection--single,
.woocommerce-address-fields .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #ba925b !important;
  box-shadow: 0 0 0 3px rgba(186, 146, 91, 0.18) !important;
  outline: none !important;
}

/* 4. Action Buttons (Matching Edit Account and Storewide Gold CTAs) */
.rooh-address-form-actions,
.rooh-form-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 14px !important;
  padding-top: 18px !important;
  border-top: 1px solid #f2ede5 !important;
}

.rooh-address-form-actions .rooh-btn--gold,
.woocommerce-address-fields button[name="save_address"],
.rooh-security-card button[type="submit"] {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%) !important;
  color: #0c2340 !important;
  font-weight: 700 !important;
  padding: 13px 28px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border: 1px solid #d4af37 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(186, 146, 91, 0.25) !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}

.rooh-address-form-actions .rooh-btn--gold:hover,
.woocommerce-address-fields button[name="save_address"]:hover,
.rooh-security-card button[type="submit"]:hover {
  background: #ffffff !important;
  color: #0c2340 !important;
  border-color: #ba925b !important;
  box-shadow: 0 6px 20px rgba(186, 146, 91, 0.4) !important;
  transform: translateY(-1px) !important;
}

.rooh-address-form-actions .rooh-btn--gold svg,
.rooh-security-card button[type="submit"] svg {
  stroke: #0c2340 !important;
}

.rooh-address-form-actions .rooh-btn--outline,
.rooh-security-card .rooh-btn--outline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 13px 24px !important;
  background: #ffffff !important;
  color: #0c2340 !important;
  border: 1px solid #d8d1c5 !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.rooh-address-form-actions .rooh-btn--outline:hover,
.rooh-security-card .rooh-btn--outline:hover {
  border-color: #0c2340 !important;
  background: #FAF8F5 !important;
}

/* 5. Cross-Form UI Consistency (Order Tracking, Returns, Contact, Account Details) */
.rooh-tracking-form input[type="text"],
.rooh-tracking-form input[type="email"],
.rooh-contact-form .rooh-form-control,
.rooh-return-form input[type="text"],
.rooh-return-form input[type="email"],
.rooh-return-form select,
.rooh-return-form textarea {
  height: 48px !important;
  padding: 10px 14px !important;
  background: #ffffff !important;
  border: 1px solid #d8d1c5 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  color: #0c2340 !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.rooh-return-form textarea,
.rooh-contact-form textarea.rooh-form-control {
  height: auto !important;
  min-height: 100px !important;
}

.rooh-tracking-form input:focus,
.rooh-contact-form .rooh-form-control:focus,
.rooh-return-form input:focus,
.rooh-return-form select:focus,
.rooh-return-form textarea:focus {
  border-color: #ba925b !important;
  box-shadow: 0 0 0 3px rgba(186, 146, 91, 0.18) !important;
}

/* 6. Responsive Breakpoint for Address Edit Forms */
@media (max-width: 640px) {
  .rooh-address-fields-grid,
  .woocommerce-address-fields__field-wrapper {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .rooh-address-fields-grid .form-row-wide,
  .woocommerce-address-fields__field-wrapper .form-row-wide,
  .rooh-address-fields-grid .form-row-first,
  .woocommerce-address-fields__field-wrapper .form-row-first,
  .rooh-address-fields-grid .form-row-last,
  .woocommerce-address-fields__field-wrapper .form-row-last {
    grid-column: 1 !important;
  }
  .rooh-address-form-actions,
  .rooh-form-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .rooh-address-form-actions .rooh-btn,
  .rooh-form-actions .rooh-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}
