/* MARTIVI checkout v85.0 — standalone page, no drawer or nested scroll */

html {
  box-sizing: border-box;
  min-height: 100%;
  background: #f6f8fa;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #f6f8fa;
  color: #172536;
  font-family: "BPG Square", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.mco-header {
  border-bottom: 1px solid #e2e7eb;
  background: #fff;
}

.mco-header-inner,
.mco-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.mco-header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.mco-brand {
  color: #142d49;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.02em;
  text-decoration: none;
}

.mco-header-back,
.mco-back,
.mco-small-link {
  color: #1558b0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.mco-header-back:hover,
.mco-header-back:focus-visible,
.mco-back:hover,
.mco-back:focus-visible,
.mco-small-link:hover,
.mco-small-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.mco-main {
  padding: 28px 0 70px;
}

.mco-back {
  display: inline-flex;
  margin-bottom: 17px;
}

.mco-intro {
  margin-bottom: 22px;
}

.mco-intro h1 {
  margin: 0 0 8px;
  color: #142d49;
  font-size: clamp(27px, 4vw, 39px);
  line-height: 1.15;
}

.mco-intro p {
  max-width: 720px;
  margin: 0;
  color: #64788e;
  font-size: 14px;
  line-height: 1.7;
}

.mco-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  align-items: start;
  gap: 20px;
}

.mco-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(20, 42, 70, .06);
}

.mco-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}

.mco-card h2 {
  margin: 0;
  color: #1c2f45;
  font-size: 21px;
  line-height: 1.25;
}

.mco-card-heading p {
  margin: 4px 0 0;
  color: #718298;
  font-size: 12px;
}

.mco-items {
  display: grid;
  gap: 11px;
}

.mco-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 13px;
  padding: 11px;
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  background: #fff;
}

.mco-item-image {
  display: flex;
  width: 84px;
  height: 96px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f4f7;
  color: #7890a7;
  font-size: 27px;
}

.mco-item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mco-item-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.mco-item-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
}

.mco-item-name {
  display: block;
  overflow: hidden;
  color: #1c2f45;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mco-item-name:hover,
.mco-item-name:focus-visible {
  color: #1558b0;
  text-decoration: underline;
  outline: none;
}

.mco-item-size {
  margin-top: 4px;
  color: #6a7d91;
  font-size: 13px;
}

.mco-item-price {
  margin-top: 4px;
  color: #172536;
  font-size: 15px;
  font-weight: 800;
}

.mco-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.mco-quantity {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  overflow: hidden;
  border: 1px solid #d8e1eb;
  border-radius: 7px;
  background: #f8fafc;
}

.mco-quantity button,
.mco-remove {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mco-quantity button {
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  color: #1558b0;
  font-size: 21px;
  line-height: 32px;
}

.mco-quantity button:hover,
.mco-quantity button:focus-visible {
  background: #eaf3ff;
  outline: none;
}

.mco-quantity span {
  display: inline-flex;
  min-width: 25px;
  align-items: center;
  justify-content: center;
  color: #172536;
  font-size: 14px;
  font-weight: 800;
}

.mco-remove {
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 6px;
  background: transparent;
  color: #b33b48;
  font-size: 12px;
  font-weight: 700;
}

.mco-remove:hover,
.mco-remove:focus-visible {
  background: #fff0f1;
  outline: none;
}

.mco-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e4eaf1;
  color: #34495f;
  font-size: 15px;
}

.mco-total strong {
  color: #172536;
  font-size: 22px;
}

.mco-form-card {
  position: sticky;
  top: 18px;
}

.mco-form-intro {
  margin: 8px 0 20px;
  color: #6b7d91;
  font-size: 13px;
  line-height: 1.65;
}

.mco-field {
  margin-bottom: 14px;
}

.mco-field label {
  display: block;
  margin-bottom: 6px;
  color: #42566d;
  font-size: 13px;
  font-weight: 700;
}

.mco-field input {
  display: block;
  width: 100%;
  height: 49px;
  min-height: 49px;
  padding: 0 13px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  background: #fff;
  color: #172536;
  font-size: 14px;
  line-height: 1.35;
  -webkit-appearance: none;
}

.mco-field input:hover {
  border-color: #999;
}

.mco-field input:focus {
  border-color: #1558b0;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, .13);
}

.mco-submit,
.mco-secondary-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mco-submit {
  height: 54px;
  margin-top: 4px;
  padding: 0 14px;
  border: 0;
  background: #109b00;
  color: #fff;
  cursor: pointer;
}

.mco-submit:hover,
.mco-submit:focus-visible {
  background: #0c8300;
  outline: none;
}

.mco-submit:disabled {
  cursor: wait;
  opacity: .58;
}

.mco-message {
  min-height: 20px;
  margin: 11px 0 0;
  color: #b33b48;
  font-size: 12px;
  line-height: 1.5;
}

.mco-success,
.mco-empty {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 15px;
  border-radius: 8px;
  background: #eef9ed;
  color: #245c20;
  font-size: 13px;
  line-height: 1.5;
}

.mco-success strong,
.mco-empty strong {
  font-size: 15px;
}

.mco-success .mco-secondary-button,
.mco-empty .mco-secondary-button {
  margin-top: 4px;
}

.mco-empty {
  background: #f4f7fa;
  color: #62758a;
}

.mco-secondary-button {
  min-height: 41px;
  padding: 9px 12px;
  border: 1px solid #cbdced;
  background: #fff;
  color: #1558b0;
  cursor: pointer;
  font-size: 13px;
}

.mco-secondary-button:hover,
.mco-secondary-button:focus-visible {
  border-color: #1f6feb;
  background: #f3f8ff;
  outline: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .mco-header-inner,
  .mco-main {
    width: min(100% - 24px, 620px);
  }

  .mco-header-inner {
    min-height: 64px;
  }

  .mco-main {
    padding-top: 20px;
  }

  .mco-layout {
    grid-template-columns: 1fr;
  }

  .mco-form-card {
    position: static;
  }
}

@media (max-width: 430px) {
  .mco-card {
    padding: 16px;
  }

  .mco-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .mco-item-image {
    width: 72px;
    height: 84px;
  }

  .mco-item-name {
    font-size: 14px;
  }

  .mco-header-back {
    font-size: 12px;
  }
}
