.mdp-pallet-quote,
.mdp-pallet-quote * {
  box-sizing: border-box;
}

.mdp-pallet-quote {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  place-items: center;
  padding: 14px;
  background: rgba(18, 29, 48, 0.7);
}

.mdp-pallet-quote.is-open {
  display: grid;
}

.mdp-pallet-quote [hidden] {
  display: none !important;
}

.mdp-pallet-quote__dialog {
  position: relative;
  width: min(570px, 100%);
  max-height: calc(100vh - 28px);
  overflow: hidden auto;
  padding: 22px 20px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  color: #172033;
  scrollbar-width: thin;
}

.mdp-pallet-quote__close {
  position: absolute;
  top: 8px;
  right: 11px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #526079;
  box-shadow: none;
  font-size: 31px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.mdp-pallet-quote__heading {
  margin-bottom: 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid #dfe5ef;
  text-align: left;
}

.mdp-pallet-quote__heading h3 {
  margin: 0 0 5px;
  color: #0f172a;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.15;
}

.mdp-pallet-quote__heading p {
  margin: 0 auto;
  color: #71809a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.mdp-pallet-quote__product {
  display: flex;
  gap: 0px;
  align-items: center;
  margin: 0 0 20px;
}

.mdp-pallet-quote__image {
  display: flex;
  flex: 0 0 44%;
  align-items: center;
  justify-content: center;
  min-height: 175px;
}

.mdp-pallet-quote__image img {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: contain;
}

.mdp-pallet-quote__meta {
  display: grid;
  flex: 1 1 auto;
  gap: 7px;
  min-width: 0;
  text-align: left;
}

.mdp-pallet-quote__meta > strong {
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.mdp-pallet-quote__code {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 7px;
  background: #f0f2f6;
  color: #758198;
  font-size: 13px;
}

.mdp-pallet-quote__price {
  color: #111827;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
}

.mdp-pallet-quote__price small {
  color: #667085;
  font-size: 14px;
  font-weight: 600;
}

.mdp-pallet-quote__facts {
  display: grid;
  gap: 5px;
  color: #596782;
  font-size: 14px;
}

.mdp-pallet-quote__facts > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.mdp-pallet-quote__facts strong {
  color: #4e5a73;
  font-weight: 800;
}

.mdp-pallet-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mdp-pallet-quote__form {
  display: block !important;
  width: 100% !important;
  margin: 0;
}

.mdp-pallet-quote__zip-fields {
  display: grid;
  gap: 10px;
}

.mdp-pallet-quote__zip-fields label {
  color: #172033;
  font-size: 15px;
  font-weight: 800;
}

.mdp-pallet-quote__zip-fields input,
.mdp-pallet-quote__zip-fields select {
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  border: 1px solid #b8c1cf;
  border-radius: 7px;
  background: #fff;
  color: #172033;
  box-shadow: none;
  font-size: 17px;
  font-weight: normal;
  cursor: pointer;
}

.mdp-pallet-quote__zip-fields input:focus,
.mdp-pallet-quote__zip-fields select:focus,
.mdp-pallet-state-dropdown__button:focus {
  border-color: #1681f4;
  outline: 2px solid rgba(22, 129, 244, 0.15);
}

.mdp-pallet-quote__zip-fields button[type="submit"],
.mdp-pallet-quote__buy,
.mdp-pallet-quote__add {
  width: 100%;
  min-height: 47px;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.mdp-pallet-quote__zip-fields button[type="submit"],
.mdp-pallet-quote__buy {
  margin-top: 15px;
  border: 1px solid #087bf2;
  background: linear-gradient(135deg, #087bf2, #0d6fe8);
  color: #fff;
}

.mdp-pallet-quote__zip-fields button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: wait;
}

.mdp-pallet-state-dropdown {
  position: relative;
  width: 100%;
}

.mdp-pallet-state-dropdown__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.mdp-pallet-state-dropdown__button {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 11px 46px 11px 14px;
  border: 1px solid #b8c1cf;
  border-radius: 7px;
  background: #fff;
  color: #172033;
  box-shadow: none;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: text;
}

.mdp-pallet-state-dropdown__button::placeholder {
  color: #71809a;
  opacity: 1;
}

.mdp-pallet-state-dropdown > .mdp-pallet-icon {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 15px;
  width: 19px;
  height: 19px;
  pointer-events: none;
  transition: transform 0.18s ease;
}

.mdp-pallet-state-dropdown.is-open > .mdp-pallet-icon {
  transform: rotate(180deg);
}

.mdp-pallet-state-dropdown__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + -7px);
  right: 0;
  left: 0;
  max-height: 260px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #d6deea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(25, 45, 80, 0.16);
  list-style: none;
}

.mdp-pallet-state-dropdown__menu[hidden] {
  display: none !important;
}

.mdp-pallet-state-dropdown__option {
  min-height: 32px;
  margin: 0;
  padding: 5px 12px;
  border-radius: 7px;
  color: #364152;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.mdp-pallet-state-dropdown__option:hover,
.mdp-pallet-state-dropdown__option:focus {
  outline: none;
  background: #eef5fd;
}

.mdp-pallet-state-dropdown__option.is-selected {
  background: #1478ed;
  color: #fff;
}

.mdp-pallet-state-dropdown__empty {
  margin: 0;
  padding: 12px;
  color: #71809a;
  font-size: 14px;
  text-align: center;
}

.mdp-pallet-quote__destination {
  display: flex !important;
  width: 100% !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  color: #24324a;
  font-size: 15px;
}

.mdp-pallet-quote__destination > span {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  text-align: left !important;
}

.mdp-pallet-quote__destination strong {
  font-weight: 800;
}

.mdp-pallet-quote__destination button {
  display: block !important;
  flex: 0 0 auto;
  width: auto;
  min-height: auto;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
  color: #087bf2;
  box-shadow: none;
  font-weight: 800;
  cursor: pointer;
}

.mdp-pallet-quote__message {
  margin-top: 10px;
  font-size: 13px;
}

.mdp-pallet-quote__message:empty {
  display: none;
}

.mdp-pallet-quote__message.is-error {
  padding: 9px 10px;
  border-radius: 7px;
  background: #fff0f0;
  color: #a12222;
}

.mdp-pallet-quote__rates {
  display: grid;
  gap: 9px;
}

.mdp-pallet-rate {
  overflow: hidden;
  border: 1px solid #d4deec;
  border-radius: 8px;
  background: #fff;
}

.mdp-pallet-rate.is-selected {
  border-color: #1681f4;
  background: #eef5fd;
  box-shadow: 0 0 0 1px rgba(22, 129, 244, 0.08);
}

.mdp-pallet-rate__choice {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 17px;
  align-items: start;
  margin: 0;
  padding: 12px 12px 3px;
  cursor: pointer;
}

.mdp-pallet-rate__choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mdp-pallet-rate__radio {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border: 2px solid #65749a;
  border-radius: 50%;
  background: #fff;
}

.mdp-pallet-rate__choice input:checked + .mdp-pallet-rate__radio {
  border: 7px solid #1681f4;
}

.mdp-pallet-rate__main {
  display: grid;
  gap: 2px;
}

.mdp-pallet-rate__main strong {
  color: #15203a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.mdp-pallet-rate__main small {
  color: #555a63;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
}

.mdp-pallet-rate__choice > b {
  color: #536181;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.mdp-pallet-rate__details-toggle {
  display: flex;
  align-items: center;
  gap: 3px;
  width: auto;
  min-height: auto;
  margin: 0 0 7px 53px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #087bf2;
  box-shadow: none;
  font-size: 12px;
  cursor: pointer;
}

.mdp-pallet-rate__details-toggle .mdp-pallet-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.16s ease;
}

.mdp-pallet-rate.is-expanded .mdp-pallet-rate__details-toggle .mdp-pallet-icon {
  transform: rotate(180deg);
}

.mdp-pallet-rate__details {
  margin: 0 12px 10px;
  padding-top: 8px;
  border-top: 1px solid #dbe3ef;
  text-align: left;
}

.mdp-pallet-rate__details ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mdp-pallet-rate__details li {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  color: #555a63;
  font-size: 13px;
  line-height: 1.28;
}

.mdp-pallet-rate__details li .mdp-pallet-icon {
  width: 17px;
  height: 17px;
  color: #555a63;
}

.mdp-pallet-rate__best {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 5px;
  background: #d5e7fe;
  color: #087bf2;
  font-size: 13px;
}

.mdp-pallet-rate__best strong {
  font-weight: 700;
}

.mdp-pallet-summary {
  margin-top: 15px;
}

.mdp-pallet-summary h4 {
  margin: 0 0 5px;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
}

.mdp-pallet-summary__rows {
  display: block !important;
  width: 100%;
  margin: 0;
}

.mdp-pallet-summary__row {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 0;
  padding: 3px 0;
  color: #344054;
  font-size: 15px;
}

.mdp-pallet-summary__row > span,
.mdp-pallet-summary__row > strong {
  display: block !important;
  position: static !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35;
}

.mdp-pallet-summary__row > span {
  flex: 1 1 auto;
  text-align: left !important;
}

.mdp-pallet-summary__row > strong {
  flex: 0 0 auto;
  color: inherit;
  font-weight: 500;
  text-align: right !important;
  white-space: nowrap;
}

.mdp-pallet-summary__total {
  margin-top: 4px;
  padding-top: 7px;
  border-top: 1px solid #dfe5ef;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
}

.mdp-pallet-summary__total > strong {
  font-weight: 800;
}

.mdp-pallet-summary p {
  margin: 2px 0 0;
  color: #7d89a4;
  font-size: 13px;
  text-align: left;
}

.mdp-pallet-quote__actions {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.mdp-pallet-quote__add {
  border: 1px solid #087bf2;
  background: #fff;
  color: #087bf2;
}

.mdp-pallet-quote__final {
  margin: 5px 0 0;
  color: #8791a7;
  font-size: 12px;
  text-align: center;
}

.mdp-pallet-quote.has-rates .mdp-pallet-quote__dialog {
  padding-top: 16px;
}

.mdp-pallet-quote.has-rates .mdp-pallet-quote__heading {
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.mdp-pallet-quote.has-rates .mdp-pallet-quote__heading h3 {
  font-size: 23px;
}

.mdp-pallet-quote.has-rates .mdp-pallet-quote__heading p {
  font-size: 12px;
}

.mdp-pallet-quote.has-rates .mdp-pallet-quote__product {
  margin-bottom: 12px;
}

.mdp-pallet-quote.has-rates .mdp-pallet-quote__image {
  min-height: 142px;
}

.mdp-pallet-quote.has-rates .mdp-pallet-quote__image img {
  max-height: 150px;
}

.mdp-pallet-cart-freight strong {
  color: #173d80;
}

@media (max-width: 520px) {
  .mdp-pallet-quote {
    padding: 8px;
    overflow: hidden;
  }

  .mdp-pallet-quote__dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 14px 12px;
    border-radius: 14px;
  }

  .mdp-pallet-quote__close {
    top: 6px;
    right: 8px;
  }

  .mdp-pallet-quote__heading h3 {
    font-size: 22px;
  }

  .mdp-pallet-quote__heading p {
    font-size: 13px;
  }

  .mdp-pallet-quote__product,
  .mdp-pallet-quote.has-rates .mdp-pallet-quote__product {
    margin-bottom: 0px;
    text-align: left;
  }

  .mdp-pallet-quote__image,
  .mdp-pallet-quote.has-rates .mdp-pallet-quote__image {
    width: 100%;
    min-height: 0;
  }

  .mdp-pallet-quote__image img,
  .mdp-pallet-quote.has-rates .mdp-pallet-quote__image img {
    max-height: 120px;
  }

  .mdp-pallet-quote__meta {
    gap: 5px;
  }

  .mdp-pallet-quote__meta > strong {
    font-size: 14px;
  }

  .mdp-pallet-quote__code {
    padding: 3px 7px;
    font-size: 12px;
  }

  .mdp-pallet-quote__price {
    font-size: 18px;
  }

  .mdp-pallet-quote__facts {
    gap: 4px;
    font-size: 12.5px;
  }

  .mdp-pallet-quote__facts > div {
    align-items: flex-start;
    gap: 6px;
  }

  .mdp-pallet-quote__facts > div > span {
    min-width: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .mdp-pallet-quote__facts .mdp-pallet-icon {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  .mdp-pallet-quote__zip-fields {
    gap: 8px;
  }

  .mdp-pallet-quote__zip-fields label {
    display: block;
    font-size: 14px;
    text-align: left;
  }

  .mdp-pallet-quote__zip-fields input,
  .mdp-pallet-quote__zip-fields select,
  .mdp-pallet-state-dropdown__button,
  .mdp-pallet-quote__zip-fields button[type="submit"] {
    min-height: 48px;
    font-size: 16px;
  }

  .mdp-pallet-quote__zip-fields button[type="submit"] {
    margin-top: 8px;
  }

  .mdp-pallet-rate__choice {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 18px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .mdp-pallet-rate__radio {
    width: 22px;
    height: 22px;
  }

  .mdp-pallet-rate__details-toggle {
    margin-left: 50px;
  }
}

.mdp-pallet-order-card {
  max-width: 760px;
  margin: 24px auto;
  padding: 24px;
  border: 1px solid #dfe6f2;
  border-radius: 18px;
  background: #fff;
  color: #172033;
  box-shadow: 0 16px 38px rgba(18, 48, 92, 0.08);
}

.mdp-pallet-order-card__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.mdp-pallet-order-card__header span {
  color: #6b7689;
  font-size: 13px;
}

.mdp-pallet-order-card__header h2 {
  margin: 4px 0 0;
}

.mdp-pallet-order-card__header > strong {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf5ee;
  color: #28633c;
  font-size: 12px;
}

.mdp-pallet-order-card__product {
  display: flex;
  gap: 14px;
  margin: 20px 0;
  padding: 14px;
  border-radius: 12px;
  background: #f7f9fd;
}

.mdp-pallet-order-card__product img {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
}

.mdp-pallet-order-card__product div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mdp-pallet-order-card__product span {
  color: #637086;
  font-size: 14px;
}

.mdp-pallet-order-card dl {
  margin: 0;
}

.mdp-pallet-order-card dl > div {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f7;
}

.mdp-pallet-order-card dl > div.is-total {
  border: 0;
  font-size: 18px;
  font-weight: 800;
}

.mdp-pallet-order-card dd {
  margin: 0;
}

.mdp-pallet-order-card__note {
  margin: 14px 0 0;
  padding: 12px;
  border-radius: 10px;
  background: #eef5ff;
  color: #31527f;
}

.mdp-pallet-transfer-open {
  width: 100%;
  margin-top: 16px;
  padding: 13px 18px;
  border: 0;
  border-radius: 9px;
  background: #0878f9;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

body.mdp-pallet-transfer-opened {
  overflow: hidden;
}

.mdp-pallet-transfer-modal,
.mdp-pallet-transfer-modal * {
  box-sizing: border-box;
}

.mdp-pallet-transfer-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(18, 29, 48, 0.72);
}

.mdp-pallet-transfer-modal.is-open {
  display: grid;
}

.mdp-pallet-transfer-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 25px;
  border-radius: 16px;
  background: #fff;
  color: #172033;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.mdp-pallet-transfer-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #526079;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.mdp-pallet-transfer-modal header {
  padding-right: 30px;
}

.mdp-pallet-transfer-modal header > span {
  color: #146eef;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
}

.mdp-pallet-transfer-modal header h2 {
  margin: 5px 0;
  font-size: 25px;
}

.mdp-pallet-transfer-modal header p,
.mdp-pallet-transfer-form > p {
  margin: 0;
  color: #6b7689;
  font-size: 13px;
}

.mdp-pallet-transfer-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 18px 0;
  padding: 12px;
  border-radius: 10px;
  background: #fff5df;
  color: #755114;
  text-align: left;
}

.mdp-pallet-transfer-state > strong {
  margin-right: auto;
  text-align: left;
}

.mdp-pallet-transfer-state > span {
  margin-left: auto;
  text-align: right;
}

.mdp-pallet-transfer-state.is-review {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
  background: #eaf5ff;
  color: #24537f;
}

.mdp-pallet-transfer-state.is-review > span {
  margin-left: 0;
  text-align: left;
}

.mdp-pallet-transfer-state [data-mdp-transfer-countdown] {
  font-size: 20px;
  font-weight: 800;
}

.mdp-pallet-transfer-amounts {
  margin: 0;
}

.mdp-pallet-transfer-amounts > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid #e8edf4;
}

.mdp-pallet-transfer-amounts dt,
.mdp-pallet-transfer-amounts dd {
  flex: 1 1 50%;
  min-width: 0;
}

.mdp-pallet-transfer-amounts dt {
  margin: 0;
  text-align: left;
}

.mdp-pallet-transfer-amounts .is-total {
  color: #0a5ec8;
  font-size: 18px;
  font-weight: 800;
}

.mdp-pallet-transfer-amounts dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.mdp-pallet-transfer-evidence {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  padding: 11px;
  border-radius: 9px;
  background: #eef8f1;
  font-size: 13px;
}

.mdp-pallet-transfer-evidence--summary {
  margin-top: 0;
}

.mdp-pallet-transfer-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mdp-pallet-transfer-form label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
}

.mdp-pallet-transfer-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #bcc7d8;
  border-radius: 8px;
  background: #fff;
  color: #172033;
}

.mdp-pallet-transfer-form button {
  padding: 13px;
  border: 0;
  border-radius: 9px;
  background: #0878f9;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.mdp-pallet-transfer-form button:disabled {
  cursor: wait;
  opacity: .65;
}

.mdp-pallet-transfer-form__message {
  min-height: 20px;
  font-size: 13px;
  font-weight: 700;
}

.mdp-pallet-transfer-form__message.is-error {
  color: #b42318;
}

.mdp-pallet-transfer-form__message.is-success {
  color: #237a3b;
}

@media (max-width: 600px) {
  .mdp-pallet-transfer-modal__dialog {
    padding: 22px 17px;
  }

  .mdp-pallet-transfer-amounts > div {
    align-items: flex-start;
  }
}
