/* Fixer's Forge 11.2 — customer account, order detail and contact experience */
:root {
  --ff-cx-green: #0f5136;
  --ff-cx-green-bright: #199957;
  --ff-cx-mint: #eaf8ef;
  --ff-cx-ink: #101914;
  --ff-cx-muted: #64786d;
  --ff-cx-line: rgba(19, 66, 43, .12);
  --ff-cx-glass: rgba(255, 255, 255, .88);
  --ff-cx-shadow: 0 18px 52px rgba(23, 63, 44, .09);
}

.ff-customer-experience { padding-bottom: 38px; }
.ff-customer-experience .ff-eyebrow,
.ff-contact-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 8px 12px;
  border: 1px solid rgba(25, 153, 87, .12);
  border-radius: 999px;
  color: #187442;
  background: var(--ff-cx-mint);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Shared account surface for legacy and redesigned account routes. */
body.ff-storefront [id^="account-"] #content > h1,
body.ff-storefront [id^="account-"] #content > h2 {
  color: var(--ff-cx-ink);
  font-weight: 950;
  letter-spacing: -.04em;
}
body.ff-storefront [id^="account-"] #content > h1 {
  margin: 0 0 20px;
  padding: clamp(25px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 28px;
  background: linear-gradient(125deg, rgba(234,248,239,.95), #fff 60%, rgba(255,202,0,.14));
  box-shadow: var(--ff-cx-shadow);
  font-size: clamp(2rem, 4vw, 3.8rem);
}
body.ff-storefront [id^="account-"] :is(fieldset, .table-responsive, #history, #content > form, #content > .list-group) {
  border: 1px solid var(--ff-cx-line);
  border-radius: 22px;
  background: var(--ff-cx-glass);
  box-shadow: var(--ff-cx-shadow);
}
body.ff-storefront [id^="account-"] #content > form,
body.ff-storefront [id^="account-"] fieldset { padding: clamp(18px, 3vw, 30px); }
body.ff-storefront [id^="account-"] fieldset + fieldset { margin-top: 18px; }
body.ff-storefront [id^="account-"] legend {
  float: none;
  width: 100%;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ff-cx-line);
  color: var(--ff-cx-ink);
  font-size: 1.05rem;
  font-weight: 900;
}
body.ff-storefront [id^="account-"] :is(.form-control, .form-select) {
  min-height: 49px;
  border-color: var(--ff-cx-line);
  border-radius: 14px;
  color: var(--ff-cx-ink);
  background: rgba(249,252,250,.95);
}
body.ff-storefront [id^="account-"] :is(.form-control, .form-select):focus {
  border-color: rgba(25,153,87,.5);
  box-shadow: 0 0 0 4px rgba(25,153,87,.1);
}
body.ff-storefront [id^="account-"] .col-form-label {
  color: #315d46;
  font-size: .78rem;
  font-weight: 850;
}
body.ff-storefront [id^="account-"] .btn-primary {
  min-height: 46px;
  padding-inline: 19px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--ff-cx-green);
  box-shadow: 0 12px 28px rgba(15,81,54,.2);
  font-weight: 900;
}
body.ff-storefront [id^="account-"] .btn-primary:hover { background: #167246; transform: translateY(-1px); }
body.ff-storefront [id^="account-"] .btn-light,
body.ff-storefront [id^="account-"] .btn-secondary {
  min-height: 44px;
  border: 1px solid var(--ff-cx-line);
  border-radius: 13px;
  color: var(--ff-cx-green);
  background: #fff;
  font-weight: 800;
}
body.ff-storefront [id^="account-"] .table-responsive { overflow: hidden; }
body.ff-storefront [id^="account-"] .table-responsive .table { margin: 0; }
body.ff-storefront [id^="account-"] .table-responsive thead { background: var(--ff-cx-mint); }
body.ff-storefront [id^="account-"] .table-responsive th {
  padding: 14px;
  border-color: var(--ff-cx-line);
  color: #26563e;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
body.ff-storefront [id^="account-"] .table-responsive td { padding: 14px; border-color: var(--ff-cx-line); vertical-align: middle; }
body.ff-storefront [id^="account-"] .list-group-item {
  padding: 14px 16px;
  border-color: var(--ff-cx-line);
  color: #294f3b;
  background: transparent;
  font-weight: 750;
}
body.ff-storefront [id^="account-"] .list-group-item:hover { color: var(--ff-cx-green); background: var(--ff-cx-mint); }

/* Order detail: clear product ownership, useful image and one deliberate action. */
.ff-order-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: clamp(25px, 4vw, 45px);
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 28px;
  background: linear-gradient(125deg, rgba(234,248,239,.98), #fff 66%, rgba(255,202,0,.14));
  box-shadow: var(--ff-cx-shadow);
}
.ff-order-detail-hero h1 { margin: 9px 0 3px; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 950; letter-spacing: -.055em; }
.ff-order-detail-hero p { margin: 0; color: var(--ff-cx-muted); }
.ff-order-detail-hero > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 12px 15px;
  border: 1px solid var(--ff-cx-line);
  border-radius: 14px;
  color: var(--ff-cx-green);
  background: rgba(255,255,255,.82);
  font-weight: 850;
  text-decoration: none;
}
.ff-order-detail-page #content > .row .form-control,
.ff-order-detail-page #content > .form-control {
  color: var(--ff-cx-ink);
  background: rgba(255,255,255,.9);
}
.ff-order-product-line { display: flex; align-items: flex-start; gap: 13px; min-width: 270px; }
.ff-order-product-line > a {
  display: grid;
  place-items: center;
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border: 1px solid var(--ff-cx-line);
  border-radius: 15px;
  background: #f6faf7;
}
.ff-order-product-line img { width: 100%; height: 100%; object-fit: contain; }
.ff-order-product-line > div { display: grid; gap: 5px; }
.ff-order-product-line > div > small { color: #1f804b; font-size: .7rem; font-weight: 850; }
.ff-order-product-line strong { color: var(--ff-cx-ink); }
.ff-order-again {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  color: #151a16;
  background: #ffca00;
  font-size: .74rem;
  font-weight: 950;
  box-shadow: 0 9px 22px rgba(255,202,0,.22);
}
.ff-order-again:hover { background: #ffd633; transform: translateY(-1px); }
.ff-order-detail-page #history { padding: 4px; overflow: hidden; }
.ff-order-detail-page #history .table { margin: 0; }

/* Contact page */
.ff-contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 20px;
  padding: clamp(30px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 32px;
  background: linear-gradient(128deg, #edf9f1, #fff 60%, rgba(255,202,0,.16));
  box-shadow: var(--ff-cx-shadow);
}
.ff-contact-hero h1 { max-width: 800px; margin: 13px 0 10px; font-size: clamp(2.7rem, 6vw, 5.8rem); font-weight: 950; letter-spacing: -.065em; line-height: .94; }
.ff-contact-hero p { max-width: 700px; margin: 0; color: var(--ff-cx-muted); font-size: 1.02rem; line-height: 1.7; }
.ff-contact-hero aside { display: grid; gap: 10px; }
.ff-contact-hero aside > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15,81,54,.09);
  border-radius: 17px;
  background: rgba(255,255,255,.7);
}
.ff-contact-hero aside i { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 13px; color: var(--ff-cx-green); background: var(--ff-cx-mint); }
.ff-contact-hero aside span { display: grid; }
.ff-contact-hero aside small { color: var(--ff-cx-muted); }
.ff-contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; align-items: start; }
.ff-contact-details,
.ff-contact-form,
.ff-contact-locations {
  padding: clamp(22px, 3.5vw, 36px);
  border: 1px solid var(--ff-cx-line);
  border-radius: 27px;
  background: var(--ff-cx-glass);
  box-shadow: var(--ff-cx-shadow);
}
.ff-contact-heading h2 { margin: 10px 0 6px; color: var(--ff-cx-ink); font-size: clamp(1.55rem, 3vw, 2.4rem); font-weight: 950; letter-spacing: -.04em; }
.ff-contact-heading p { margin: 0; color: var(--ff-cx-muted); }
.ff-contact-methods { display: grid; gap: 9px; margin: 22px 0; }
.ff-contact-methods > a {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--ff-cx-line);
  border-radius: 17px;
  color: var(--ff-cx-ink);
  background: #fff;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ff-contact-methods > a:hover { transform: translateY(-2px); border-color: rgba(25,153,87,.32); box-shadow: 0 14px 28px rgba(23,63,44,.08); }
