/* ============================================================
   Alamo Management Group — Resale Package page redesign
   Standalone stylesheet, consumed inside an existing WordPress +
   Elementor + WooCommerce site.

   - Every selector is scoped under .amg-resale — no bare element
     selectors and no global resets.
   - All classes prefixed `amg-`, BEM-style, flat specificity.
   - Custom properties live on .amg-resale (the host theme owns :root).
   ============================================================ */

.amg-resale {
  --amg-navy: #153462;
  --amg-green: #55b151;
  --amg-green-dark: #2e6b30;
  --amg-card-dark: #2b3530;
  --amg-text: #33383f;
  --amg-text-soft: #5a5f66;
  --amg-border: #d1ccbf;
  --amg-bg-soft: #f4f3ef;
  --amg-tan: #cfc8ba;
  --amg-tan-soft: #f7f5f0;
  --amg-white: #ffffff;
  --amg-error: #b3261e;
  --amg-radius: 4px;
  --amg-font:
    "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --amg-font-urbanist:
    "Urbanist", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  font-family: var(--amg-font);
  font-family: var(--amg-font-urbanist);
  color: var(--amg-text);
  /* Scoped background so the standalone zip previews on white regardless of
     browser theme; harmless inside WP where the page background is the theme's. */
  background: var(--amg-white);
  color-scheme: light;
  font-size: 16px;
  line-height: 1.5;
  max-width: 71rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 4rem;
  box-sizing: border-box;
}

.amg-resale *,
.amg-resale *::before,
.amg-resale *::after {
  box-sizing: border-box;
}

/* ---------- utilities ---------- */

.amg-resale .amg-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.amg-resale .amg-tick {
  color: var(--amg-green);
  font-weight: 600;
}

.amg-resale .amg-req {
  color: var(--amg-error);
}

.amg-resale :focus-visible {
  outline: 2px solid var(--amg-navy);
  outline-offset: 2px;
}

/* ---------- buttons ---------- */

.amg-resale .amg-btn {
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.2;
  padding: 0.65rem 1.4rem;
  border-radius: var(--amg-radius);
  border: 1px solid var(--amg-green);
  cursor: pointer;
  min-height: 44px;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
  border-radius: 0px;
}

.amg-resale .amg-btn--outline {
  background: var(--amg-white);
  font-size: 1.125rem;
  line-height: 20px;
  color: var(--amg-green);
}

.amg-resale .amg-btn--outline:hover {
  background: var(--amg-green);
  color: var(--amg-white);
}

.amg-resale .amg-btn--solid {
  background: var(--amg-green);
  color: var(--amg-white);
}

.amg-resale .amg-btn--solid:hover {
  background: var(--amg-green-dark);
  border-color: var(--amg-green-dark);
}

.amg-resale .amg-btn--edit {
  min-height: 36px;
  padding: 0.35rem 1.1rem;
  font-size: 1.125rem;
  background: var(--amg-white);
  color: var(--amg-green);
  border-radius: 0px;
}

.amg-resale .amg-btn--edit:hover {
  background: var(--amg-green);
  color: var(--amg-white);
}

.amg-resale .amg-btn--pay {
  font-size: 1.125rem;
  background: var(--amg-green);
  color: var(--amg-white);
  padding: 0.75rem 2.5rem;
  border-radius: 0px;
}

.amg-resale .amg-btn--pay:hover:not(:disabled) {
  background: var(--amg-green-dark);
  border-color: var(--amg-green-dark);
}

.amg-resale .amg-btn--pay:disabled {
  background: #b9b9b9;
  border-color: #b9b9b9;
  color: var(--amg-white);
  cursor: not-allowed;
}

/* ---------- step scaffolding ---------- */

.amg-resale .amg-step {
  margin-bottom: 4rem;
  scroll-margin-top: 6rem; /* clearance for the host site's sticky header */
}

.amg-resale .amg-step__header {
  text-align: center;
  margin-bottom: 2rem;
}

