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

body {
  background: #f2f3f5;
}

.page,
.page-body {
  background: transparent;
}

.mmdb-checkout h1 {
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  margin: 0 0 20px 5px;
}

.mmdb-checkout {
  max-width: 800px;
  margin: 0 auto;
  padding: 26px 16px 70px;
}

.mmdb-card,
.mmdb-acc-item {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.mmdb-card {
  margin-bottom: 16px;
}

.mmdb-card--padded {
  padding: 18px 20px 16px;
}

.mmdb-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #00114F;
  margin: 0 0 6px 0;
}

.mmdb-card__subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #00114F;
  margin: 0 0 14px 0;
}

.mmdb-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.mmdb-review-loading {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mmdb-review-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mmdb-review-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #d9dfea;
  border-top-color: #173caa;
  border-radius: 50%;
  animation: mmdb-spin 0.8s linear infinite;
}

.mmdb-review-loading-text {
  font-size: 14px;
  color: #4b4b4b;
}

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

@media (min-width: 900px) {
  .mmdb-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 22px;
    align-items: stretch;
  }

  .mmdb-divider-vr {
    background: #d7dbe3;
    width: 1px;
    height: 100%;
    align-self: stretch;
    justify-self: center;
  }
}

.mmdb-divider {
  display: none;
}

.mmdb-card .mmdb-divider {
  display: none;
}

@media (min-width: 900px) {
  .mmdb-card .mmdb-grid-2 {
    grid-template-columns: 1fr 1px 1fr;
    gap: 18px;
  }

  .mmdb-card .mmdb-divider {
    display: block;
    width: 1px;
    height: 100%;
    background: #e6e9ef;
  }
}

.mmdb-grid-gap {
  gap: 14px;
}

.mmdb-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.mmdb-label {
  font-size: 12px;
  font-weight: 400;
  color: #4B4B4B;
  margin: 0;
}

#mmdb-b-mode {
  margin-bottom: 12px;
  color: #4B4B4B;
}

#mmdb-s-mode {
  margin-bottom: 12px;
  color: #4B4B4B;
}

#mmdb-b-saved-id {
  color: #4B4B4B;
}

#mmdb-s-saved-id {
  color: #4B4B4B;
}

.mmdb-input {
  width: 100% !important;
  height: 40px !important;
  border: 1px solid #d7dce5 !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
  background: #ffffff !important;
  outline: none !important;
  min-width: 0 !important;
}

  .mmdb-input::placeholder {
    color: #4B4B4B !important;
  }

  .mmdb-input:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
  }

.mmdb-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mmdb-acc-item {
  overflow: hidden;
}

.mmdb-acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #ffffff;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: #00114F;
}

.mmdb-acc-chevron {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #e6e9ef;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 140ms ease;
}

.mmdb-acc-chevron--open {
  transform: rotate(180deg);
}

.mmdb-acc-body {
  border-top: 1px solid #edf0f6;
  background: #ffffff;
}

.mmdb-acc-body-inner {
  padding: 16px 18px 18px;
}

.mmdb-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

  .mmdb-actions .button-1 {
    height: 46px;
    padding: 0 18px;
    border-radius: 4px;
    font-weight: 400;
    letter-spacing: 0.2px;
    width: 100%;
    background: #00239C;
    text-transform: capitalize;
  }

.mmdb-muted {
  color: #00239C;
  font-size: 15px;
}

.mmdb-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 900px) {
  .mmdb-form-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 14px 4px;
  }

    .mmdb-form-grid .mmdb-col-12 {
      grid-column: span 6;
    }

    .mmdb-form-grid .mmdb-col-6 {
      grid-column: span 12;
    }
}

.mmdb-actions--left {
  justify-content: flex-start;
}

.mmdb-auth-extra {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf0f6;
}

.mmdb-field-error {
  font-size: 12px;
  color: #b91c1c;
  margin-top: 6px;
}

.mmdb-acc-header--locked {
  opacity: .55;
  cursor: not-allowed;
}

.mmdb-acc-header:disabled {
  cursor: not-allowed;
}

.mmdb-checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0 14px;
  font-size: 14px;
  font-weight: 400;
  color: #00114F;
}

  .mmdb-checkbox input {
    width: 16px;
    height: 16px;
    position: unset;
    accent-color: #00239C;
  }

button:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(20%);
}

.mmdb-icon-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mmdb-icon-check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.mmdb-info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #00239C;
  border-radius: 6px;
  background-color: #f4f9FC;
  color: #00239C;
  margin: 7px 0 7px 0;
}

.checkout-exclamation-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.mmdb-info-box-text {
  font-size: 14px;
  line-height: 1.5;
}

  .mmdb-info-box-text a {
    color: #00239C;
    text-decoration: underline;
    /*font-weight: 600;*/
  }

.mmdb-review-error {
  margin: 0 0 12px 0;
  color: #b00020;
  font-size: 13px;
  font-weight: 700;
}

.mmdb-review-section {
  margin-top: 16px;
}

