:root {
  --portal-primary: #f4b000;
  --portal-primary-hover: #ffc52a;
  --portal-ink: #18212f;
  --portal-muted: #697584;
  --portal-line: #e2e8ee;
  --portal-surface: #fff;
  --portal-danger: #c43838;
  --portal-success: #14734c;
  --portal-radius: 20px;
}

* { box-sizing: border-box; }

/* Loading overlay */
#loadingModal,
.portal-loading {
  position: fixed;
  z-index: 1100;
  display: none;
  inset: 0;
  place-items: center;
  background: rgba(16, 28, 43, .54);
  backdrop-filter: blur(5px);
}

#loadingModal[style*="display: block"],
.portal-loading.show,
.portal-loading.is-active { display: grid !important; }

#loadingModal .spinner,
.portal-loading__spinner,
.portal-modal__spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #f2e1ad;
  border-top-color: var(--portal-primary);
  border-radius: 50%;
  animation: portal-spin .8s linear infinite;
}

/* Bootstrap JS behaviour, custom appearance */
body .modal.portal-modal {
  position: fixed;
  z-index: 1055;
  display: none;
  overflow: hidden;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 18px;
  background: rgba(16, 28, 43, .55);
  backdrop-filter: blur(5px);
}

body .modal.portal-modal.show,
body .modal.portal-modal[style*="display: block"] { display: block !important; }

.portal-modal .modal-dialog {
  width: min(100%, 590px);
  margin: 5vh auto;
  pointer-events: none;
}

.portal-modal .modal-dialog.modal-xl { width: min(100%, 1140px); }

.portal-modal .modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 36px);
  margin-top: 0;
  margin-bottom: 0;
}

.portal-modal__dialog--compact { width: min(100%, 450px) !important; }

.portal-modal .modal-content {
  display: flex;
  width: 100%;
  max-height: calc(100vh - 36px);
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: var(--portal-radius);
  color: var(--portal-ink);
  background: var(--portal-surface);
  box-shadow: 0 25px 70px rgba(9, 19, 31, .28);
  pointer-events: auto;
}

.portal-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px 21px;
  border-bottom: 1px solid var(--portal-line);
}

.portal-modal__eyebrow {
  display: block;
  margin: 0 0 5px;
  color: #927000;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
}