.amg-resale .amg-step__title {
  font-family: var(--amg-font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
  line-height: 31px;
  color: var(--amg-navy);
  font-size: 1.5rem;
  font-weight: 600;
}

.amg-resale .amg-step__badge {
  font-family: var(--amg-font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--amg-green);
  color: var(--amg-white);
  font-size: 0.875rem;
  line-height: 52px;
  font-weight: 600;
}

.amg-resale .amg-step__subtitle {
  margin: 0 auto;
  max-width: 46rem;
  color: var(--amg-text-soft);
  font-size: 1.125rem;
  line-height: 20px;
}

.amg-resale .amg-step__footnote {
  margin: 1rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--amg-text-soft);
}

.amg-resale .amg-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0.55rem 1rem;
  background: var(--amg-bg-soft);
  font-size: 1.125rem;
  line-height: 20px;
  color: var(--amg-text);
  border-radius: var(--amg-radius);
}

.amg-resale .amg-notice__icon {
  color: var(--amg-green);
  flex-shrink: 0;
}

/* ---------- step 1: package cards ---------- */

.amg-resale .amg-packages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.amg-resale .amg-package {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--amg-border);
  background: var(--amg-white);
  padding: 1.25rem 1.5rem 2rem;
  text-align: center;
  cursor: pointer;
}

.amg-resale .amg-package--featured {
  background: var(--amg-card-dark);
  border-color: var(--amg-card-dark);
  color: var(--amg-white);
}

.amg-resale .amg-package--selected {
  border-color: var(--amg-green);
  box-shadow: 0 0 0 1px var(--amg-green);
}

.amg-resale .amg-package__flag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: var(--amg-green);
  color: var(--amg-white);
  font-size: 0.875rem;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.amg-resale .amg-package__body {
  flex: 1 1 auto;
}

.amg-resale .amg-package__name {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  line-height: 35px;
  font-weight: 600;
  text-transform: uppercase;
}

.amg-resale .amg-package__price {
  font-family: var(--amg-font);
  margin: 0 0 0.25rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--amg-navy);
}

.amg-resale .amg-package--featured .amg-package__price {
  color: var(--amg-white);
}

.amg-resale .amg-package__tagline {
  margin: 0 0 1rem;
  color: var(--amg-green);
  font-size: 1rem;
  font-weight: 700;
  line-height: 16px;
}

.amg-resale .amg-package--featured .amg-package__tagline {
  color: #7ed07f;
}

.amg-resale .amg-package__desc {
  margin: 0 auto 2rem;
  max-width: 18rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 16px;
  color: var(--amg-text-soft);
}

.amg-resale .amg-package--featured .amg-package__desc {
  color: #d3d7cf;
}

.amg-resale .amg-package__rule {
  border: 0;
  border-top: 1px solid var(--amg-border);
  margin: 0 0 1.25rem;
}

.amg-resale .amg-package--featured .amg-package__rule {
  border-top-color: rgba(255, 255, 255, 0.35);
}

.amg-resale .amg-package__features {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  text-align: left;
  font-size: 1.125rem;
  line-height: 20px;
  display: grid;
  gap: 0.6rem;
}

