/*
 * Winkelwagen en afrekenen
 *
 * Alle styling staat bewust onder .vm-shop-page. Hierdoor hebben formulieren,
 * links en Bootstrap-componenten buiten de winkelwagen geen last van dit bestand.
 */

/* Basis en kleuren */
.vm-shop-page {
  --vm-shop-green: var(--vm-green, #4e6340);
  --vm-shop-green-dark: #35472c;
  --vm-shop-green-soft: #f2f7f1;
  --vm-shop-ink: #181a18;
  --vm-shop-muted: #656965;
  --vm-shop-line: #e0e3e0;
  --vm-shop-surface: #fff;
  --vm-shop-page-background: #fbfcfb;
  --vm-shop-danger: #a12b2b;
  min-width: 0;
  min-height: 100%;
  flex: 1 0 auto;
  width: 100%;
  color: var(--vm-shop-ink);
  background:
    radial-gradient(circle at 50% -20%, #fff 0, transparent 44%),
    var(--vm-shop-page-background);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.vm-shop-page,
.vm-shop-page *,
.vm-shop-page *::before,
.vm-shop-page *::after {
  box-sizing: border-box;
}

.vm-shop-page a {
  color: inherit;
}

.vm-shop-page :is(.checkout-container, .vm-checkout-container, .vm-shop-container) {
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  padding-right: clamp(14px, 2vw, 24px);
  padding-left: clamp(14px, 2vw, 24px);
}

.vm-shop-page > main.checkout-container.vm-shop-container[data-shop-page-root] {
  min-height: 360px;
  padding-top: 22px;
  padding-bottom: 48px;
}

.vm-shop-page [data-shop-content] {
  min-height: 220px;
}

.vm-shop-page .vm-shop-loading {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--vm-shop-muted);
  font-size: 12px;
  text-align: center;
}

.vm-shop-page .vm-shop-loading::before {
  width: 30px;
  height: 30px;
  border: 3px solid #d9e3d8;
  border-top-color: var(--vm-shop-green);
  border-radius: 50%;
  content: "";
  animation: vm-shop-spin 700ms linear infinite;
}

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

/* Stappen bovenaan */
.vm-shop-page :is(.checkout-steps, .vm-checkout-steps) {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 930px;
  margin: 0 auto;
  padding: 0;
}

.vm-shop-page :is(.checkout-step, .vm-checkout-step) {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: #737773;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.vm-shop-page :is(.checkout-step, .vm-checkout-step):is(.is-complete, .is-active) {
  color: var(--vm-shop-ink);
}

.vm-shop-page :is(.step-number, .vm-step-number) {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e7e9e7;
  color: #555a55;
  font-size: 12px;
  font-weight: 700;
}

.vm-shop-page :is(.checkout-step, .vm-checkout-step):is(.is-complete, .is-active)
  :is(.step-number, .vm-step-number) {
  color: #fff;
  background: var(--vm-shop-green);
  box-shadow: 0 1px 4px rgb(78 99 64 / 20%);
}

.vm-shop-page :is(.step-number, .vm-step-number) svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vm-shop-page :is(.step-line, .vm-step-line) {
  flex: 1 1 90px;
  height: 1px;
  margin: 0 16px;
  background: #d7dad7;
}

.vm-shop-page :is(.step-line, .vm-step-line).is-complete {
  background: #88a48b;
}

/* Algemene panelen en pagina-indeling */
.vm-shop-page .vm-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 20px;
  align-items: start;
}

.vm-shop-page .vm-checkout-shell {
  display: block;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.vm-shop-page .vm-checkout-shell > :is(.checkout-steps, .vm-checkout-steps) {
  margin-bottom: 26px;
}

.vm-shop-page .vm-cart {
  margin-top: 26px;
}

.vm-shop-page :is(
  .checkout-form,
  .vm-checkout-form,
  .checkout-panel,
  .order-summary,
  .vm-order-summary,
  .vm-cart-panel
) {
  border: 1px solid var(--vm-shop-line);
  border-radius: 8px;
  background: var(--vm-shop-surface);
  box-shadow: 0 2px 8px rgb(20 34 22 / 2%);
}

.vm-shop-page :is(.checkout-section, .vm-checkout-section) {
  padding: 23px 26px;
  border-bottom: 1px solid var(--vm-shop-line);
}

.vm-shop-page :is(.checkout-section, .vm-checkout-section):last-of-type {
  border-bottom: 0;
}

.vm-shop-page :is(.section-heading, .vm-section-heading) {
  margin-bottom: 16px;
}

.vm-shop-page :is(.section-heading, .vm-section-heading) :is(h1, h2, h3) {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.vm-shop-page :is(.section-heading, .vm-section-heading) p {
  margin: 0;
  color: #343834;
  font-size: 12px;
}

/* Keuzekaarten voor bezorgen en betalen */
.vm-shop-page :is(.choice-card, .vm-choice-card) {
  position: relative;
  display: flex;
  min-height: 137px;
  align-items: flex-start;
  padding: 20px 18px 18px 49px;
  border: 1px solid #d5dad5;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.vm-shop-page :is(.choice-card, .vm-choice-card):hover {
  border-color: #94aa97;
}

.vm-shop-page :is(.choice-card, .vm-choice-card):focus-within {
  outline: 3px solid rgb(78 99 64 / 14%);
  outline-offset: 2px;
}

.vm-shop-page :is(.choice-card, .vm-choice-card).is-selected {
  border-color: var(--vm-shop-green);
  background: linear-gradient(135deg, #fff, #fbfdfb);
  box-shadow: inset 0 0 0 1px rgb(78 99 64 / 10%);
}

.vm-shop-page :is(.choice-input, .vm-choice-input) {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.vm-shop-page :is(.choice-indicator, .vm-choice-indicator) {
  position: absolute;
  top: 22px;
  left: 16px;
  width: 16px;
  height: 16px;
  border: 1.5px solid #a9aea9;
  border-radius: 50%;
  background: #fff;
}

.vm-shop-page :is(.choice-card, .vm-choice-card).is-selected
  :is(.choice-indicator, .vm-choice-indicator) {
  border-color: var(--vm-shop-green);
  background: var(--vm-shop-green);
  box-shadow: inset 0 0 0 3px #fff;
}

.vm-shop-page :is(.choice-icon, .vm-choice-icon) {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 48px;
  margin: -4px 9px 0 0;
  place-items: center;
}

.vm-shop-page :is(.choice-icon, .vm-choice-icon) svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: #161916;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vm-shop-page :is(.choice-icon, .vm-choice-icon).delivery-truck svg {
  width: 45px;
}

.vm-shop-page :is(.choice-copy, .vm-choice-copy) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  color: #252825;
  font-size: 12px;
  line-height: 1.45;
}

.vm-shop-page :is(.choice-copy, .vm-choice-copy) > strong {
  margin-bottom: 1px;
  color: var(--vm-shop-ink);
  font-size: 13px;
}

.vm-shop-page :is(.choice-copy, .vm-choice-copy) > b {
  margin-bottom: 8px;
  color: var(--vm-shop-ink);
}

.vm-shop-page .checkout-delivery-readonly {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #d5dad5;
  border-radius: 6px;
  background: linear-gradient(135deg, #fff, #fbfdfb);
}

.vm-shop-page .checkout-delivery-readonly .edit-link {
  align-self: start;
  margin-top: 2px;
}

/* Formuliervelden */
.vm-shop-page :is(.form-label, .vm-form-label) {
  margin-bottom: 4px;
  color: #343734;
  font-size: 11px;
  font-weight: 700;
}

.vm-shop-page :is(.form-control, .form-select, .vm-form-control, .vm-form-select) {
  min-height: 36px;
  border-color: #d5dad5;
  border-radius: 5px;
  color: #252825;
  background-color: #fff;
  font-size: 12px;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 2%);
}

.vm-shop-page :is(.form-control, .vm-form-control)::placeholder {
  color: #9a9e9a;
  opacity: 1;
}

.vm-shop-page :is(.form-control, .form-select, .vm-form-control, .vm-form-select):focus {
  border-color: #709574;
  outline: 0;
  box-shadow: 0 0 0 3px rgb(78 99 64 / 12%);
}

.vm-shop-page :is(.invalid-feedback, .vm-invalid-feedback) {
  color: var(--vm-shop-danger);
  font-size: 11px;
}

/* Afwijkend factuuradres */
.vm-shop-page :is(.invoice-toggle, .vm-invoice-toggle) {
  display: flex;
  width: calc(100% + 52px);
  align-items: center;
  gap: 9px;
  margin: 20px -26px -23px;
  padding: 14px 26px;
  border: 0;
  border-top: 1px solid var(--vm-shop-line);
  background: transparent;
  color: #303430;
  font-size: 12px;
  text-align: left;
}

.vm-shop-page :is(.invoice-toggle, .vm-invoice-toggle):hover {
  background: #fafbfa;
}

.vm-shop-page :is(.invoice-toggle, .vm-invoice-toggle) > .form-check-input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  border-color: #9ba09b;
  cursor: pointer;
}

.vm-shop-page :is(.invoice-toggle, .vm-invoice-toggle) > .form-check-input:checked {
  border-color: var(--vm-shop-green);
  background-color: var(--vm-shop-green);
}

.vm-shop-page :is(.invoice-toggle, .vm-invoice-toggle) > .form-check-input:focus {
  border-color: var(--vm-shop-green);
  box-shadow: 0 0 0 3px rgb(78 99 64 / 12%);
}

.vm-shop-page :is(.invoice-toggle, .vm-invoice-toggle) svg {
  width: 14px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  transition: transform 180ms ease;
}

.vm-shop-page :is(.invoice-toggle, .vm-invoice-toggle)[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.vm-shop-page :is(.invoice-toggle, .vm-invoice-toggle):has(.form-check-input:checked) svg {
  transform: rotate(180deg);
}

.vm-shop-page :is(.invoice-fields, .vm-invoice-fields) {
  margin: 23px -26px -23px;
  padding: 18px 26px 22px;
  border-top: 1px solid var(--vm-shop-line);
  background: #fafbfa;
}

/* Betaalmethodes */
.vm-shop-page :is(.payment-card, .vm-payment-card) {
  min-height: 75px;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.vm-shop-page :is(.payment-card, .vm-payment-card)
  :is(.choice-indicator, .vm-choice-indicator) {
  top: 27px;
}

.vm-shop-page :is(.payment-logo, .vm-payment-logo) {
  position: relative;
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 33px;
  margin-right: 12px;
  place-items: center;
}

.vm-shop-page img:is(.payment-logo, .vm-payment-logo) {
  display: block;
  object-fit: contain;
}

/* Knoppen en acties */
.vm-shop-page :is(.checkout-actions, .vm-checkout-actions) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px;
  border-top: 1px solid var(--vm-shop-line);
}

.vm-shop-page :is(.checkout-actions, .vm-checkout-actions) > span {
  color: var(--vm-shop-muted);
  font-size: 11px;
}

.vm-shop-page :is(.back-link, .vm-back-link, .edit-link, .vm-edit-link) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vm-shop-green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.vm-shop-page :is(.back-link, .vm-back-link, .edit-link, .vm-edit-link):hover {
  color: var(--vm-shop-green-dark);
}

.vm-shop-page :is(.back-link, .vm-back-link) svg,
.vm-shop-page :is(.edit-link, .vm-edit-link) svg,
.vm-shop-page :is(.btn-checkout, .vm-btn-primary) svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vm-shop-page :is(.btn-checkout, .vm-btn-primary, .vm-btn-secondary) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--vm-shop-green);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.vm-shop-page :is(.btn-checkout, .vm-btn-primary) {
  background: var(--vm-shop-green);
  color: #fff;
}

.vm-shop-page :is(.btn-checkout, .vm-btn-primary):hover,
.vm-shop-page :is(.btn-checkout, .vm-btn-primary):focus-visible {
  border-color: var(--vm-shop-green-dark);
  background: var(--vm-shop-green-dark);
  color: #fff;
}

.vm-shop-page :is(.btn-checkout, .vm-btn-primary, .vm-btn-secondary):disabled,
.vm-shop-page :is(.btn-checkout, .vm-btn-primary, .vm-btn-secondary)[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

/* Prijsoverzicht */
.vm-shop-page :is(.order-summary, .vm-order-summary) {
  position: sticky;
  top: calc(var(--vm-header-h, 84px) + 18px);
  padding: 24px 24px 22px;
}

.vm-shop-page :is(.summary-header, .vm-summary-header) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--vm-shop-line);
}

.vm-shop-page :is(.summary-header, .vm-summary-header) h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.vm-shop-page :is(.edit-link, .vm-edit-link) {
  flex: 0 0 auto;
  font-size: 11px;
}

.vm-shop-page :is(.summary-table, .vm-summary-table) {
  padding-top: 10px;
}

.vm-shop-page :is(.summary-table, .vm-summary-table) > div,
.vm-shop-page .vm-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0;
  font-size: 12px;
}

