/* Dedicated mobile checkout. This file is linked only below 620px. */
@media (max-width: 620px) {
  .shop-checkout-modal {
    align-items: stretch;
    place-items: stretch center;
    padding: 0;
    background: #ede8df;
  }

  .shop-checkout-modal .digital-checkout-backdrop {
    background: #ede8df;
    backdrop-filter: none;
  }

  .shop-checkout-panel {
    width: min(100vw, 430px);
    max-width: 430px;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 28px 18px 24px;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 90% 4%, rgba(246, 225, 202, 0.64), transparent 118px),
      linear-gradient(145deg, #fffdfa 0%, #fff8ef 68%, #fffaf6 100%);
    box-shadow: none;
    scrollbar-gutter: stable;
  }

  .shop-checkout-panel,
  .shop-checkout-panel * {
    box-sizing: border-box;
  }

  .shop-checkout-panel [data-shop-checkout-content] {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .shop-checkout-panel .digital-checkout-close {
    top: 24px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #432c25;
    background: #f6e8d5;
    font: 800 28px/1 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel h2#shop-checkout-title {
    order: 0;
    margin: 0 54px 17px 0;
    color: #3a2822;
    font: 600 34px/1 "Noto Serif", Georgia, serif;
    letter-spacing: 0;
  }

  .shop-checkout-panel .digital-checkout-muted,
  .shop-checkout-panel .digital-checkout-notice,
  .shop-checkout-panel .digital-checkout-error {
    margin: 0 0 13px;
  }

  .shop-checkout-panel .digital-checkout-error {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    padding: 0;
    border: 0;
    color: #c84f5d;
    background: transparent;
    font: 700 12.8px/1.32 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .digital-checkout-error::before {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1.7px solid currentColor;
    border-radius: 50%;
    content: "!";
    font: 800 12px/1 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-checkout-account {
    order: 2;
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 2px 10px;
    min-width: 0;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid rgba(210, 160, 105, 0.38);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.88);
  }

  .shop-checkout-panel .shop-checkout-account::before {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    align-self: center;
    border-radius: 50%;
    background: #f6e8d5 url("assets/checkout-icon-profile.png") center / 21px 21px no-repeat;
    content: "";
  }

  .shop-checkout-panel .shop-checkout-account strong {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    color: #392821;
    font: 800 14px/1.15 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-checkout-account-options {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 5px;
    min-width: 0;
  }

  .shop-checkout-panel .shop-checkout-account-options span:first-child {
    min-width: 0;
    color: #6d584f;
    font: 500 10px/1.18 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-checkout-account-options button {
    color: #b64f60;
    font: 800 10.5px/1 Inter, Arial, sans-serif;
    white-space: nowrap;
  }

  .shop-checkout-panel .shop-checkout-account-options span[aria-hidden="true"] {
    color: #513b33;
    font-size: 9px;
  }

  .shop-checkout-panel .digital-checkout-items {
    order: 3;
    display: grid;
    gap: 8px;
    margin: 0 0 8px;
  }

  .shop-checkout-panel .shop-checkout-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 48px;
    gap: 9px;
    align-items: start;
    min-width: 0;
    padding: 8px 12px 8px 8px;
    border: 1px solid rgba(210, 160, 105, 0.38);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.9);
    overflow: hidden;
  }

  .shop-checkout-panel .shop-checkout-item > img {
    width: 96px;
    height: 106px;
    align-self: center;
    border-radius: 11px;
    object-fit: cover;
    background: #f7ecdf;
  }

  .shop-checkout-panel .shop-checkout-item > div:not(.shop-checkout-item-side) {
    min-width: 0;
    align-self: center;
  }

  .shop-checkout-panel .shop-checkout-item h3 {
    margin: 0 0 4px;
    color: #392821;
    font: 500 17px/1.08 "Noto Serif", Georgia, serif;
    letter-spacing: 0;
  }

  .shop-checkout-panel .shop-checkout-item p {
    margin: 0 0 9px;
    color: #604c43;
    font: 500 11.5px/1.24 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-checkout-item small {
    display: block;
    color: #a46322;
    font: 800 10.4px/1.25 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-checkout-item-side {
    grid-column: 3;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    justify-items: end;
    width: 48px;
    min-height: 106px;
    padding: 1px 0 3px;
  }

  .shop-checkout-panel .shop-checkout-item-side strong {
    grid-column: 1;
    grid-row: 1;
    color: #281916;
    font: 800 20px/1 Inter, Arial, sans-serif;
    white-space: nowrap;
  }

  .shop-checkout-panel .shop-checkout-fixed-qty,
  .shop-checkout-panel .shop-checkout-qty {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    place-items: center;
    align-self: center;
    justify-self: center;
    border: 0;
    border-radius: 9px;
    background: #f8ecdc;
    color: #38261f;
    font: 700 14px/1 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-checkout-qty {
    grid-template-columns: 1fr;
  }

  .shop-checkout-panel .shop-checkout-qty button {
    display: none;
  }

  .shop-checkout-panel .shop-checkout-item-side > button {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    padding: 0;
    color: #b64f60;
    font: 800 10.7px/1 Inter, Arial, sans-serif;
    text-underline-offset: 2px;
  }

  .shop-checkout-panel .digital-checkout-total:has([data-shop-grand-total]) {
    order: 4;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 12px 13px 4px;
    border: 1px solid rgba(210, 160, 105, 0.38);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: rgba(255, 253, 249, 0.78);
  }

  .shop-checkout-panel .digital-checkout-total:has([data-shop-grand-total]) span {
    color: #382720;
    font: 800 13px/1 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .digital-checkout-total:has([data-shop-grand-total]) strong {
    color: #281916;
    font: 800 27px/1 Inter, Arial, sans-serif;
    white-space: nowrap;
  }

  .shop-checkout-panel .digital-checkout-total:has([data-shop-delivery-note]) {
    order: 5;
    display: block;
    margin: 0;
    padding: 0 13px 11px;
    border: 1px solid rgba(210, 160, 105, 0.38);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: rgba(255, 253, 249, 0.78);
  }

  .shop-checkout-panel .digital-checkout-total:has([data-shop-delivery-note]) span {
    display: none;
  }

  .shop-checkout-panel .digital-checkout-total:has([data-shop-delivery-note]) strong {
    color: #392821;
    font: 800 12px/1.2 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-checkout-form {
    order: 6;
    display: grid;
    gap: 15px;
    margin-top: 15px;
  }

  .shop-checkout-panel .shop-checkout-form > section {
    display: grid;
    gap: 8px;
    padding: 0;
  }

  .shop-checkout-panel .shop-checkout-form > section:first-child > p {
    display: none;
  }

  .shop-checkout-panel .shop-checkout-form h3 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #30231e;
    font: 800 17px/1.16 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-checkout-form h3::before {
    display: block;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border-radius: 50%;
    background-color: #f6e8d5;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    content: "";
  }

  .shop-checkout-panel .shop-checkout-form > section:first-child h3::before {
    background-image: url("assets/checkout-icon-profile.png");
  }

  .shop-checkout-panel .shop-checkout-form > section:nth-child(2):not(.shop-checkout-legal) h3::before {
    background-image: url("assets/checkout-icon-delivery.png");
  }

  .shop-checkout-panel .shop-checkout-legal h3::before {
    background-image: url("assets/checkout-icon-shield.png");
  }

  .shop-checkout-panel .shop-checkout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
    width: 100%;
    min-width: 0;
  }

  .shop-checkout-panel .shop-checkout-form > section:first-child .shop-checkout-grid > label {
    display: grid;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 2px;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 6px 10px 5px;
    border: 1px solid rgba(210, 160, 105, 0.48);
    border-radius: 10px;
    background: rgba(255, 253, 249, 0.88);
  }

  .shop-checkout-panel .shop-checkout-form > section:first-child .shop-checkout-grid > label > span {
    color: #362823;
    font: 750 10.3px/1.1 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-checkout-form > section:first-child .shop-checkout-grid > label > input {
    width: 100%;
    min-width: 0;
    height: 20px;
    min-height: 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    color: #3b2a24;
    background: transparent;
    font: 600 12.2px/20px Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-checkout-form > section:first-child .shop-checkout-grid > label:focus-within {
    border-color: rgba(185, 122, 65, 0.82);
  }

  .shop-checkout-panel .shop-checkout-form label,
  .shop-checkout-panel .shop-eu-delivery-form label {
    min-width: 0;
    color: #352722;
    font: 750 11px/1.15 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-checkout-form > section:nth-child(2):not(.shop-checkout-legal) .shop-checkout-grid > label:first-child,
  .shop-checkout-panel .shop-checkout-grid label:has(textarea),
  .shop-checkout-panel .shop-delivery-method,
  .shop-checkout-panel .shop-pickup-selector,
  .shop-checkout-panel .shop-home-address {
    grid-column: 1 / -1;
  }

  .shop-checkout-panel .shop-checkout-form > section:nth-child(2):not(.shop-checkout-legal) input:not([type="radio"]),
  .shop-checkout-panel .shop-checkout-form select,
  .shop-checkout-panel .shop-eu-delivery-form input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid rgba(210, 160, 105, 0.48);
    border-radius: 10px;
    color: #372620;
    background: rgba(255, 253, 249, 0.88);
    font: 600 12.5px/1.2 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-checkout-form input::placeholder,
  .shop-checkout-panel .shop-checkout-form textarea::placeholder {
    color: #96877f;
  }

  .shop-checkout-panel .shop-checkout-form > section:nth-child(2):not(.shop-checkout-legal) > .digital-checkout-notice {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 39px;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid rgba(198, 95, 104, 0.24);
    border-radius: 9px;
    color: #b05257;
    background: rgba(251, 232, 230, 0.72);
    font: 500 11px/1.25 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-checkout-form > section:nth-child(2):not(.shop-checkout-legal) > .digital-checkout-notice::before {
    width: 30px;
    height: 30px;
    background: url("assets/checkout-icon-gift.png") center / contain no-repeat;
    content: "";
  }

  .shop-checkout-panel .shop-delivery-method {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .shop-checkout-panel .shop-delivery-method legend {
    padding: 0;
    color: #352722;
    font: 750 11px/1.15 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-delivery-method-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(210, 160, 105, 0.48);
    border-radius: 10px;
    background: rgba(255, 253, 249, 0.88);
  }

  .shop-checkout-panel .digital-checkout-form .shop-delivery-method-choice {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 43px;
    padding: 7px 10px;
    border: 0;
    border-radius: 0;
    color: #392821;
    background: transparent;
    box-shadow: none;
    font: 750 12.2px/1.2 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .digital-checkout-form .shop-delivery-method-choice + .shop-delivery-method-choice {
    border-top: 1px solid rgba(210, 160, 105, 0.38);
  }

  .shop-checkout-panel .digital-checkout-form .shop-delivery-method-choice input {
    appearance: none;
    width: 19px;
    min-width: 19px;
    height: 19px;
    min-height: 19px;
    margin: 0;
    padding: 0;
    border: 1.5px solid #c5ccd0;
    border-radius: 50%;
    background: #fff;
  }

  .shop-checkout-panel .digital-checkout-form .shop-delivery-method-choice input:checked {
    border: 2px solid #c98231;
    box-shadow: inset 0 0 0 4px #fff;
    background: #c98231;
  }

  .shop-checkout-panel .digital-checkout-form .shop-delivery-method-choice:has(input:checked) {
    color: #392821;
    background: transparent;
    box-shadow: none;
  }

  .shop-checkout-panel .digital-checkout-form .shop-delivery-method-choice:first-child::after {
    color: #f47d23;
    content: "omniva";
    font: 800 8.5px/1 Inter, Arial, sans-serif;
    text-transform: lowercase;
  }

  .shop-checkout-panel .digital-checkout-form .shop-delivery-method-choice:nth-child(2)::after {
    width: 27px;
    height: 27px;
    border: 0;
    background: url("assets/checkout-icon-home.png") center / 31px 31px no-repeat;
    content: "";
    clip-path: none;
  }

  .shop-checkout-panel .digital-checkout-form textarea,
  .shop-checkout-panel .shop-eu-delivery-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 76px;
    padding: 10px 11px;
    border: 1px solid rgba(210, 160, 105, 0.48);
    border-radius: 10px;
    color: #372620;
    background: rgba(255, 253, 249, 0.88);
    resize: vertical;
    font: 600 12.5px/1.35 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-pickup-selector,
  .shop-checkout-panel .shop-home-address {
    gap: 9px;
    padding: 11px;
    border-radius: 10px;
  }

  .shop-checkout-panel .shop-checkout-form > section.shop-checkout-legal {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 11px 13px 12px;
    border: 1px solid rgba(210, 160, 105, 0.38);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.88);
  }

  .shop-checkout-panel .shop-checkout-legal p {
    margin: 0;
    color: #6b574f;
    font: 500 11.5px/1.34 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-checkout-checkbox {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    margin-top: 1px;
    color: #3c2d27;
    font: 750 10.8px/1.28 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-checkout-checkbox input {
    appearance: none;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border: 1px solid #bdc4c8;
    border-radius: 3px;
    background: #fff;
  }

  .shop-checkout-panel .shop-checkout-checkbox input:checked {
    border-color: #b9525d;
    background: #b9525d;
    box-shadow: inset 0 0 0 4px #fff;
  }

  .shop-checkout-panel .digital-checkout-payment-note {
    display: none;
  }

  .shop-checkout-panel .digital-checkout-submit {
    display: inline-flex;
    width: 100%;
    height: 47px;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(105deg, #d66d79, #bb3e5b);
    box-shadow: 0 10px 20px rgba(154, 60, 76, 0.15);
    font: 800 17px/1 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .digital-checkout-submit::before {
    width: 19px;
    height: 19px;
    background: url("assets/checkout-icon-lock.png") center / contain no-repeat;
    filter: brightness(0) invert(1);
    content: "";
  }

  .shop-checkout-panel .digital-checkout-status {
    min-height: 0;
    margin: 0;
    font-size: 11px;
  }

  .shop-checkout-panel .digital-checkout-status:empty {
    display: none;
  }

  .shop-checkout-panel .shop-eu-delivery-info {
    order: 7;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    margin-top: 13px;
    color: #6b574f;
    font: 500 11.5px/1.36 Inter, Arial, sans-serif;
  }

  .shop-checkout-panel .shop-eu-delivery-info::before {
    width: 21px;
    height: 21px;
    margin-top: 1px;
    background: url("assets/checkout-icon-message.png") center / contain no-repeat;
    content: "";
  }

  .shop-checkout-panel .shop-eu-delivery-info > p {
    grid-column: 2;
  }

  .shop-checkout-panel .shop-eu-delivery-info > .shop-eu-delivery-form:not([hidden]) {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin-top: 3px;
    padding: 11px;
    gap: 8px;
    border-radius: 11px;
  }

  .shop-checkout-panel .shop-eu-delivery-form label {
    gap: 5px;
    font-size: 10.8px;
  }

  .shop-checkout-panel .shop-eu-delivery-form input {
    min-height: 42px;
    padding: 0 11px;
    border-color: rgba(210, 160, 105, 0.48);
    border-radius: 10px;
    outline: 0;
    font-size: 12.5px;
  }

  .shop-checkout-panel .shop-eu-delivery-form input:focus,
  .shop-checkout-panel .shop-eu-delivery-form textarea:focus {
    border-color: rgba(185, 122, 65, 0.82);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(185, 122, 65, 0.1);
  }

  .shop-checkout-panel .shop-eu-delivery-form textarea {
    min-height: 72px;
  }

  .shop-checkout-panel .shop-eu-delivery-form button {
    min-height: 41px;
    padding: 0 16px;
    border-radius: 9px;
    font-size: 12px;
  }

  .shop-checkout-panel .shop-eu-delivery-link {
    color: #b65060;
    font: 800 11.5px/1 Inter, Arial, sans-serif;
  }
}

@media (max-width: 380px) {
  .shop-checkout-panel {
    padding-right: 12px;
    padding-left: 12px;
  }

  .shop-checkout-panel .digital-checkout-close {
    right: 12px;
  }

  .shop-checkout-panel h2#shop-checkout-title {
    font-size: 31px;
  }

  .shop-checkout-panel .shop-checkout-account {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 7px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .shop-checkout-panel .shop-checkout-account::before {
    width: 31px;
    height: 31px;
  }

  .shop-checkout-panel .shop-checkout-account-options span:first-child,
  .shop-checkout-panel .shop-checkout-account-options button {
    font-size: 9.2px;
  }

  .shop-checkout-panel .shop-checkout-item {
    grid-template-columns: 84px minmax(0, 1fr) 43px;
    gap: 7px;
    padding: 7px 10px 7px 7px;
  }

  .shop-checkout-panel .shop-checkout-item > img {
    width: 84px;
    height: 96px;
  }

  .shop-checkout-panel .shop-checkout-item h3 {
    font-size: 15px;
  }

  .shop-checkout-panel .shop-checkout-item p {
    font-size: 10.3px;
  }

  .shop-checkout-panel .shop-checkout-item small {
    font-size: 9.3px;
  }

  .shop-checkout-panel .shop-checkout-item-side {
    width: 43px;
    min-height: 96px;
  }

  .shop-checkout-panel .shop-checkout-item-side strong {
    font-size: 18px;
  }

  .shop-checkout-panel .shop-checkout-grid {
    gap: 6px;
  }
}
