/* Heritage Made customer account styling
   Phase 14: restore the customer My Account pages to the main Heritage Made front-end design. */

.hm-account-body {
  background: var(--paper);
}

.hm-account-hero {
  min-height: 430px;
  padding: 150px 0 88px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(rgba(17,16,13,.62), rgba(17,16,13,.72)), url('/assets/images/Serene rustic-modern interior vignette.webp');
  background-size: cover;
  background-position: center;
}

.hm-account-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 28%, rgba(208,122,0,.28), transparent 34%), linear-gradient(90deg, rgba(0,61,61,.48), transparent 58%);
  pointer-events: none;
}

.hm-account-hero .container {
  position: relative;
  z-index: 1;
}

.hm-account-crumbs {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,.72);
  margin-bottom: 18px;
}

.hm-account-crumbs a {
  color: #fff;
}

.hm-account-hero h1 {
  max-width: 880px;
}

.hm-account-hero p {
  max-width: 660px;
  margin-top: 18px;
  color: rgba(255,255,255,.86);
  font-size: 1.05rem;
}

.hm-account-section {
  padding: 90px 0;
  background: var(--paper);
}

.hm-account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 32px;
  align-items: stretch;
}

.hm-account-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hm-account-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--deep), var(--gold));
}

.hm-account-card.is-dark {
  background: var(--deep);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}

.hm-account-card.is-dark::before {
  background: var(--gold);
}

.hm-account-card.is-dark .lead,
.hm-account-card.is-dark p,
.hm-account-card.is-dark li {
  color: rgba(255,255,255,.82);
}

.hm-account-card.is-dark h2,
.hm-account-card.is-dark h3 {
  color: #fff;
}

.hm-account-card h2 {
  margin-bottom: 16px;
}

.hm-account-card p:last-child {
  margin-bottom: 0;
}

.hm-account-form {
  margin-top: 28px;
}

.hm-account-field {
  margin-bottom: 18px;
}

.hm-account-field label {
  display: block;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
}

.hm-account-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--black);
  padding: 0 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.hm-account-field input:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(208,122,0,.12);
}

.hm-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  margin-top: 24px;
}

.hm-account-actions .btn {
  border-radius: 0;
}

.hm-account-link {
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hm-account-message {
  border: 1px solid rgba(0,61,61,.18);
  background: rgba(0,61,61,.07);
  color: var(--deep);
  padding: 14px 16px;
  margin: 0 0 20px;
  font-size: .92rem;
  line-height: 1.55;
}

.hm-account-error {
  border-color: rgba(184,51,40,.24);
  background: rgba(184,51,40,.08);
  color: #8a261f;
}

.hm-account-feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.hm-account-feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.hm-account-feature-list span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(208,122,0,.16);
  color: var(--gold);
  border: 1px solid rgba(208,122,0,.35);
  font-weight: 900;
  line-height: 1;
}

.hm-account-order-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.hm-account-order-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 24px;
  display: grid;
  gap: 14px;
}

.hm-account-order-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hm-account-order-title {
  font-weight: 800;
  color: var(--black);
}

.hm-account-order-meta {
  color: var(--muted);
  font-size: .86rem;
  margin-top: 5px;
}

.hm-account-order-amount {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: var(--deep);
}

.hm-account-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(0,61,61,.08);
  color: var(--deep);
  border: 1px solid rgba(0,61,61,.16);
  padding: 7px 13px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hm-account-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--line);
  color: var(--black);
  background: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hm-account-logout:hover {
  color: #fff;
  border-color: var(--black);
  background: var(--black);
}

.btn.btn-outline,
.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: currentColor;
}

.btn.btn-outline:hover,
.btn-outline:hover {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.hm-account-card.is-dark .btn.btn-outline,
.hm-account-card.is-dark .btn-outline {
  color: #fff;
}

.hm-account-card.is-dark .btn.btn-outline:hover,
.hm-account-card.is-dark .btn-outline:hover {
  background: #fff;
  color: var(--black);
  border-color: #fff;
}



.hm-account-single {
  display: flex;
  justify-content: center;
}

.hm-account-card-centered {
  width: min(100%, 760px);
}

.hm-account-create-option {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  justify-content: space-between;
}

.hm-account-create-option span {
  color: var(--muted);
  font-weight: 600;
}

.hm-register-panel {
  display: none;
  margin-top: 28px;
}

.hm-register-panel.is-open {
  display: block;
}

.hm-register-divider {
  height: 1px;
  background: var(--line);
  margin: 0 0 28px;
}

.hm-register-panel h3 {
  margin-bottom: 12px;
}

.hm-account-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(0,61,61,.06);
  border: 1px solid rgba(0,61,61,.14);
  color: var(--deep);
  font-size: .92rem;
  line-height: 1.6;
}

.hm-account-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hm-account-field-half-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hm-account-field-half {
  min-width: 0;
}

.hm-account-card.is-dark .hm-account-field label {
  color: rgba(255,255,255,.88);
}

.hm-account-card.is-dark .hm-account-field input {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}

.hm-account-card.is-dark .hm-account-field input::placeholder {
  color: rgba(255,255,255,.55);
}

.hm-account-card.is-dark .hm-account-field input:focus {
  background: rgba(255,255,255,.12);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(208,122,0,.16);
}

.hm-account-card.is-dark .hm-account-message {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.hm-account-card.is-dark .hm-account-message.hm-account-error {
  border-color: rgba(255,214,209,.2);
  background: rgba(184,51,40,.18);
  color: #ffe7e3;
}

.hm-account-alt-text {
  margin-top: 18px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hm-account-grid {
    grid-template-columns: 1fr;
  }

  .hm-account-hero {
    min-height: 360px;
    padding: 128px 0 70px;
  }
}

@media (max-width: 560px) {
  .hm-account-field-half-wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hm-account-section {
    padding: 64px 0;
  }

  .hm-account-card {
    padding: 28px 22px;
  }

  .hm-account-create-option .btn,
  .hm-account-actions .btn,
  .hm-account-actions .hm-account-logout {
    width: 100%;
  }

  .hm-account-order-head {
    display: block;
  }

  .hm-account-order-amount {
    margin-top: 12px;
  }
}


/* Phase 58: My Account verified review buttons */
.hm-account-review-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.hm-account-review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px 20px;
}

.hm-account-review-btn {
  flex: 0 0 auto;
  padding: 13px 20px;
}

.hm-account-review-done {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(10,107,60,.18);
  background: rgba(10,107,60,.08);
  color: #0a6b3c;
  padding: 9px 13px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .hm-account-review-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