.portal-modal__title {
  margin: 0;
  color: var(--portal-ink);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.portal-modal__text {
  margin: 0;
  color: var(--portal-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.portal-modal__close {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  flex: 0 0 39px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  color: #657181;
  background: #f1f4f7;
  font-size: 1rem;
}

.portal-modal__close:hover { color: var(--portal-ink); background: #e5eaef; }
.portal-modal__body { padding: 25px 28px; }

.portal-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 19px 28px;
  border-top: 1px solid var(--portal-line);
}

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.portal-button:hover { transform: translateY(-1px); }
.portal-button--primary { color: #1c2632; background: var(--portal-primary); box-shadow: 0 8px 17px rgba(217, 149, 0, .2); }
.portal-button--primary:hover { color: #1c2632; background: var(--portal-primary-hover); }
.portal-button--secondary { color: #3f4d5b; border-color: var(--portal-line); background: #fff; }
.portal-button--secondary:hover { color: var(--portal-ink); background: #f6f8fa; }
.portal-button--danger { color: #fff; background: var(--portal-danger); }
.portal-button--danger:hover { color: #fff; background: #ad2929; }

.portal-field { display: grid; gap: 8px; }
.portal-field + .portal-field { margin-top: 18px; }
.portal-field__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.portal-field label, .portal-search-label { color: #3d4855; font-size: .92rem; font-weight: 700; }
.portal-field small { color: var(--portal-muted); font-size: .78rem; }
.portal-field input, .portal-field__control input, .portal-cart__delivery select {
  width: 100%; min-height: 51px; padding: 11px 13px; border: 1px solid var(--portal-line);
  border-radius: 12px; outline: 0; color: var(--portal-ink); background: #fff; font: inherit;
}
.portal-field input:focus, .portal-field__control:focus-within, .portal-cart__delivery select:focus {
  border-color: var(--portal-primary); box-shadow: 0 0 0 4px rgba(244, 176, 0, .16);
}
.portal-field__control { display: flex; align-items: center; border: 1px solid var(--portal-line); border-radius: 12px; }
.portal-field__control > i { width: 43px; color: #788493; text-align: center; }
.portal-field__control input { border: 0; box-shadow: none !important; }

/* Full-screen shopping cart */
.portal-modal--fullscreen { width: 100vw; max-width: 100vw; padding: 0; overflow: hidden !important; }
.portal-modal--fullscreen .modal-dialog,
.portal-modal--fullscreen .modal-dialog.modal-xl { width: 100%; max-width: none; height: 100%; min-height: 100%; margin: 0; }
.portal-modal--fullscreen .modal-content { width: 100%; max-width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
.portal-modal--fullscreen .modal-content > * { min-width: 0; max-width: 100%; }

.portal-cart-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  border: 0;
  color: #fff;
  background: #1d2636;
}
.portal-cart-header__icon { display: grid; width: 50px; height: 50px; place-items: center; flex: 0 0 50px; border-radius: 14px; color: #1d2636; background: #ffc42b; font-size: 1.45rem; }
.portal-cart-header__copy { min-width: 0; }
.portal-cart-header .portal-modal__title { color: #fff; }
.portal-cart-header__copy p { margin: 3px 0 0; color: #bfc9d6; font-size: .91rem; }
.portal-cart-header .portal-modal__close { margin-left: auto; color: #fff; background: #3a4556; }
.portal-cart-header .portal-modal__close:hover { background: #4b586b; }

.portal-cart-search { position: relative; flex: 0 0 auto; padding: 17px 28px; border-bottom: 1px solid var(--portal-line); background: #fbfcfd; }
.portal-cart-search i { position: absolute; top: 50%; left: 43px; color: #788493; transform: translateY(-50%); }
.portal-cart-search input { width: 100%; min-height: 51px; padding: 11px 13px 11px 39px; border: 1px solid var(--portal-line); border-radius: 12px; outline: 0; color: var(--portal-ink); background: #fff; font: inherit; }
.portal-cart-search input:focus { border-color: var(--portal-primary); box-shadow: 0 0 0 4px rgba(244, 176, 0, .16); }

.portal-cart__body { min-width: 0; flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 20px 28px; background: #f3f5f8; }
.portal-cart__body .plist { width: 100%; min-width: 0; overflow-x: auto; border: 1px solid #e1e8ee; border-radius: 14px; background: #fff; }
.portal-cart__body .simpleCart_items { min-width: 1020px; }

/* Desktop SimpleCart div grid */
#cartAddedModal .headerRow, #cartAddedModal .itemRow {
  display: grid;
  grid-template-columns: 66px minmax(190px, 2fr) 72px 38px 48px 38px 82px 72px 82px 88px 42px;
  align-items: center;
  column-gap: 8px;
}
#cartAddedModal .headerRow { min-height: 48px; padding: 0 12px; border-bottom: 1px solid #e1e8ee; color: #728092; background: #f6f8fa; font-size: .71rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
#cartAddedModal .itemRow { min-height: 82px; padding: 10px 12px; border-bottom: 1px solid #edf1f4; color: #364555; font-size: .9rem; font-weight: 650; }
#cartAddedModal .itemRow:last-child { border-bottom: 0; }
#cartAddedModal .item-image { display: grid; width: 58px !important; min-width: 58px !important; max-width: 58px !important; height: 58px !important; min-height: 58px !important; max-height: 58px !important; place-items: center; overflow: hidden; border-radius: 10px; background: #f5f7f9; }
#cartAddedModal .item-image img, #cartAddedModal .item-thumb, #cartAddedModal .item-thumb img { display: block; width: 58px !important; max-width: 58px !important; height: 58px !important; max-height: 58px !important; object-fit: contain; }
#cartAddedModal .item-name { min-width: 0; color: #1f2d3a; font-weight: 800; line-height: 1.25; }
#cartAddedModal .item-unit { display: inline-flex; justify-content: center; width: fit-content; min-width: 48px; padding: 5px 7px; border-radius: 999px; color: #8c6800; background: #fff2cb; font-size: .72rem; font-weight: 850; text-transform: uppercase; }
#cartAddedModal .item-price, #cartAddedModal .item-tax, #cartAddedModal .item-netTotal, #cartAddedModal .item-total { color: #536272; font-size: .85rem; font-weight: 700; white-space: nowrap; }
#cartAddedModal .item-total { color: #172432; font-weight: 850; }
#cartAddedModal .item-quantity { color: #1d2b38; font-size: 1rem; font-weight: 850; text-align: center; }
#cartAddedModal .item-decrement a, #cartAddedModal .item-increment a, #cartAddedModal .item-remove a { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: #455667; background: #f0f3f6; text-decoration: none; }
#cartAddedModal .item-decrement a:hover, #cartAddedModal .item-increment a:hover { color: #172432; background: #e3eaf0; }
#cartAddedModal .item-remove a { color: #bc3638; background: #fff0f0; }
#cartAddedModal .headerRow .item-image, #cartAddedModal .headerRow .item-decrement, #cartAddedModal .headerRow .item-increment, #cartAddedModal .headerRow .item-remove { visibility: hidden; }

.portal-cart__footer { display: grid; grid-template-columns: minmax(175px, 1fr) minmax(180px, .9fr); flex: 0 0 auto; gap: 22px; padding: 21px 28px; border-top: 1px solid var(--portal-line); background: #fbfcfd; }
.portal-cart__totals { display: grid; gap: 3px; align-content: center; }
.portal-cart__totals > div { display: flex; align-items: center; justify-content: space-between; min-height: 27px; color: var(--portal-muted); font-size: .92rem; font-weight: 700; }
.portal-cart__totals .simpleCart_total::before { content: "Subtotal"; }
.portal-cart__totals .simpleCart_tax::before { content: "VAT"; }
.portal-cart__totals .simpleCart_grandTotal { margin-top: 6px; padding-top: 10px; border-top: 1px solid #dfe6ed; color: var(--portal-ink); font-size: 1.18rem; font-weight: 850; }
.portal-cart__totals .simpleCart_grandTotal::before { content: "Order total"; }
.portal-cart__delivery { display: grid; gap: 7px; align-content: center; }
.portal-cart__delivery label { color: #3d4855; font-size: .84rem; font-weight: 750; }
.portal-cart__delivery select { min-height: 45px; font-size: .9rem; }
.portal-cart__actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 10px; }

/* Confirmation, warning and logout modals */
.portal-modal--confirm, .portal-modal--error, .portal-modal--logout { z-index: 1070; }
.portal-modal--confirm .modal-content, .portal-modal--error .modal-content, .portal-modal--logout .modal-content { align-items: stretch; padding: 36px 36px 0; text-align: center; }
.portal-modal--confirm .portal-modal__close, .portal-modal--error .portal-modal__close, .portal-modal--logout .portal-modal__close { position: absolute; z-index: 1; top: 15px; right: 15px; }
.portal-modal__status { display: grid; width: 62px; height: 62px; place-items: center; align-self: center; margin: 0 auto 20px; border-radius: 18px; background: #fff2c9; }
.portal-modal__status--warning { color: #9b6b00; background: #fff0c2; font-size: 1.75rem; }
.portal-modal__status--danger { color: var(--portal-danger); background: #ffebeb; font-size: 1.55rem; }
.portal-modal__status--neutral { color: #3f5871; background: #eaf1f8; font-size: 1.55rem; }
.portal-modal--confirm .portal-modal__eyebrow, .portal-modal--confirm .portal-modal__title, .portal-modal--confirm .portal-modal__text, .portal-modal--error .portal-modal__body, .portal-modal--logout .portal-modal__eyebrow, .portal-modal--logout .portal-modal__title, .portal-modal--logout .portal-modal__text { align-self: center; }
.portal-modal--confirm .portal-modal__title, .portal-modal--logout .portal-modal__title { margin: 0; }
.portal-modal--confirm .portal-modal__text, .portal-modal--logout .portal-modal__text { max-width: 340px; margin: 11px auto 0; }
.portal-modal--confirm .portal-modal__footer, .portal-modal--error .portal-modal__footer, .portal-modal--logout .portal-modal__footer { align-self: stretch; width: auto; margin: 27px -36px 0; padding: 18px 36px; }
.portal-modal__footer--stacked { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.portal-modal__footer--stacked .portal-button { width: 100%; }
.portal-modal__body--center { padding: 0; text-align: center; }
.portal-modal__body--center .portal-modal__text { max-width: 350px; margin: 11px auto 0; }

/* Notes */
.portal-modal--notes .modal-dialog { width: min(100%, 650px); }
.portal-modal--notes .portal-modal__intro { margin-bottom: 23px; }
.portal-notes { display: grid; gap: 18px; }
.portal-note-field { display: grid; gap: 8px; }
.portal-note-field__label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.portal-note-field label { color: #3c4a58; font-size: .93rem; font-weight: 750; }
.portal-note-field small { color: #7a8794; font-size: .76rem; font-weight: 650; }
.portal-note-field input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #dce4eb; border-radius: 12px; outline: 0; color: #1f2d3a; background: #fff; font: inherit; }
.portal-note-field input:focus { border-color: var(--portal-primary); box-shadow: 0 0 0 4px rgba(244,176,0,.15); }
.portal-note-field input:read-only { cursor: not-allowed; color: #73808d; background: #f3f5f7; }

/* Search */
.portal-modal--search .modal-dialog { width: min(100%, 640px); }
.portal-search__intro { margin-bottom: 24px; }
.portal-search__label { display: block; margin-bottom: 8px; color: #3d4b59; font-size: .92rem; font-weight: 750; }
.portal-search__input-wrap { position: relative; }
.portal-search__input-wrap > i { position: absolute; z-index: 1; top: 50%; left: 17px; color: #738292; font-size: 1.1rem; transform: translateY(-50%); }
.portal-search__input-wrap input { width: 100%; min-height: 58px; padding: 12px 16px 12px 47px; border: 1px solid #dce4eb; border-radius: 13px; outline: 0; color: #1f2d3a; background: #fff; font: inherit; }
.portal-search__input-wrap input:focus { border-color: var(--portal-primary); box-shadow: 0 0 0 4px rgba(244,176,0,.15); }
.portal-search__submit { width: 100%; min-height: 54px; margin-top: 13px; }

/* Sending progress */
.portal-modal--sending .modal-content { align-items: center; padding: 42px 36px; text-align: center; }
.portal-sending__animation { position: relative; display: grid; width: 82px; height: 82px; place-items: center; margin-bottom: 24px; border-radius: 25px; color: #5b4300; background: #fff0c2; font-size: 2rem; }
.portal-sending__ring { position: absolute; width: 94px; height: 94px; border: 3px solid transparent; border-top-color: var(--portal-primary); border-radius: 50%; animation: portal-spin 1s linear infinite; }
.portal-modal--sending .portal-modal__text { max-width: 340px; margin: 11px auto 0; }
.portal-sending__steps { display: grid; gap: 9px; width: 100%; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e2e8ee; }
.portal-sending__step { display: flex; align-items: center; justify-content: center; gap: 8px; color: #7b8794; font-size: .88rem; font-weight: 700; }
.portal-sending__step i { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: #82909d; background: #edf1f4; font-size: .72rem; }
.portal-sending__step.is-active { color: #2d3b49; }
.portal-sending__step.is-active i { color: #116c48; background: #ddf5e9; }

/* Login website / forgot password */
.portal-modal--website .modal-dialog { width: min(100%, 680px); }
.portal-modal--website .modal-content { align-items: center; padding: clamp(38px, 6vw, 64px); border-radius: 26px; text-align: center; }
.portal-modal__icon { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 18px; border-radius: 17px; color: #513900; background: #fff1c8; font-size: 1.45rem; }
.portal-modal--website .portal-modal__icon { width: 80px; height: 80px; margin-bottom: 24px; border-radius: 24px; font-size: 2rem; }
.portal-modal--website h3 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.45rem); letter-spacing: -.035em; }
.portal-modal--website p { max-width: 470px; margin: 14px auto 30px; color: var(--portal-muted); font-size: 1.12rem; line-height: 1.6; }
.portal-modal__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 12px; }
.portal-modal__actions .portal-button { width: 100%; }

/* Mobile cart card layout, no horizontal scrolling */
@media (max-width: 991.98px) {
  .portal-cart__body { padding: 16px; overflow-x: hidden; }
  .portal-cart__body .plist { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .portal-cart__body .simpleCart_items { min-width: 0; }
  #cartAddedModal .headerRow { display: none; }
  #cartAddedModal .itemRow {
    display: grid;
    grid-template-columns: clamp(104px, 25vw, 180px) minmax(0, 1fr) 54px;
    grid-template-areas: "image name remove" "image unit decrement" "image price quantity" "image tax increment" "image net net" "image total total";
    align-items: center;
    gap: 0 14px;
    min-height: 0;
    margin: 0 0 16px;
    padding: 20px;
    border: 1px solid #e0e6ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(29,42,58,.05);
  }
  #cartAddedModal .itemRow:last-child { margin-bottom: 0; border-bottom: 1px solid #e0e6ec; }
  #cartAddedModal .item-image { grid-area: image; width: 100% !important; min-width: 0 !important; max-width: none !important; height: 100% !important; min-height: 155px !important; max-height: none !important; border: 1px solid #e4e9ef; border-radius: 15px; background: #f9fafb; }
  #cartAddedModal .item-image img, #cartAddedModal .item-thumb, #cartAddedModal .item-thumb img { width: 100% !important; min-width: 0 !important; max-width: 100% !important; height: 100% !important; min-height: 0 !important; max-height: 100% !important; object-fit: contain !important; }
  #cartAddedModal .item-name { grid-area: name; padding-bottom: 11px; border-bottom: 1px solid #e9edf2; color: #202b3a; font-size: 1rem; font-weight: 850; line-height: 1.25; }
  #cartAddedModal .item-unit { grid-area: unit; justify-self: start; margin: 9px 0 6px; }
  #cartAddedModal .item-decrement { grid-area: decrement; }
  #cartAddedModal .item-quantity { grid-area: quantity; }
  #cartAddedModal .item-increment { grid-area: increment; }
  #cartAddedModal .item-price { grid-area: price; }
  #cartAddedModal .item-tax { grid-area: tax; }
  #cartAddedModal .item-netTotal { grid-area: net; }
  #cartAddedModal .item-total { grid-area: total; }
  #cartAddedModal .item-price, #cartAddedModal .item-tax, #cartAddedModal .item-netTotal, #cartAddedModal .item-total { display: flex; align-items: center; justify-content: space-between; min-height: 39px; border-bottom: 1px solid #e9edf2; color: #526176; font-size: .91rem; font-weight: 700; }
  #cartAddedModal .item-price::before { content: "Price"; }
  #cartAddedModal .item-tax::before { content: "VAT"; }
  #cartAddedModal .item-netTotal::before { content: "Net"; }
  #cartAddedModal .item-total::before { content: "Total"; }
  #cartAddedModal .item-total { border-bottom: 0; color: #1b2635; font-size: 1.08rem; font-weight: 850; }
  #cartAddedModal .item-price::before, #cartAddedModal .item-tax::before, #cartAddedModal .item-netTotal::before, #cartAddedModal .item-total::before { color: #7b8999; font-size: .84rem; font-weight: 750; }
  #cartAddedModal .item-decrement, #cartAddedModal .item-quantity, #cartAddedModal .item-increment { justify-self: end; }
  #cartAddedModal .item-decrement a, #cartAddedModal .item-increment a { width: 54px; height: 48px; border-radius: 13px; color: #fff; background: #1d2636; font-size: 1.2rem; }
  #cartAddedModal .item-decrement a:hover, #cartAddedModal .item-increment a:hover { color: #fff; background: #364255; }
  #cartAddedModal .item-quantity { display: grid; width: 54px; height: 48px; place-items: center; border-radius: 13px; color: #1d2636; background: #f1f3f6; font-size: 1.05rem; font-weight: 850; text-align: center; }
  #cartAddedModal .item-remove { grid-area: remove; justify-self: end; }
  #cartAddedModal .item-remove a { width: 42px; height: 42px; border: 1px solid #ffd7d7; border-radius: 12px; color: #d44648; background: #fff1f1; }
}

@media (max-width: 767.98px) {
  body .modal.portal-modal { padding: 10px; }
  .portal-modal--fullscreen { padding: 0 !important; }
  .portal-modal .modal-dialog, .portal-modal .modal-dialog.modal-xl { width: 100%; margin: 10px auto; }
  .portal-modal--fullscreen .modal-dialog { margin: 0; }
  .portal-modal .modal-dialog-centered { min-height: calc(100vh - 20px); }
  .portal-modal--fullscreen .modal-dialog-centered { min-height: 100vh; }
  .portal-modal .modal-content { max-height: calc(100vh - 20px); border-radius: 17px; }
  .portal-modal--fullscreen .modal-content { max-height: none; border-radius: 0; }
  .portal-modal__header, .portal-modal__body, .portal-modal__footer, .portal-cart-search { padding-right: 18px; padding-left: 18px; }
  .portal-cart-header { padding: 15px 16px; gap: 10px; }
  .portal-cart-header__icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; font-size: 1.18rem; }
  .portal-cart-header__copy p { font-size: .78rem; }
  .portal-cart-search i { left: 33px; }
  .portal-cart__footer { grid-template-columns: 1fr; gap: 16px; padding: 18px; box-shadow: 0 -10px 22px rgba(22,34,49,.08); }
  .portal-cart__actions, .portal-modal__footer { display: grid; grid-template-columns: 1fr; }
  .portal-cart__actions .portal-button, .portal-modal__footer .portal-button { width: 100%; }
  .portal-modal__footer--stacked { grid-template-columns: 1fr; }
  .portal-modal--confirm .modal-content, .portal-modal--error .modal-content, .portal-modal--logout .modal-content { padding: 31px 21px 0; }
  .portal-modal--confirm .portal-modal__footer, .portal-modal--error .portal-modal__footer, .portal-modal--logout .portal-modal__footer { margin: 24px -21px 0; padding: 17px 21px; }
  .portal-note-field__label { align-items: flex-start; flex-direction: column; gap: 2px; }
  .portal-modal__actions { grid-template-columns: 1fr; }
  .portal-modal--website .modal-content { padding: 34px 22px; border-radius: 20px; }
  .portal-modal--sending .modal-content { padding: 36px 22px; }
}

@media (max-width: 480px) {
  .portal-cart__body { padding: 10px; }
  #cartAddedModal .itemRow { grid-template-columns: 94px minmax(0, 1fr) 46px; gap: 0 10px; margin-bottom: 10px; padding: 14px; border-radius: 15px; }
  #cartAddedModal .item-image { min-height: 132px !important; border-radius: 12px; }
  #cartAddedModal .item-name { font-size: .82rem; }
  #cartAddedModal .item-price, #cartAddedModal .item-tax, #cartAddedModal .item-netTotal, #cartAddedModal .item-total { min-height: 33px; font-size: .79rem; }
  #cartAddedModal .item-price::before, #cartAddedModal .item-tax::before, #cartAddedModal .item-netTotal::before, #cartAddedModal .item-total::before { font-size: .72rem; }
  #cartAddedModal .item-decrement a, #cartAddedModal .item-increment a, #cartAddedModal .item-quantity { width: 46px; height: 40px; border-radius: 11px; }
  #cartAddedModal .item-remove a { width: 36px; height: 36px; border-radius: 10px; }
}

@keyframes portal-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 991.98px) {
    #cartAddedModal .item-increment {
        grid-area: decrement;
    }

    #cartAddedModal .item-decrement {
        grid-area: increment;
    }
}