/* Keep the existing consent preferences control without its redundant policy link. */
.cmplz-cookiebanner.yamm-consent-v2:not(.is-preferences) > .cmplz-buttons:has(.cmplz-view-preferences.yamm-consent__primary) > .cmplz-manage-options { display: none !important; }

/* Longer native legal labels must wrap inside their mobile grid cell. */
.yamm-footer__legal-withdrawal { min-width: 0; max-width: 100%; }
.yamm-footer__legal-withdrawal a { white-space: normal !important; overflow-wrap: anywhere; }

/* Legal links and destination controls share one balanced desktop baseline. */
.yamm-footer__bottom [data-yamm-localization-controls] {
  min-width: 0;
  gap: 16px 24px !important;
  padding: 0 !important;
}
.yamm-footer__bottom [data-yamm-language-select] {
  font: inherit;
  line-height: 1.3;
}
@media (min-width: 1200px) {
  .yamm-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }
  .yamm-footer__bottom > .yamm-footer__legal {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    gap: clamp(18px, 2vw, 32px);
    align-items: center;
  }
  .yamm-footer__bottom > .yamm-footer__legal li,
  .yamm-footer__bottom > .yamm-footer__legal a {
    white-space: nowrap;
  }
  .yamm-footer__bottom [data-yamm-localization-controls] {
    flex: 0 0 auto;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
  }
  .yamm-footer__bottom [data-yamm-localization-controls] > label {
    margin: 0;
    white-space: nowrap;
  }
  .yamm-footer__bottom .yamm-footer__country { margin: 0; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .yamm-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-block: 24px;
  }
  .yamm-footer__bottom > .yamm-footer__legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}

/* Use the same quiet, centred treatment for country and language. */
.yamm-footer__bottom [data-yamm-localization-controls] { align-items: center; }
.yamm-footer__bottom [data-yamm-localization-controls] > .yamm-footer__country {
  min-height: 40px;
  margin: 0 !important;
  padding: 0 !important;
}
.yamm-footer__bottom [data-yamm-localization-controls] > label {
  min-height: 40px;
  margin: 0;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1.3;
}
.yamm-footer__bottom [data-yamm-language-select] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 40px !important;
  height: 40px;
  margin: 0;
  padding: 0 30px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: 14px 14px !important;
  background-position: right 8px center !important;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.yamm-footer__bottom [data-yamm-language-select]:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}