.amg-resale .amg-package__features li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.amg-resale .amg-package__select {
  font-family: inherit;
  font-size: 1.125rem;
  line-height: 20px;
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid var(--amg-green);
  background: var(--amg-white);
  color: var(--amg-green);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.amg-resale .amg-package__select:hover {
  background: var(--amg-green);
  color: var(--amg-white);
}

.amg-resale .amg-package--selected .amg-package__select {
  background: var(--amg-green);
  border-color: var(--amg-green);
  color: var(--amg-white);
}

/* ---------- accordions ---------- */

.amg-resale .amg-accordion {
  margin-bottom: 1.25rem;
}

/* Collapse animator: the 0fr→1fr grid-row transition gives a smooth open without JS height measurement; visibility rides the same transition so that closed content is unfocusable and hidden from assistive tech. */
.amg-resale .amg-accordion__collapse {
  display: grid;
  grid-template-rows: 0fr;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  visibility: hidden;
  transition:
    grid-template-rows 0.3s ease,
    visibility 0.3s;
}

.amg-resale .amg-accordion__collapse--open {
  grid-template-rows: 1fr;
  visibility: visible;
}

.amg-resale .amg-accordion__collapse > .amg-accordion__panel {
  min-height: 0;
  min-width: 0;
  transition:
    margin 0.3s ease,
    padding 0.3s ease,
    border-width 0.3s ease;
}

.amg-resale
  .amg-accordion__collapse:not(.amg-accordion__collapse--open)
  > .amg-accordion__panel {
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  border-bottom-width: 0;
}

.amg-resale .amg-accordion__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.amg-resale .amg-accordion__trigger {
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--amg-border);
  background: var(--amg-white);
  color: var(--amg-card-dark);
  font-size: 1.125rem;
  line-height: 35px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.5s ease;
}

.amg-resale .amg-accordion__trigger:hover {
  background: var(--amg-tan);
}

.amg-resale .amg-accordion__chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.amg-resale
  .amg-accordion__trigger[aria-expanded="true"]
  .amg-accordion__chevron {
  transform: rotate(180deg);
}

.amg-resale .amg-accordion--faq .amg-accordion__trigger {
  font-family: var(--amg-font);
  justify-content: space-between;
  background: var(--amg-bg-soft);
  border-color: var(--amg-tan);
  font-weight: 600;
  font-size: 1.25rem;
  text-align: left;
  color: #2b2b28;
  transition: background-color 0.5s ease;
}

.amg-resale .amg-accordion--faq .amg-accordion__trigger:hover {
  background: var(--amg-tan);
}

.amg-resale .amg-accordion--faq .amg-accordion__panel {
  border: 1px solid var(--amg-border);
  border-top: 0;
  padding: 1.25rem;
  background: var(--amg-white);
  font-size: 1.125rem;
  line-height: 35px;
}

.amg-resale .amg-accordion--faq .amg-accordion__panel p {
  margin: 0;
}

/* ---------- compare table ---------- */

.amg-resale .amg-accordion--compare .amg-accordion__panel {
  margin-top: 0.75rem;
}

.amg-resale .amg-compare__hint {
  display: none;
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--amg-text-soft);
}

.amg-resale .amg-compare__scroll {
  /* positioning context: keeps the absolutely-positioned .amg-visually-hidden
     spans inside table cells from anchoring to the document and widening the
     page (mobile horizontal-scroll bug) */
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.amg-resale .amg-compare {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.amg-resale .amg-compare thead th {
  background: var(--amg-navy);
  color: var(--amg-white);
  font-weight: 600;
  padding: 0.5rem 1rem;
  text-align: center;
}

.amg-resale .amg-compare thead th.amg-compare__col--featured {
  font-size: 1.125rem;
  background: var(--amg-card-dark);
}

.amg-resale .amg-compare thead th.amg-compare__col--feature {
  font-size: 1.125rem;
}

.amg-resale .amg-compare__price {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 16px;
}

.amg-resale .amg-compare tbody th,
.amg-resale .amg-compare tbody td {
  padding: 0.8rem 1rem;
  border: 1px solid var(--amg-border);
  text-align: center;
}

.amg-resale .amg-compare tbody th[scope="row"] {
  text-align: left;
  font-weight: 400;
}

.amg-resale .amg-compare tbody td.amg-compare__col--featured {
  background: #ececec;
}

.amg-resale .amg-compare__footnote {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--amg-text-soft);
  line-height: 16px;
}

/* tbody in the selector: the generic `tbody th` center rule outweighs a
   two-class selector, and these bands must stay left-aligned on mobile */
.amg-resale .amg-compare tbody .amg-compare__group th {
  background: var(--amg-tan-soft);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  text-align: left;
  color: var(--amg-text);
}

/* The band cell spans the full swipe-width, so the label itself is pinned:
   it stays put while the table scrolls beneath it on mobile. */
.amg-resale .amg-compare__group-label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 16px;
  display: inline-block;
  position: sticky;
  left: 1rem;
}