.mmdb-review-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mmdb-review-title {
  font-size: 16px;
  color: #00114F;
  font-weight: 700;
  margin-bottom: 10px;
}

.mmdb-review-address-card {
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 4px;
  padding: 14px;
  background: #fff;
}

.mmdb-review-address-line {
  font-size: 14px;
  line-height: 1.45;
  color: #00114F;
}

.review-address-space {
  margin-top: 13px;
}

.mmdb-review-address-strong {
  font-weight: 800;
  color: #00114F;
}

.mmdb-input-error {
  border: 1px solid #d32f2f !important;
  background-color: #fff6f6;
}

  .mmdb-input-error:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.12);
  }

.mmdb-field-error {
  display: block;
  margin-top: 6px;
  color: #d32f2f;
  font-size: 12px;
  line-height: 1.3;
}

.mmdb-review-items {
  border-top: 1px solid rgba(0,0,0,.12);
}

.mmdb-review-item {
  display: grid;
  grid-template-columns: 70px 1fr 280px;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.mmdb-review-item-thumb img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.mmdb-review-item-name {
  display: inline-block;
  text-decoration: none;
  font-size: 16px;
  color: #00239C;
}

  .mmdb-review-item-name:hover {
    text-decoration: underline;
  }

.mmdb-review-item-meta {
  font-size: 12px;
  margin-top: 2px;
  text-decoration: none;
  font-size: 16px;
  color: #00239C;
}

.mmdb-review-item-actions {
  display: grid;
  grid-template-columns: 120px 1fr 80px;
  align-items: center;
  gap: 12px;
}

.mmdb-review-qty {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0,0,0,.04);
}

.mmdb-review-qty-btn {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: #00239C;
}

  .mmdb-review-qty-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
  }

.mmdb-review-qty-value {
  width: 44px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00239C;
  background: white;
}

.mmdb-review-item-price {
  font-weight: 800;
  color: #00239C;
  font-size: 14px;
}

.mmdb-review-item-remove {
  border: 0;
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  color: #00239C;
}

  .mmdb-review-item-remove:disabled {
    opacity: .6;
    cursor: not-allowed;
  }

.mmdb-review-discount-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #00114F;
  font-weight: 100;
}

.mmdb-review-discount-chevron {
  transition: transform .2s ease;
}

  .mmdb-review-discount-chevron.is-open {
    transform: rotate(180deg);
  }

.mmdb-review-discount-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mmdb-review-discount-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.mmdb-review-discount-input {
  flex: 1;
  min-width: 0;
  height: 40px !important;
  padding: 0 12px !important;
  border: 1px solid #bfc4ce !important;
  border-radius: 4px !important;
  font-size: 16px;
  color: #001b71;
  background: #fff;
}

  .mmdb-review-discount-input::placeholder {
    color: #666;
  }

.mmdb-review-discount-remove {
  width: 24px;
  height: 24px;
  margin-left: -34px;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}

  .mmdb-review-discount-remove:disabled {
    opacity: 0.5;
    cursor: default!important;
  }

.mmdb-review-discount-input::placeholder {
  color: #9aa0a6 !important;
  opacity: 1;
}

.mmdb-review-discount-input::-webkit-input-placeholder {
  color: #9aa0a6 !important;
}

.mmdb-review-discount-input::-moz-placeholder {
  color: #9aa0a6 !important;
}

.mmdb-review-discount-input:-ms-input-placeholder {
  color: #9aa0a6 !important;
}

.mmdb-review-discount-btn {
  min-width: 97px;
  height: 40px;
  border: 1px solid #173caa;
  border-radius: 4px;
  background: #fff;
  color: var(--cb-blue-primary);
  font-weight: 400;
  cursor: pointer!important;
}

  .mmdb-review-discount-btn:disabled {
    opacity: inherit;
    cursor: default;
  }

.mmdb-success {
  margin-top: 10px;
  font-size: 15px;
}

.mmdb-error {
  margin-top: 10px;
  font-size: 15px;
  color: #c62828;
}

.mmdb-review-totals {
  margin-top: 14px;
  border-top: 1px solid rgba(0,0,0,.12);
  padding-top: 12px;
}

.mmdb-review-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: black;
}

.mmdb-review-total-value-price {
  font-weight: 900;
}

.mmdb-review-total-row-strong {
  font-size: 14px;
  margin-top: 6px;
}

.mmdb-review-continue {
  margin-top: 14px;
}

.mmdb-review-continue-btn {
  width: 100%;
  height: 46px;
  border-radius: 4px;
  border: 0;
  background: #0b2aa1;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

  .mmdb-review-continue-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
  }

@media (max-width: 900px) {
  .mmdb-review-grid-2 {
    grid-template-columns: 1fr;
  }

  .mmdb-review-item {
    grid-template-columns: 40px 1fr;
  }

  .mmdb-review-item-actions {
    /*grid-template-columns: 1fr;
    justify-items: start;
    margin-top: 10px;*/
  }

  .mmdb-subscribe-pill__btn {
    width: 100%;
  }
}