.vm-shop-page :is(.summary-table, .vm-summary-table) strong,
.vm-shop-page .vm-summary-row strong {
  flex: 0 0 auto;
  font-weight: 600;
  text-align: right;
}

.vm-shop-page :is(.summary-table, .vm-summary-table)
  :is(.shipping-row, .vm-shipping-row),
.vm-shop-page .vm-summary-row.vm-shipping-row {
  margin-top: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--vm-shop-line);
  border-bottom: 1px solid var(--vm-shop-line);
}

.vm-shop-page :is(.summary-table, .vm-summary-table)
  :is(.total-row, .vm-total-row),
.vm-shop-page .vm-summary-row.vm-total-row {
  padding: 17px 0 16px;
  border-bottom: 1px solid var(--vm-shop-line);
  font-size: 15px;
  font-weight: 700;
}

.vm-shop-page :is(.summary-table, .vm-summary-table)
  :is(.total-row, .vm-total-row) strong,
.vm-shop-page .vm-summary-row.vm-total-row strong {
  color: var(--vm-shop-green);
  font-size: 17px;
}

.vm-shop-page .summary-message {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #d9e4d8;
  border-radius: 5px;
  background: var(--vm-shop-green-soft);
  color: #38543a;
  font-size: 10.5px;
  line-height: 1.45;
}