/* sticky first column so document names stay visible while swiping */
.amg-resale .amg-compare tbody th[scope="row"],
.amg-resale .amg-compare thead th.amg-compare__doc-col {
  position: sticky;
  left: 0;
  background: var(--amg-white);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 20px;
}

.amg-resale .amg-compare thead th.amg-compare__doc-col {
  background: var(--amg-navy);
  font-size: 1.125rem;
  line-height: 35px;
}

/* ---------- step 2: delivery options ---------- */

.amg-resale .amg-delivery {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.amg-resale .amg-delivery__option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--amg-border);
  background: var(--amg-white);
  cursor: pointer;
}

.amg-resale .amg-delivery__option:has(.amg-delivery__input:checked) {
  border-color: var(--amg-green);
  box-shadow: 0 0 0 1px var(--amg-green);
}

.amg-resale .amg-delivery__option:has(.amg-delivery__input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--amg-bg-soft);
}

/* the option's flex display would otherwise defeat the hidden attribute */
.amg-resale .amg-delivery__option[hidden] {
  display: none;
}

.amg-resale .amg-delivery__input {
  position: absolute;
  opacity: 0;
}

.amg-resale .amg-delivery__control {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #9aa0a6;
  border-radius: 50%;
  position: relative;
}

.amg-resale .amg-delivery__input:checked + .amg-delivery__control {
  border-color: var(--amg-green);
}

.amg-resale .amg-delivery__input:checked + .amg-delivery__control::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--amg-green);
}

.amg-resale .amg-delivery__input:focus-visible + .amg-delivery__control {
  outline: 2px solid var(--amg-navy);
  outline-offset: 2px;
}

.amg-resale .amg-delivery__text {
  flex: 1 1 auto;
  display: grid;
  gap: 0.15rem;
}

.amg-resale .amg-delivery__name {
  font-family: var(--amg-font);
  font-weight: 600;
  color: var(--amg-navy);
  font-size: 1.5rem;
  line-height: 29px;
}

.amg-resale .amg-delivery__meta {
  font-size: 1rem;
  font-weight: 500;
  color: var(--amg-text-soft);
  line-height: 16px;
}

.amg-resale .amg-delivery__unavailable {
  font-size: 0.8125rem;
  color: var(--amg-error);
}

.amg-resale .amg-delivery__fee {
  font-weight: 600;
  font-size: 1.125rem;
  white-space: nowrap;
}

/* ---------- step 3: order form ---------- */

.amg-resale .amg-order-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 2rem;
}

.amg-resale .amg-field {
  margin: 0;
  display: grid;
  gap: 0.3rem;
}

.amg-resale .amg-field__label {
  font-size: 1rem;
  font-weight: 500;
  line-height: 16px;
  margin-bottom: 0.3125rem;
  color: var(--amg-text);
}

.amg-resale .amg-field__input {
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--amg-text);
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--amg-border);
  border-radius: var(--amg-radius);
  background: var(--amg-white);
  width: 100%;
  min-height: 44px;
}

.amg-resale .amg-field__input::placeholder {
  color: #9aa0a6;
}

.amg-resale .amg-field__input--textarea {
  resize: vertical;
  min-height: 8rem;
}

.amg-resale .amg-field__input[aria-invalid="true"] {
  border-color: var(--amg-error);
}

/* ----- closing-date picker ----- */

.amg-resale .amg-field__date {
  position: relative;
  display: block;
}

.amg-resale .amg-field__date .amg-field__input {
  padding-right: 3rem; /* clearance for the calendar button */
}

.amg-resale .amg-field__date-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--amg-text-soft);
  cursor: pointer;
}

.amg-resale .amg-field__date-btn:hover {
  color: var(--amg-navy);
}