.ff-contact-methods > a > i:first-child { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: var(--ff-cx-green); }
.ff-contact-methods > a > i:last-child { color: #72a188; font-size: .72rem; }
.ff-contact-methods span { display: grid; }
.ff-contact-methods small { color: var(--ff-cx-muted); }
.ff-contact-methods strong { overflow-wrap: anywhere; }
.ff-contact-store { display: grid; grid-template-columns: 130px 1fr; gap: 15px; padding: 15px; border-radius: 20px; background: var(--ff-cx-mint); }
.ff-contact-store img { width: 130px; height: 100%; min-height: 145px; border-radius: 15px; object-fit: cover; }
.ff-contact-store span { color: #288055; font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ff-contact-store h3 { margin: 4px 0; font-weight: 950; }
.ff-contact-store address { color: var(--ff-cx-muted); font-style: normal; }
.ff-contact-store p { color: var(--ff-cx-muted); }
.ff-contact-store a { color: var(--ff-cx-green); font-weight: 850; text-decoration: none; }
.ff-contact-form { display: grid; gap: 8px; }
.ff-contact-form .ff-contact-heading { margin-bottom: 13px; }
.ff-contact-form label { margin-top: 7px; color: #315d46; font-size: .78rem; font-weight: 850; }
.ff-contact-form label b { color: #d24b3f; }
.ff-contact-input { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 1px solid var(--ff-cx-line); border-radius: 15px; background: #fbfdfb; }
.ff-contact-input:focus-within { border-color: rgba(25,153,87,.5); box-shadow: 0 0 0 4px rgba(25,153,87,.1); }
.ff-contact-input i { color: #6c8879; }
.ff-contact-input .form-control { min-height: 49px; padding: 0; border: 0; box-shadow: none; background: transparent; }
.ff-contact-form textarea.form-control { min-height: 150px; padding: 15px; border-color: var(--ff-cx-line); border-radius: 15px; background: #fbfdfb; }
.ff-contact-form textarea.form-control:focus { border-color: rgba(25,153,87,.5); box-shadow: 0 0 0 4px rgba(25,153,87,.1); }
.ff-contact-captcha { display: grid; gap: 13px; margin-top: 10px; padding: 15px; border: 1px solid rgba(25,153,87,.14); border-radius: 18px; background: var(--ff-cx-mint); }
.ff-contact-captcha > div:first-child { display: flex; align-items: center; gap: 11px; }
.ff-contact-captcha > div:first-child > i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--ff-cx-green); background: #fff; }
.ff-contact-captcha span { display: grid; }
.ff-contact-captcha small { color: var(--ff-cx-muted); }
.ff-contact-captcha img { max-width: 100%; border-radius: 12px; }
.ff-contact-captcha .form-control { border-radius: 13px; }
.ff-contact-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  margin-top: 7px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  color: #111711;
  background: #ffca00;
  box-shadow: 0 14px 30px rgba(255,202,0,.24);
  font-weight: 950;
}
.ff-contact-submit:hover { background: #ffd32e; transform: translateY(-1px); }
.ff-contact-locations { margin-top: 20px; }
.ff-contact-location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.ff-contact-location-grid article { overflow: hidden; border: 1px solid var(--ff-cx-line); border-radius: 19px; background: #fff; }
.ff-contact-location-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ff-contact-location-grid article > div { padding: 17px; }
.ff-contact-location-grid h3 { font-weight: 950; }
.ff-contact-location-grid :is(address,p) { color: var(--ff-cx-muted); font-style: normal; }
.ff-contact-location-grid a { color: var(--ff-cx-green); font-weight: 850; text-decoration: none; }

@media (max-width: 991.98px) {
  .ff-contact-hero { grid-template-columns: 1fr; }
  .ff-contact-hero aside { grid-template-columns: repeat(2, 1fr); }
  .ff-contact-layout { grid-template-columns: 1fr; }
  .ff-contact-location-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
  .ff-customer-experience { padding-bottom: 105px; }
  body.ff-storefront [id^="account-"] #content > h1 { padding: 22px 17px; border-radius: 22px; }
  body.ff-storefront [id^="account-"] #content > form,
  body.ff-storefront [id^="account-"] fieldset { padding: 16px; border-radius: 19px; }
  body.ff-storefront [id^="account-"] .table-responsive { overflow-x: auto; border-radius: 18px; }
  .ff-order-detail-hero { align-items: flex-start; flex-direction: column; padding: 22px 17px; border-radius: 23px; }
  .ff-order-detail-page #content > .row { display: grid; grid-template-columns: 1fr; }
  .ff-order-detail-page #content > .row > .col { width: 100%; }
  .ff-order-detail-page .table-responsive table { min-width: 740px; }
  .ff-order-product-line { min-width: 245px; }
  .ff-order-product-line > a { flex-basis: 62px; width: 62px; height: 62px; }
  .ff-contact-hero { padding: 25px 19px; border-radius: 24px; }
  .ff-contact-hero h1 { font-size: clamp(2.4rem, 14vw, 4rem); }
  .ff-contact-hero aside { grid-template-columns: 1fr; }
  .ff-contact-details, .ff-contact-form, .ff-contact-locations { padding: 18px; border-radius: 22px; }
  .ff-contact-store { grid-template-columns: 1fr; }
  .ff-contact-store img { width: 100%; height: 180px; }
  .ff-contact-location-grid { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ff-cx-ink: #eef7f1;
    --ff-cx-muted: #aec0b6;
    --ff-cx-line: rgba(224,241,232,.14);
    --ff-cx-glass: rgba(20,32,26,.92);
    --ff-cx-mint: #173a28;
    --ff-cx-shadow: 0 18px 52px rgba(0,0,0,.28);
  }
  body.ff-storefront [id^="account-"] #content > h1,
  .ff-order-detail-hero,
  .ff-contact-hero { border-color: var(--ff-cx-line); background: linear-gradient(130deg, #173427, #13201a 65%, #2e2913); }
  body.ff-storefront [id^="account-"] :is(fieldset, .table-responsive, #history, #content > form, #content > .list-group),
  .ff-contact-details, .ff-contact-form, .ff-contact-locations { color: var(--ff-cx-ink); background: var(--ff-cx-glass); }
  body.ff-storefront [id^="account-"] :is(.form-control, .form-select),
  .ff-contact-input, .ff-contact-input .form-control,
  .ff-contact-form textarea.form-control {
    color: #eef7f1;
    background: #17231d;
  }
  body.ff-storefront [id^="account-"] :is(.form-control, .form-select)::placeholder,
  .ff-contact-form :is(input,textarea)::placeholder { color: #879a90; opacity: 1; }
  body.ff-storefront [id^="account-"] .table-responsive thead { background: #173a28; }
  body.ff-storefront [id^="account-"] .table-responsive th { color: #9ee2b7; }
  body.ff-storefront [id^="account-"] .list-group-item { color: #dce9e1; }
  body.ff-storefront [id^="account-"] .list-group-item:hover { color: #fff; background: #1b432d; }
  .ff-order-detail-hero > a,
  .ff-contact-hero aside > div,
  .ff-contact-methods > a,
  .ff-contact-location-grid article { color: var(--ff-cx-ink); background: #1a2821; }
  .ff-order-detail-page #content > .row .form-control,
  .ff-order-detail-page #content > .form-control { color: var(--ff-cx-ink); background: #19271f; }
  .ff-order-product-line > a { background: #f2f4f2; }
  .ff-order-product-line strong { color: var(--ff-cx-ink); }
  .ff-contact-store, .ff-contact-captcha { color: var(--ff-cx-ink); background: #173a28; }
  .ff-contact-captcha > div:first-child > i { background: #213329; }
  .ff-contact-heading > span, .ff-customer-experience .ff-eyebrow { color: #98dfb0; background: #173a28; }
}

@media (prefers-reduced-motion: reduce) {
  .ff-contact-methods > a, .ff-contact-submit, .ff-order-again, body.ff-storefront [id^="account-"] .btn-primary { transition: none; }
}