.vm-shop-page .terms-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 0;
  color: #343834;
  font-size: 10.5px;
  line-height: 1.5;
  cursor: pointer;
}

.vm-shop-page .terms-check .form-check-input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  border-color: #9ba09b;
  cursor: pointer;
}

.vm-shop-page .terms-check .form-check-input:checked {
  border-color: var(--vm-shop-green);
  background-color: var(--vm-shop-green);
}

.vm-shop-page .terms-check .form-check-input:focus {
  border-color: var(--vm-shop-green);
  box-shadow: 0 0 0 3px rgb(78 99 64 / 12%);
}

.vm-shop-page :is(.order-summary, .vm-order-summary) > .btn-checkout {
  width: 100%;
  margin-top: 18px;
}

/* Service en veilig betalen */
.vm-shop-page :is(.service-list, .vm-service-list) {
  display: grid;
  gap: 18px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.vm-shop-page :is(.service-list, .vm-service-list) li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #313531;
  font-size: 12px;
  font-weight: 600;
}

.vm-shop-page :is(.service-list, .vm-service-list) svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--vm-shop-green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vm-shop-page :is(.secure-box, .vm-secure-box) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 15px;
  border-radius: 5px;
  background: #f4f5f4;
}

.vm-shop-page .vm-cart-layout .order-summary > .secure-box {
  margin-top: 18px;
}

