/* AMG Resale Package page. Ships into an existing WordPress/Elementor site,
   so: every selector stays under .amg-resale, every class is amg- prefixed,
   tokens live on .amg-resale (the host theme owns :root), no global resets. */

.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-black: #000000;
  --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);
  /* keeps the standalone preview white in dark-mode browsers */
  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;
}

/* WooCommerce single-product integration. The target product's normal gallery
   and summary hooks are removed by the plugin; these rules keep the replacement
   full-width across standard WooCommerce and Elementor product wrappers. */
.single-product div.product .amg-resale {
  clear: both;
  float: none;
  width: 100%;
  max-width: none;
}

.single-product div.product > .summary:empty,
.single-product div.product > .woocommerce-tabs:empty {
  display: none;
}

.amg-resale-page-shell {
  display: block;
  width: 100%;
  background: #fff;
}

.amg-resale-page-shell__inner {
  width: 100%;
  margin: 0 auto;
}

.amg-resale-hero {
  position: relative;
  display: flex;
  min-height: 504px;
  justify-content: center;
  align-items: flex-end;
  background-image: url("https://alamomanagementgroup.com/wp-content/uploads/2025/04/DallasFW_pexels-jeswin-4036300.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.amg-resale-hero::before {
  position: absolute;
  inset: 0;
  background: #2b3530;
  content: "";
  opacity: 0.65;
}

.amg-resale-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem 1.9rem;
}

.amg-resale-hero .woocommerce-breadcrumb {
  max-width: 71rem;
  margin: 0;
  padding: 0;
  color: #55b151;
  font-size: 0.92rem;
  line-height: 1.5;
}

.amg-resale-hero .woocommerce-breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.amg-resale-hero .woocommerce-breadcrumb a:hover,
.amg-resale-hero .woocommerce-breadcrumb a:focus-visible {
  color: #55b151;
}

.amg-resale-page-shell .woocommerce-notices-wrapper {
  max-width: 71rem;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
}

.amg-resale-page-title {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  box-sizing: border-box;
  width: 100%;
  max-width: 71rem;
  margin: 0;
  padding: 0 1.25rem;
  transform: translate(-50%, -50%);
  color: #55b151;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 767px) {
  .amg-resale-hero {
    min-height: 360px;
  }

  .amg-resale-hero__inner {
    padding-right: 1.25rem;
    padding-bottom: 1.25rem;
    padding-left: 1.25rem;
  }

  .amg-resale-page-title {
    font-size: 2.25rem;
    line-height: 1.25;
  }
}

.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 {
  width: 12px;
  height: 10px;
  color: var(--amg-green);
  font-size: 1.2rem;
  transform: rotate(4deg);
}

.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,
.amg-resale .amg-btn--outline:focus {
  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,
.amg-resale .amg-btn--edit:focus {
  min-height: 36px;
  padding: 0.35rem 1.1rem;
  font-size: 1.125rem;
  color: var(--amg-green);
  border-radius: 0px;
  background: var(--amg-bg-soft);
}

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

.amg-resale .amg-btn--pay,
.amg-resale .amg-btn--pay:focus {
  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--locked {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.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-card-dark);
  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-card-dark);
}

.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: 2px 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%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0.4375rem 1rem 0.3125rem;
  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.2rem;
  font-size: 1.125rem;
  line-height: 35px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--amg-navy);
}

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

.amg-resale .amg-package__price {
  font-family: var(--amg-font);
  margin: 0 0 0rem;
  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: 2px 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,
.amg-resale .amg-package__select:focus {
  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:hover .amg-package__select {
  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;
}

/* Accordion collapse: the 0fr -> 1fr grid trick animates height without JS
   measuring. visibility rides the same transition so closed content can't be
   focused or read by screen readers. */
.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,
.amg-resale .amg-accordion__trigger:focus {
  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);
  color: var(--amg-card-dark);
}

.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 {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-left: 1px solid var(--amg-border);
  overscroll-behavior-x: none;
}

.amg-resale .amg-compare {
  width: 100%;
  min-width: 34rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
  margin-bottom: 0px;
}

table.amg-compare td,
table.amg-compare th {
  border: none;
}

.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-right: 1px solid var(--amg-border);
  border-bottom: 1px solid var(--amg-border);
  text-align: center;
  background-color: var(--amg-white);
}

.amg-resale .amg-compare thead th {
  border-bottom: 1px solid var(--amg-border);
}

.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: 20px;
}

/* tbody here only to outgun the generic tbody th center rule */
.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);
}

/* band cell spans the full swipe width, so pin the label itself */
.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-black);
  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-card-dark);
}

.amg-resale .amg-field__input {
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--amg-card-dark);
  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,
.amg-resale .amg-field__date-btn:focus {
  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);
  background-color: transparent;
}

/* invisible copy of the field's box: showPicker() anchors its popup here, so
   matching the field makes the calendar open right under it. Must stay
   rendered — display:none kills showPicker(). */
.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);
  padding: 0rem 1.5rem;
  border: 1px solid var(--amg-border);
}

.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: center;
  gap: 0.6rem;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.875rem;
}

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

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

.amg-resale .amg-pay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  text-align: center;
}

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

.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: 29px;
  font-weight: 600;
}

.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,
.amg-upsell .amg-btn--solid:focus {
  background: #4caf50;
  color: #ffffff;
}

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

.amg-upsell .amg-btn--outline,
.amg-upsell .amg-btn--outline:focus {
  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;
  }
}

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

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

  .amg-resale .amg-notice__icon {
    height: 1rem;
    width: 1rem;
  }

  .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,
  .amg-resale .amg-accordion__trigger:focus {
    font-size: 1.125rem;
    line-height: 20px;
    font-weight: 400;
    text-align: left;
    white-space: normal;
  }

  .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;
    width: 8rem;
  }

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

  .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;
  }

  .amg-resale .amg-accordion--faq .amg-accordion__trigger {
    font-weight: 600;
    font-size: 1.125rem;
  }

  /* Choose Delivery Speed */

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

  .amg-resale .amg-accordion__icon {
    width: 30px;
  }

  .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 {
    align-items: flex-start;
  }

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

  /* Modal pop up */

  .amg-upsell__copy {
    font-size: 1rem;
  }

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