/* Invisible overlay covering the whole field: the browser anchors the
   showPicker() calendar to this element's box, so matching the field's
   footprint makes the popup open attached to the field instead of floating
   at a corner. Kept rendered (display:none breaks showPicker), unfocusable,
   and click-transparent. */
.amg-resale .amg-field__date-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  pointer-events: none;
}

/* reserved line so appearing errors don't shift the layout (CLS) */
.amg-resale .amg-field__error {
  min-height: 1.1rem;
  font-size: 0.78rem;
  color: var(--amg-error);
}

.amg-resale .amg-order-form__actions {
  margin: 1.5rem 0 0;
  text-align: center;
}

/* ---------- step 4: summary, consent, pay ---------- */

.amg-resale .amg-summary {
  background: var(--amg-bg-soft);
  border-radius: var(--amg-radius);
  padding: 0.25rem 1.5rem;
}

.amg-resale .amg-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #dcd9d3;
}

.amg-resale .amg-summary__row:last-child {
  border-bottom: 0;
}

.amg-resale .amg-summary__label {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--amg-text-soft);
}

.amg-resale .amg-summary__value {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 35px;
}

.amg-resale .amg-summary__row--total {
  padding: 1.1rem 0;
}

.amg-resale .amg-summary__total-label,
.amg-resale .amg-summary__total {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 34px;
  color: var(--amg-navy);
}

.amg-resale .amg-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.875rem;
}

.amg-resale .amg-consent__input {
  width: 20px;
  height: 20px;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
  accent-color: var(--amg-green-dark);
}

.amg-resale .amg-consent__label {
  font-size: 1rem;
  cursor: pointer;
}

.amg-resale .amg-pay {
  margin: 0;
  text-align: center;
}

.amg-resale .amg-pay__status {
  min-height: 1.3rem; /* reserved to avoid CLS when the status appears */
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--amg-text-soft);
}

.amg-resale .amg-confirmation {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--amg-radius);
  border: 1px solid var(--amg-border);
}

.amg-resale .amg-confirmation__title {
  margin: 0 0 0.5rem;
  color: var(--amg-navy);
  font-size: 1.125rem;
}

.amg-resale .amg-confirmation__copy {
  margin: 0;
  font-size: 0.9375rem;
}

/* ---------- upsell dialog ---------- */