.vm-shop-page :is(.lock-icon, .vm-lock-icon) {
  flex: 0 0 19px;
  width: 19px;
  fill: none;
  stroke: var(--vm-shop-green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vm-shop-page :is(.secure-box, .vm-secure-box) strong {
  display: block;
  margin: 0 0 5px;
  font-size: 12px;
}

.vm-shop-page :is(.secure-box, .vm-secure-box) p {
  margin: 0;
  color: #4e524e;
  font-size: 10.5px;
  line-height: 1.55;
}

/* Winkelwagenlijst */
.vm-shop-page .vm-cart-panel {
  min-width: 0;
  overflow: hidden;
}

.vm-shop-page .vm-cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--vm-shop-line);
}

.vm-shop-page .vm-cart-header h1,
.vm-shop-page .vm-cart-header h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.vm-shop-page .vm-cart-header p,
.vm-shop-page .vm-cart-count {
  margin: 4px 0 0;
  color: var(--vm-shop-muted);
  font-size: 12px;
}

.vm-shop-page .vm-cart-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vm-shop-page .vm-cart-columns {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 90px 138px 100px 44px;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--vm-shop-line);
  background: #fafbfa;
  color: var(--vm-shop-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.vm-shop-page .vm-cart-columns > :not(:first-child) {
  text-align: right;
}

.vm-shop-page .vm-cart-item {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 90px 138px 100px 44px;
  gap: 12px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--vm-shop-line);
}