@media (max-width: 1199px) {
  .yamm-footer__bottom > .yamm-footer__legal { align-items: stretch; }
  .yamm-footer__bottom > .yamm-footer__legal li {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .yamm-footer__bottom > .yamm-footer__legal a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7em;
    max-width: 100%;
    white-space: normal !important;
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
  }
}
@media (max-width: 767px) {
  .yamm-footer__bottom [data-yamm-localization-controls] {
    width: 100%;
    margin-top: 20px;
    gap: 12px 24px !important;
  }
  .yamm-footer__bottom [data-yamm-localization-controls] > label {
    font-size: 12px !important;
  }
  .yamm-footer__bottom > .yamm-footer__legal { gap: 16px 12px; }
  .yamm-footer__bottom > .yamm-footer__legal a { font-size: 12px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .yamm-footer__bottom > .yamm-footer__legal .yamm-footer__legal-withdrawal { display: none; }
}

/* A slight reduction for carrier logos in the mobile delivery strip. */
@media (max-width: 620px) {
  .yamm-delivery-banner .yamm-delivery-banner__message img[data-yamm-delivery-logo] {
    width: 20px;
    height: 20px;
  }
}

/* Compact mobile shipping cards; keep the actual shipping inputs and data. */
@media (max-width: 767px) {
  .yamm-checkout-v2__shipping .yamm-checkout-v2__rates { gap: 10px; }
  .yamm-checkout-v2__shipping .yamm-checkout-v2__rate { min-height: 0; }
  .yamm-checkout-v2__shipping .yamm-checkout-v2__rate-label {
    position: static !important;
    min-height: 56px;
    padding: 12px 14px 10px 44px !important;
    column-gap: 12px;
    row-gap: 0;
  }
  .yamm-checkout-v2__shipping .yamm-checkout-v2__rate-radio {
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
  }
  .yamm-checkout-v2__shipping .yamm-checkout-v2__rate-copy { gap: 5px; }
  .yamm-checkout-v2__shipping .yamm-checkout-v2__rate-name { gap: 6px; }
  .yamm-checkout-v2__shipping .yamm-checkout-v2__rate-extra {
    margin: 0 14px 12px 44px !important;
    padding: 0 !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .yamm-checkout-v2__shipping .yamm-checkout-v2__restock-promises {
    width: 100%;
    display: grid;
    gap: 6px;
  }
  .yamm-checkout-v2__shipping .yamm-checkout-v2__promise,
  .yamm-checkout-v2__shipping .yamm-checkout-v2__promise > span,
  .yamm-checkout-v2__shipping .yamm-checkout-v2__promise > strong,
  .yamm-checkout-v2__shipping .yamm-checkout-v2__restock-line,
  .yamm-checkout-v2__shipping .yamm-checkout-v2__restock-line > span,
  .yamm-checkout-v2__shipping .yamm-checkout-v2__promise-date {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
  .yamm-checkout-v2__shipping .yamm-checkout-v2__promise-info {
    top: 0;
    margin-left: 5px !important;
    vertical-align: -3px;
  }
  .yamm-checkout-v2__shipping .yamm-checkout-v2__relay { max-width: 100%; }
  .yamm-checkout-v2__shipping .yamm-checkout-v2__relay-selected { gap: 2px; }
  .yamm-checkout-v2__shipping .yamm-checkout-v2__relay-action {
    max-width: 100%;
    min-height: 44px;
    margin-top: 8px !important;
    padding: 10px 16px !important;
    font-size: 13px;
    white-space: normal;
    line-height: 1.35;
    text-align: center;
  }
  .yamm-checkout-v2__shipping .yamm-checkout-v2__rate:has(> input.shipping_method:focus-visible) {
    outline: 2px solid #111;
    outline-offset: 3px;
  }
}

/* Give the small in-field hints 2px more separation from entered values. */
.yamm-checkout-v2 .yamm-checkout-v2__field--select > label,
.yamm-checkout-v2 .yamm-checkout-v2__field--floating:focus-within > label,
.yamm-checkout-v2 .yamm-checkout-v2__field--floating:has(.input-text:not(:placeholder-shown)) > label,
.yamm-checkout-v2 .yamm-checkout-v2__field--floating:has(.input-text:-webkit-autofill) > label,
.yamm-checkout-v2 .form-row:has(textarea) > label {
  top: 6px;
}

/* A slightly smaller, tighter footer signature. */
.yamm-footer .yamm-footer__brand {
  min-height: 94px;
  padding: 18px 20px 22px;
}
.yamm-footer .yamm-footer__brand > span {
  font-size: clamp(24px, 1.95vw, 30px);
  letter-spacing: .045em;
}
.yamm-footer .yamm-footer__brand small {
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: .23em;
}
@media (max-width: 900px) {
  .yamm-footer .yamm-footer__brand {
    min-height: 80px;
    padding: 18px 20px 14px;
  }
  .yamm-footer .yamm-footer__brand > span {
    font-size: clamp(25px, 6.8vw, 29px);
    letter-spacing: .04em;
  }
}
@media (max-width: 620px) {
  .yamm-footer .yamm-footer__brand > span {
    font-size: 22px;
    letter-spacing: .035em;
  }
  .yamm-footer .yamm-footer__brand small {
    margin-top: 4px;
    font-size: 8.5px;
    letter-spacing: .2em;
  }
}

/* Centre each mobile legal row by its real content, rather than unequal cells. */
.yamm-footer__bottom [data-yamm-language-select] { min-width: 0; flex: 0 0 auto; }
@media (max-width: 767px) {
  .yamm-footer__bottom > .yamm-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0 12px;
  }
  .yamm-footer__bottom > .yamm-footer__legal::after {
    content: "";
    order: 4;
    flex: 0 0 100%;
    height: 0;
  }
  .yamm-footer__bottom > .yamm-footer__legal li {
    flex: 0 1 auto;
    margin: 0;
    padding: 2px 0;
  }
  .yamm-footer__bottom > .yamm-footer__legal li:nth-child(1) { order: 1; max-width: 29%; }
  .yamm-footer__bottom > .yamm-footer__legal li:nth-child(2) { order: 2; max-width: 22%; }
  .yamm-footer__bottom > .yamm-footer__legal li:nth-child(3) { order: 3; max-width: 39%; }
  .yamm-footer__bottom > .yamm-footer__legal li:nth-child(4) { order: 5; max-width: 40%; }
  .yamm-footer__bottom > .yamm-footer__legal li:nth-child(5) { order: 6; max-width: 50%; }
  .yamm-footer__bottom [data-yamm-localization-controls] {
    margin-top: 12px;
    gap: 8px 16px !important;
  }
  .yamm-footer__bottom [data-yamm-localization-controls] > label { gap: 6px !important; }
}

/* Share the accordion/page gutters with every row below it. */
.yamm-footer { --yamm-footer-content-width: min(80%, 1280px); }
.yamm-footer .yamm-footer__bottom {
  padding-inline: calc((100% - var(--yamm-footer-content-width)) / 2);
}
@media (max-width: 900px) {
  .yamm-footer { --yamm-footer-content-width: min(87%, 560px); }
}
@media (max-width: 767px) {
  .yamm-footer__bottom > .yamm-footer__legal {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px 12px;
  }
  .yamm-footer__bottom > .yamm-footer__legal::after { display: none; }
  .yamm-footer__bottom > .yamm-footer__legal li { max-width: none !important; }
  .yamm-footer__bottom > .yamm-footer__legal li:nth-child(1) { grid-area: 1 / 1 / 2 / 3; justify-content: flex-start; }
  .yamm-footer__bottom > .yamm-footer__legal li:nth-child(2) { grid-area: 1 / 3 / 2 / 5; justify-content: center; }
  .yamm-footer__bottom > .yamm-footer__legal li:nth-child(3) { grid-area: 1 / 5 / 2 / 7; justify-content: flex-end; }
  .yamm-footer__bottom > .yamm-footer__legal li:nth-child(4) { grid-area: 2 / 1 / 3 / 4; justify-content: flex-start; }
  .yamm-footer__bottom > .yamm-footer__legal li:nth-child(5) { grid-area: 2 / 4 / 3 / 7; justify-content: flex-end; }
  .yamm-footer__bottom > .yamm-footer__legal li:nth-child(1) a,
  .yamm-footer__bottom > .yamm-footer__legal li:nth-child(4) a { text-align: left; }
  .yamm-footer__bottom > .yamm-footer__legal li:nth-child(3) a,
  .yamm-footer__bottom > .yamm-footer__legal li:nth-child(5) a { text-align: right; }
  .yamm-footer__bottom [data-yamm-localization-controls] { justify-content: space-between !important; }
  .yamm-footer__bottom [data-yamm-language-select] {
    padding-right: 22px !important;
    background-position: right 0 center !important;
  }
}

@media (max-width: 767px) {
  .yamm-footer__bottom [data-yamm-localization-controls].is-wrapped { justify-content: center !important; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .yamm-footer__bottom > .yamm-footer__legal { width: 100%; justify-content: space-between; }
  .yamm-footer__bottom [data-yamm-localization-controls] { width: 100%; justify-content: space-between !important; }
}

/* Keep the homepage header free of announcement/delivery strips. */
body.yamm-v2:is(.home, .yamm-route-home) { --yamm-announcement-height: 0px !important; }
body.yamm-v2:is(.home, .yamm-route-home) .yamm-announcement { display: none !important; }