.amg-upsell {
  font-family:
    "Poppins",
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    Arial,
    sans-serif;
  color: #33383f;
  border: 0;
  border-radius: 4px;
  padding: 2rem;
  max-width: 26rem;
  width: calc(100% - 2.5rem);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.amg-upsell::backdrop {
  background: rgba(43, 48, 40, 0.65);
}

.amg-upsell__title {
  margin: 0 0 0.75rem;
  color: var(--amg-navy);
  font-size: 1.5rem;
  line-height: 1.3;
}

.amg-upsell__copy {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  line-height: 20px;
}

.amg-upsell__actions {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.amg-upsell .amg-btn {
  font-family: inherit;
  font-size: 1.125rem;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border: 1px solid #4caf50;
  cursor: pointer;
  width: 100%;
}

.amg-upsell .amg-btn--solid {
  background: #4caf50;
  color: #ffffff;
}

.amg-upsell .amg-btn--solid:hover {
  background: #2e6b30;
  border-color: #2e6b30;
}

.amg-upsell .amg-btn--outline {
  background: #ffffff;
  color: #4caf50;
}

.amg-upsell .amg-btn--outline:hover {
  background: #4caf50;
  color: #ffffff;
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .amg-resale .amg-btn,
  .amg-resale .amg-package__select,
  .amg-resale .amg-accordion__chevron,
  .amg-resale .amg-accordion__collapse,
  .amg-resale .amg-accordion__collapse > .amg-accordion__panel {
    transition: none;
  }
}

/* ---------- tablet & desktop ---------- */

@media (min-width: 768px) {
  .amg-resale .amg-packages {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .amg-resale .amg-order-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .amg-resale .amg-field--full {
    grid-column: 1 / -1;
  }

  .amg-resale .amg-step__title {
    font-size: 2.5rem;
    font-family: var(--amg-font);
    line-height: 52px;
  }

  .amg-resale .amg-step__badge {
    font-family: var(--amg-font);
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
  }

  .amg-resale .amg-compare tbody .amg-compare__group th {
    text-align: center;
    padding: 0.7rem 1rem;
    border: 1px solid var(--amg-border);
  }
}

@media (max-width: 767px) {
  .amg-resale .amg-compare__hint {
    display: block;
  }

  .amg-resale {
    padding-top: 3rem;
  }

  .amg-resale .amg-notice {
    display: flex;
    justify-content: flex-start;
    text-align: left;
  }

  /* 1 Choose Your Package */

  .amg-resale .amg-step__subtitle {
    font-size: 1rem;
    line-height: 18px;
  }

  .amg-resale .amg-notice {
    font-size: 1rem;
    align-items: flex-start;
  }

  .amg-resale .amg-package__name {
    font-size: 1rem;
    line-height: 21px;
  }

  .amg-resale .amg-package__price {
    font-size: 1.5rem;
    line-height: 31px;
  }

  .amg-resale .amg-package__desc {
    margin-bottom: 1.25rem;
  }

  .amg-resale .amg-package__features {
    font-size: 1rem;
    line-height: 18px;
  }

  .amg-resale .amg-package__select {
    font-size: 1rem;
    line-height: 18px;
  }

  .amg-resale .amg-packages {
    margin-bottom: 1.25rem;
  }

  .amg-resale .amg-compare tbody th,
  .amg-resale .amg-compare tbody td {
    padding: 0.5rem 1rem;
  }

  /* Accordion */
  .amg-resale .amg-accordion__trigger {
    font-size: 1.125rem;
    line-height: 20px;
    font-weight: 400;
    text-align: left;
  }

  .amg-resale .amg-compare__hint {
    font-size: 0.875rem;
    font-weight: 500;
  }

  .amg-resale .amg-compare thead th.amg-compare__doc-col {
    font-size: 1rem;
    line-height: 21px;
    font-weight: 600;
  }

  .amg-resale .amg-compare thead th.amg-compare__col--feature {
    font-size: 1rem;
    line-height: 21px;
  }

  .amg-resale .amg-compare thead th.amg-compare__col--featured {
    font-size: 1rem;
    line-height: 21px;
  }

  .amg-resale .amg-compare__group-label {
    font-size: 0.75rem;
    line-height: 12px;
    font-weight: 700;
  }

  .amg-resale .amg-compare tbody th[scope="row"],
  .amg-resale .amg-compare thead th.amg-compare__doc-col {
    font-size: 1rem;
    line-height: 21px;
  }

  .amg-resale .amg-accordion {
    margin-bottom: 2rem;
  }

  .amg-resale .amg-step {
    margin-bottom: 3rem;
  }

  .amg-resale .amg-accordion--faq .amg-accordion__panel {
    line-height: 25px;
  }
  /* Choose Delivery Speed */

  .amg-resale .amg-delivery__name {
    font-size: 1.25rem;
    line-height: 24px;
  }

  .amg-resale .amg-delivery__fee {
    font-size: 1rem;
    line-height: 21px;
  }

  .amg-resale .amg-delivery {
    gap: 1rem;
  }

  .amg-resale .amg-step__footnote {
    line-height: 16px;
  }

  /* Order Detail */

  .amg-resale .amg-btn--outline {
    font-size: 1rem;
    line-height: 18px;
  }

  /* Review & Payment */

  .amg-resale .amg-summary__value {
    font-size: 1rem;
    line-height: 21px;
  }

  .amg-resale .amg-btn--edit {
    font-size: 1rem;
    line-height: 21px;
  }

  .amg-resale .amg-summary__total-label,
  .amg-resale .amg-summary__total {
    font-size: 1.375rem;
    line-height: 27px;
  }

  .amg-resale .amg-consent__label {
    line-height: 16px;
  }
}