.vm-shop-page .vm-cart-item:last-child {
  border-bottom: 0;
}

.vm-shop-page .vm-cart-product {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.vm-shop-page .vm-cart-image {
  display: grid;
  flex: 0 0 82px;
  width: 82px;
  height: 68px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--vm-shop-line);
  border-radius: 6px;
  background: #f4f5f2;
}

.vm-shop-page .vm-cart-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vm-shop-page .vm-cart-image > span {
  color: var(--vm-shop-green);
  font-size: 23px;
}

.vm-shop-page .vm-cart-product-copy {
  min-width: 0;
}

.vm-shop-page .vm-cart-product-title {
  display: inline-block;
  margin: 0 0 4px;
  color: var(--vm-shop-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.vm-shop-page .vm-cart-product-meta {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--vm-shop-muted);
  font-size: 11px;
}

.vm-shop-page .vm-cart-edit-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--vm-shop-green);
  font-weight: 700;
  text-decoration: none;
}

.vm-shop-page .vm-cart-edit-link:hover,
.vm-shop-page .vm-cart-edit-link:focus-visible {
  color: var(--vm-shop-green-dark);
  text-decoration: underline;
}

.vm-shop-page .vm-cart-cell-label {
  display: none;
  margin-bottom: 3px;
  color: var(--vm-shop-muted);
  font-size: 10px;
  font-weight: 600;
}

.vm-shop-page :is(.vm-cart-price, .vm-cart-line-total) {
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.vm-shop-page .vm-cart-line-total {
  font-size: 13px;
}

.vm-shop-page .vm-cart-quantity {
  display: grid;
  grid-template-columns: 34px 46px 34px;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #d5dad5;
  border-radius: 5px;
  background: #fff;
}

.vm-shop-page .vm-cart-quantity button,
.vm-shop-page .vm-cart-quantity input {
  width: 100%;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vm-shop-ink);
  font-size: 12px;
  text-align: center;
}

