.shop-card-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 4px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
}

.shop-card-action:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.shop-card-action svg {
  width: 17px;
  height: 17px;
}

.shop-save-selection {
  min-height: 44px;
}

.shop-category-shortcuts .shop-catalog-link {
  color: var(--forest);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#shop-heading {
  scroll-margin-top: calc(var(--site-header-height) + 14px);
}

.ag-price-total {
  display: block;
  font-weight: 700;
}

.ag-price-total > span,
.purchase-items .ag-price-total > span {
  font-size: .72em;
  font-weight: 500;
  white-space: nowrap;
}

.ag-price-net,
.site-product-price > .ag-price-net,
.com-card-price > .ag-price-net,
.com-detail-price > .ag-price-net {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.shop-price-note,
.ag-vat-scope,
.ag-vat-guide {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.shop-price-note {
  max-width: 430px;
}

.shop-price-note > p + p,
.ag-vat-guide p,
.ag-vat-scope {
  margin-top: 7px;
}

.com-detail-price > .com-price-note {
  font-size: 13px;
}

.ag-vat-guide summary {
  width: fit-content;
  padding-block: 7px;
  color: var(--forest);
  cursor: pointer;
  font-weight: 650;
}

.ag-vat-guide summary > span {
  font-weight: 400;
}

.com-included {
  display: grid;
  gap: 5px;
  border-block: 1px solid var(--line);
  padding-block: 14px;
  color: var(--forest);
}

.com-included h2 {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
}

.com-included p {
  font-size: 13px;
  line-height: 1.55;
}

body:has(#purchase-page) .site-whatsapp {
  display: none;
}

.purchase-intro,
.purchase-confirmation {
  padding-block: clamp(34px, 5vw, 74px);
}

.purchase-intro h1,
.purchase-confirmation h1 {
  color: var(--forest);
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.02;
}

.purchase-intro p,
.purchase-confirmation p {
  max-width: 64ch;
  margin-top: 15px;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
}

.purchase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas: "form summary";
  align-items: start;
  gap: clamp(24px, 5vw, 65px);
  padding-bottom: clamp(38px, 6vw, 84px);
}

.purchase-summary {
  grid-area: summary;
  position: sticky;
  top: calc(var(--site-header-height) + 12px);
  max-height: calc(100dvh - var(--site-header-height) - 24px);
  overflow-y: auto;
  border: 1px solid #cbd5c4;
  background: #e7ebdf;
  padding: clamp(17px, 3vw, 28px);
  overflow-wrap: anywhere;
}

.purchase-summary-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 15px;
}

.purchase-summary h2,
.purchase-empty h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.purchase-summary-heading a,
.purchase-check a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.purchase-items {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.purchase-items li {
  display: flex;
  align-items: start;
  gap: 12px;
  padding-block: 13px;
  border-top: 1px solid #c4cebd;
}

.purchase-items li > img {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  object-fit: cover;
}

.purchase-items li > div {
  flex: 1;
  min-width: 0;
}

.purchase-items a,
.purchase-items li span {
  font-weight: 700;
}

.purchase-items p,
.purchase-summary > p {
  color: var(--muted);
  font-size: 13px;
}

.purchase-items .purchase-line-price {
  margin-top: 5px;
  color: var(--forest);
}

.purchase-totals {
  margin: 0 0 12px;
  border-block: 1px solid #b8c5b2;
  padding-block: 11px;
}

.purchase-totals div {
  display: flex;
  justify-content: space-between;
  gap: 8px 16px;
}

.purchase-totals dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.purchase-form,
.purchase-layout > .purchase-empty {
  grid-area: form;
  min-width: 0;
}

.purchase-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.purchase-form > fieldset {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.purchase-form > fieldset > legend {
  margin: 0 0 10px;
  padding: 0;
  color: var(--forest);
  font-size: clamp(21px, 2.6vw, 29px);
  font-weight: 600;
  line-height: 1.22;
}

.purchase-delivery-policy {
  margin-bottom: 16px;
  border-inline-start: 2px solid #b8c5b2;
  padding: 11px 14px;
  background: #e7ebdf;
  font-size: 14px;
  line-height: 1.55;
}

.purchase-delivery-policy p + p {
  margin-top: 8px;
}

.purchase-address {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 15px;
}

.purchase-wide {
  grid-column: 1 / -1;
}

.purchase-form fieldset > .project-field + .project-field,
.purchase-form fieldset > .purchase-address + .project-field,
.purchase-form fieldset > .purchase-map-field,
.purchase-form .purchase-billing-fields > :not(legend) + *,
.purchase-form .purchase-billing-fields {
  margin-top: 14px;
}

.purchase-form textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px 12px;
  border: 1px solid #b8c1b1;
  border-radius: 0;
  background: #fcfbf7;
  font-size: 16px;
  resize: vertical;
}

.purchase-form input[type="file"] {
  width: 100%;
  min-width: 0;
}

.purchase-field-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.purchase-billing-hint {
  margin-bottom: 12px;
}

.purchase-check {
  display: flex;
  align-items: start;
  gap: 10px;
  line-height: 1.55;
}

.purchase-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--forest);
}

.purchase-form [hidden] {
  display: none;
}

.purchase-send > p:not(:empty) {
  margin-block: 14px;
}

.purchase-send .ag-button,
.purchase-empty .ag-button {
  margin-top: 12px;
}

.purchase-empty {
  padding-block: 16px 55px;
}

@media (max-width: 760px) {
  .purchase-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "summary" "form";
  }

  .purchase-summary {
    position: static;
    max-height: none;
  }
}

@media (max-width: 780px) {
  .shop-price-note {
    margin-top: 12px;
  }
}

@media (max-width: 420px) {
  .purchase-address {
    grid-template-columns: minmax(0, 1fr);
  }

  .purchase-send .ag-button {
    width: 100%;
  }
}