.mmdb-donation {
  margin-top: 12px;
}

.mmdb-donation-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.mmdb-donation-checkbox {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  position: unset !important;
  accent-color: #00239C;
}

.mmdb-donation-text {
  flex: 1 1 auto;
  min-width: 0;
}

.mmdb-donation-title {
  color: #333;
  font-size: 14px;
  display: inline-block;
}

.mmdb-donation-amount {
  /*font-weight: 600;*/
  color: #333;
  flex: 0 0 auto;
  font-size: 14px;
}

.mmdb-subscribe-pill {
  margin-top: 10px;
}

.mmdb-subscribe-pill__btn {
  width: 75%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fbefe2;
  color: #1e2a4a;
}

  .mmdb-subscribe-pill__btn:focus {
    outline: 2px solid rgba(30, 42, 74, 0.25);
    outline-offset: 2px;
  }

.mmdb-subscribe-pill__left,
.mmdb-subscribe-pill__right {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.mmdb-subscribe-pill__icon {
  width: 18px;
  height: 18px;
  display: block;
}

.mmdb-subscribe-pill__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mmdb-subscribe-pill__chevron {
  width: 14px;
  height: 14px;
  display: block;
  transform: rotate(0deg);
  transition: transform 120ms ease;
}

/*.mmdb-subscribe-pill__btn.is-open .mmdb-subscribe-pill__chevron {
  transform: rotate(180deg);
}*/

.mmdb-subscribe-pill__btn:hover {
  filter: brightness(0.98);
}

.address-title {
  font-size: 16px;
  color: #00114F;
  font-weight: 700;
}

.mmdb-pay-methods input[type="checkbox"] {
  position: unset !important;
  accent-color: #00239C;
  margin-top: 3px;
}

/*payment*/
.terms-checkbox {
  position: unset !important;
  accent-color: #00239C;
}

.mmdb-terms {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 14px;
  font-size: 14px;
  text-align: center;
  width: 100%;
}

  .mmdb-terms a {
    text-decoration: underline;
  }

.mmdb-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.mmdb-pay-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 14px 14px;
  cursor: pointer;
  background: #fff;
}

  .mmdb-pay-option.is-selected {
    border-color: #1f4fff;
    box-shadow: 0 0 0 1px #1f4fff inset;
    border-color: #00114F;
    background-color: #F4F9FC;
  }

  .mmdb-pay-option.is-selected .mmdb-pay-option__title,
  .mmdb-pay-option.is-selected .mmdb-pay-option__subtitle {
    color: #00114F;
  }

  .mmdb-pay-option input[type="radio"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
  }

.mmdb-pay-option__title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  color: #4b4b4b;
}

.mmdb-pay-option__subtitle {
  font-size: 14px;
  color: #444;
}

.mmdb-stripe {
  margin-top: 10px;
}

.mmdb-stripe-paymentinfo {
  margin-top: 6px;
}

.mmdb-submit-payment {
  width: 100%;
  margin-top: 14px;
}

  .mmdb-submit-payment:disabled,
  .mmdb-submit-payment[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
  }

.mmdb-stripe .stripe-payment-field.buttons {
  display: none !important;
}

.mmdb-gocardless .gocardless .gocardless-button {
  display: none !important;
}

.payment-wrapper {
  text-align: center;
}

.apply-for-financing-button {
  pointer-events: auto;
  cursor: pointer;
}

/*BOI hack*/
#boi-credit-card-submit {
  position: relative;
  display: inline-block;
  width: 300px;
  height: 43px;
}

  #boi-credit-card-submit::before {
    content: "Submit Payment & Place Order";
    position: absolute;
    inset: 0;
    background: var(--boi-overlay, grey);
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    font-family: sans-serif;
    border-radius: unset;
  }

  #boi-credit-card-submit > iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 0.01;
    border: 0 !important;
    z-index: 2;
    pointer-events: none;
    cursor: not-allowed;
  }

#loading-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: none;
  align-items: center;
  background-color: #000;
  z-index: 99; /* Don't go over 100, the BOI 3DS dialog is 100 */
  opacity: 0.5;
}

#loading-overlay-clear {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: none;
  align-items: center;
  /* background-color: #000; */
  z-index: 999;
  opacity: 0.5;
}

.loading-icon {
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #767676;
  border-radius: 25px;
  width: 25px;
  height: 25px;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  margin-left: -20px;
  top: 50%;
  margin-top: -20px;
  z-index: 4;
  -webkit-animation: spin 1s linear infinite;
  -moz-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}

.mmdb-terms-section,
.mmdb-terms-section-2 {
  display: flex;
  text-align: center;
}

.mmdb-terms-section-2 {
  margin-top: -20px;
}

.mmdb-gocardless-paymentinfo .payment-wrapper .gocardless {
  width: 100% !important;
}

  .mmdb-gocardless-paymentinfo .payment-wrapper .gocardless .gocardless-terms-accepted {
    accent-color: #00239C;
  }