.vm-shop-page .vm-cart-quantity button {
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.vm-shop-page .vm-cart-quantity button:hover,
.vm-shop-page .vm-cart-quantity button:focus-visible {
  color: var(--vm-shop-green-dark);
  background: var(--vm-shop-green-soft);
  outline: 0;
}

.vm-shop-page .vm-cart-quantity input {
  border-right: 1px solid #e6e8e6;
  border-left: 1px solid #e6e8e6;
  appearance: textfield;
}

.vm-shop-page .vm-cart-quantity input::-webkit-inner-spin-button,
.vm-shop-page .vm-cart-quantity input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.vm-shop-page .vm-cart-quantity--fixed {
  grid-template-columns: 1fr;
  border: 0;
  background: transparent;
  color: var(--vm-shop-muted);
  font-size: 12px;
  text-align: center;
}

.vm-shop-page .vm-cart-remove {
  display: grid;
  justify-self: end;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #858a85;
  cursor: pointer;
}

.vm-shop-page .vm-cart-remove:hover,
.vm-shop-page .vm-cart-remove:focus-visible {
  background: #fbefef;
  color: var(--vm-shop-danger);
  outline: 0;
}

.vm-shop-page .vm-cart-remove i {
  font-size: 14px;
}

.vm-shop-page .vm-cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-top: 1px solid var(--vm-shop-line);
  background: #fafbfa;
}

.vm-shop-page .vm-cart-empty {
  display: grid;
  min-height: 260px;
  padding: 40px 24px;
  place-items: center;
  text-align: center;
}

.vm-shop-page .vm-cart-empty > div {
  max-width: 430px;
}

.vm-shop-page .vm-cart-empty i {
  margin-bottom: 12px;
  color: var(--vm-shop-green);
  font-size: 38px;
}

.vm-shop-page .vm-cart-empty h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.vm-shop-page .vm-cart-empty p {
  margin: 0 0 18px;
  color: var(--vm-shop-muted);
  font-size: 12px;
}

/* Bezorgkeuze in het winkelwagenoverzicht */
.vm-shop-page .cart-delivery {
  display: grid;
  gap: 8px;
  margin: 16px 0 4px;
  padding: 0;
  border: 0;
}

.vm-shop-page .cart-delivery legend {
  float: none;
  width: auto;
  margin: 0 0 2px;
  padding: 0;
  color: #343734;
  font-size: 11px;
  font-weight: 700;
}

.vm-shop-page .cart-delivery__option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid #d9ddd9;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.vm-shop-page .cart-delivery__option:hover {
  border-color: #94aa97;
}

.vm-shop-page .cart-delivery__option:has(input:checked) {
  border-color: var(--vm-shop-green);
  background: var(--vm-shop-green-soft);
}

.vm-shop-page .cart-delivery__option > input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--vm-shop-green);
  cursor: pointer;
}

.vm-shop-page .cart-delivery__option > span {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.vm-shop-page .cart-delivery__option strong {
  font-size: 11px;
}

.vm-shop-page .cart-delivery__option small {
  flex: 0 0 auto;
  color: var(--vm-shop-muted);
  font-size: 10.5px;
  font-weight: 600;
}

/* Meldingen */
.vm-shop-page .vm-shop-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #e3c5c5;
  border-radius: 5px;
  background: #fff5f5;
  color: var(--vm-shop-danger);
  font-size: 12px;
}

.vm-shop-page .vm-shop-alert--warning {
  border-color: #e5d7ad;
  background: #fffaf0;
  color: #6d5818;
}

.vm-shop-page .vm-shop-status {
  position: fixed;
  z-index: 1080;
  right: 20px;
  bottom: 20px;
  max-width: min(390px, calc(100vw - 40px));
  padding: 11px 14px;
  border: 1px solid #cbdccb;
  border-radius: 6px;
  background: var(--vm-shop-green-dark);
  box-shadow: 0 8px 28px rgb(20 34 22 / 18%);
  color: #fff;
  font-size: 12px;
}

.vm-shop-page .vm-shop-status.is-error {
  border-color: #8d2525;
  background: #8d2525;
}

.vm-shop-page .vm-shop-status[hidden] {
  display: none;
}

.vm-shop-page .vm-shop-empty {
  display: grid;
  min-height: 300px;
  align-content: center;
  justify-items: center;
  padding: 42px 24px;
  border: 1px solid var(--vm-shop-line);
  border-radius: 8px;
  background: var(--vm-shop-surface);
  text-align: center;
}

.vm-shop-page .vm-shop-empty > i {
  margin-bottom: 13px;
  color: var(--vm-shop-green);
  font-size: 38px;
}

.vm-shop-page main[data-shop-page="result"] .vm-shop-empty {
  margin-top: 24px;
}

.vm-shop-page .vm-shop-empty :is(h1, h2) {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.vm-shop-page .vm-shop-empty p {
  max-width: 440px;
  margin: 0 0 18px;
  color: var(--vm-shop-muted);
  font-size: 12px;
}

.vm-shop-page .vm-shop-empty .btn-vm {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid var(--vm-shop-green);
  border-radius: 5px;
  background: var(--vm-shop-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.vm-shop-page .vm-shop-empty .btn-vm:hover,
.vm-shop-page .vm-shop-empty .btn-vm:focus-visible {
  border-color: var(--vm-shop-green-dark);
  background: var(--vm-shop-green-dark);
  color: #fff;
}

.vm-shop-page [aria-busy="true"] {
  cursor: wait;
  opacity: 0.7;
  pointer-events: none;
}

/* Kleinere desktops: geef de brede productregels de volledige breedte. */
@media (max-width: 1199.98px) {
  .vm-shop-page .vm-cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .vm-shop-page :is(.order-summary, .vm-order-summary) {
    position: static;
  }
}

/* Tablet */
@media (max-width: 991.98px) {
  .vm-shop-page :is(.checkout-container, .vm-checkout-container, .vm-shop-container) {
    max-width: 760px;
  }

  .vm-shop-page :is(.step-label, .vm-step-label) {
    display: none;
  }

  .vm-shop-page :is(.checkout-step, .vm-checkout-step).is-active
    :is(.step-label, .vm-step-label) {
    display: inline;
  }

  .vm-shop-page :is(.checkout-step, .vm-checkout-step).is-active {
    gap: 9px;
  }

  .vm-shop-page :is(.step-line, .vm-step-line) {
    margin: 0 10px;
  }

  .vm-shop-page .vm-cart {
    margin-top: 20px;
  }

  .vm-shop-page .vm-cart-item,
  .vm-shop-page .vm-cart-columns {
    grid-template-columns: minmax(230px, 1fr) 92px 122px 100px 30px;
    gap: 12px;
    padding-right: 18px;
    padding-left: 18px;
  }
}

/* Kleine tablet en telefoon */
@media (max-width: 767.98px) {
  .vm-shop-page .vm-cart-columns {
    display: none;
  }

  .vm-shop-page .vm-cart-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 18px;
    align-items: start;
    position: relative;
    padding-right: 52px;
  }

  .vm-shop-page .vm-cart-product {
    grid-column: 1 / -1;
  }

  .vm-shop-page :is(.vm-cart-price, .vm-cart-line-total) {
    text-align: left;
  }

  .vm-shop-page .vm-cart-remove {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .vm-shop-page .vm-cart-cell-label {
    display: block;
  }

  .vm-shop-page .vm-cart-quantity {
    justify-self: end;
  }
}

/* Telefoon */
@media (max-width: 575.98px) {
  .vm-shop-page .checkout-delivery-readonly {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .vm-shop-page .checkout-delivery-readonly .edit-link {
    grid-column: 2;
  }

  .vm-shop-page {
    background: #fff;
  }

  .vm-shop-page :is(.checkout-steps, .vm-checkout-steps) {
    justify-content: center;
  }

  .vm-shop-page :is(.checkout-step, .vm-checkout-step) {
    gap: 0;
  }

  .vm-shop-page :is(.checkout-step, .vm-checkout-step).is-active {
    gap: 7px;
  }

  .vm-shop-page :is(.checkout-step, .vm-checkout-step).is-active
    :is(.step-label, .vm-step-label) {
    max-width: 75px;
    font-size: 11px;
    line-height: 1.2;
    white-space: normal;
  }

  .vm-shop-page :is(.checkout-step, .vm-checkout-step).is-active
    :is(.step-label, .vm-step-label) strong {
    display: none;
  }

  .vm-shop-page :is(.step-number, .vm-step-number) {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }

  .vm-shop-page :is(.step-line, .vm-step-line) {
    flex-basis: 16px;
    margin: 0 7px;
  }

  .vm-shop-page :is(
    .checkout-form,
    .vm-checkout-form,
    .checkout-panel,
    .order-summary,
    .vm-order-summary,
    .vm-cart-panel
  ) {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .vm-shop-page :is(.checkout-section, .vm-checkout-section) {
    padding: 21px 16px;
  }

  .vm-shop-page :is(.section-heading, .vm-section-heading) :is(h1, h2, h3) {
    font-size: 16px;
  }

  .vm-shop-page :is(.choice-card, .vm-choice-card) {
    min-height: 114px;
    padding-right: 14px;
    padding-left: 47px;
  }

  .vm-shop-page :is(.invoice-toggle, .vm-invoice-toggle) {
    width: calc(100% + 32px);
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .vm-shop-page :is(.invoice-fields, .vm-invoice-fields) {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .vm-shop-page :is(.checkout-actions, .vm-checkout-actions) {
    flex-direction: column-reverse;
    padding: 18px 16px 23px;
  }

  .vm-shop-page :is(.checkout-actions, .vm-checkout-actions)
    :is(.btn-checkout, .vm-btn-primary, .vm-btn-secondary) {
    width: 100%;
  }

  .vm-shop-page :is(.order-summary, .vm-order-summary) {
    padding: 22px 16px;
    border-top: 8px solid #f1f3f1;
  }

  .vm-shop-page .vm-cart-layout {
    gap: 18px;
  }

  .vm-shop-page .vm-cart-header {
    padding: 19px 16px 16px;
  }

  .vm-shop-page .vm-cart-item {
    padding: 18px 46px 18px 16px;
  }

  .vm-shop-page .vm-cart-image {
    flex-basis: 72px;
    width: 72px;
    height: 62px;
  }

  .vm-shop-page .vm-cart-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .vm-shop-page .cart-delivery__option > span {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .vm-shop-page .vm-shop-status {
    right: 14px;
    bottom: 70px;
    max-width: calc(100vw - 28px);
  }

  .vm-shop-page .vm-shop-empty {
    min-height: 250px;
    padding: 34px 18px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}

@media (min-width: 1200px) and (max-height: 860px) {
  .vm-shop-page :is(.order-summary, .vm-order-summary) {
    position: static;
  }
}

@media (max-width: 767.98px), (pointer: coarse) {
  .vm-shop-page :is(.form-control, .form-select, .vm-form-control, .vm-form-select) {
    min-height: 44px;
    font-size: 16px;
  }

  .vm-shop-page .vm-cart-quantity {
    grid-template-columns: 44px 50px 44px;
  }

  .vm-shop-page .vm-cart-quantity button,
  .vm-shop-page .vm-cart-quantity input {
    height: 44px;
  }

  .vm-shop-page .vm-cart-remove {
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) and (pointer: coarse) {
  .vm-shop-page .vm-cart-item,
  .vm-shop-page .vm-cart-columns {
    grid-template-columns: minmax(210px, 1fr) 92px 144px 100px 44px;
    gap: 12px;
  }
}

/* Minder beweging wanneer de bezoeker dit heeft ingesteld */
@media (prefers-reduced-motion: reduce) {
  .vm-shop-page,
  .vm-shop-page *,
  .vm-shop-page *::before,
  .vm-shop-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .vm-shop-page .vm-shop-loading::before {
    animation: none;
    border-color: var(--vm-shop-green);
  }
}
