/* ==========================================================================
   Milkyshisha 2.0 — cart and one-page checkout UI
   Presentation only. Brand palette, OpenCart form names and AJAX endpoints
   are preserved. No third-party assets are loaded.
   ========================================================================== */

.ms-cart-page,
.ms-co-page {
  --msc-green: #00c87c;
  --msc-green-dark: #00a866;
  --msc-green-soft: #e9fbf3;
  --msc-red: #df1404;
  --msc-ink: #171b21;
  --msc-text: #2b3038;
  --msc-muted: #6f7782;
  --msc-line: #e4e8ec;
  --msc-surface: #ffffff;
  --msc-canvas: #f4f7f9;
  --msc-radius: 18px;
  --msc-shadow: 0 16px 38px -28px rgba(20, 30, 40, .38);
  padding-top: 18px;
  padding-bottom: 48px;
  color: var(--msc-text);
}

.ms-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.ms-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #aab1b9;
  margin-right: 6px;
}

.ms-breadcrumb a {
  color: var(--msc-muted);
  text-decoration: none;
}

.ms-breadcrumb a:hover {
  color: var(--msc-green-dark);
}

/* --------------------------------------------------------------------------
   Shared controls
   -------------------------------------------------------------------------- */

.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.ms-btn--primary,
.ms-btn--primary:visited {
  background: var(--msc-green);
  border-color: var(--msc-green);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(0, 200, 124, .8);
}

.ms-btn--primary:hover,
.ms-btn--primary:focus {
  background: var(--msc-green-dark);
  border-color: var(--msc-green-dark);
  color: #fff;
}

.ms-btn--primary:disabled,
.ms-btn--primary.disabled {
  background: #c8d2cf;
  border-color: #c8d2cf;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

.ms-btn--ghost,
.ms-btn--ghost:visited {
  background: #fff;
  border-color: var(--msc-line);
  color: var(--msc-text);
}

.ms-btn--ghost:hover,
.ms-btn--ghost:focus {
  border-color: var(--msc-green);
  color: var(--msc-green-dark);
}

.ms-cart-page .form-control,
.ms-co-page .form-control,
.ms-cart-page .form-select,
.ms-co-page .form-select {
  min-height: 48px;
  border: 1px solid #dce2e8;
  border-radius: 11px;
  background-color: #fff;
  color: var(--msc-text);
  box-shadow: none;
}

.ms-cart-page textarea.form-control,
.ms-co-page textarea.form-control {
  min-height: 120px;
  padding-top: 12px;
}

.ms-cart-page .form-control:focus,
.ms-co-page .form-control:focus,
.ms-cart-page .form-select:focus,
.ms-co-page .form-select:focus {
  border-color: var(--msc-green);
  box-shadow: 0 0 0 3px rgba(0, 200, 124, .16);
}

.ms-cart-page .form-label,
.ms-co-page .form-label {
  margin-bottom: 7px;
  color: #3b4450;
  font-size: 13px;
  font-weight: 600;
}

.ms-cart-page .required > label::after,
.ms-co-page .required > label::after,
.ms-co-page .required > .form-label::after {
  content: " *";
  color: var(--msc-red);
}

/* --------------------------------------------------------------------------
   Cart
   -------------------------------------------------------------------------- */

.ms-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.ms-cart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.ms-cart-heading h1 {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--msc-ink);
}

.ms-cart-heading__weight {
  display: inline-block;
  vertical-align: middle;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef1f4;
  color: var(--msc-muted);
  font-size: 12px;
  font-weight: 600;
}

.ms-cart-heading__count {
  margin: 0;
  color: var(--msc-muted);
  font-size: 14px;
}

.ms-cart-heading__continue {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--msc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--msc-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.ms-cart-heading__continue:hover {
  border-color: var(--msc-green);
  color: var(--msc-green-dark);
}

.ms-cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ms-cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 180px 120px;
  grid-template-areas: "media body controls total";
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--msc-line);
  border-radius: 16px;
  background: var(--msc-surface);
  box-shadow: 0 1px 0 rgba(20, 30, 40, .03);
}

.ms-cart-item__media {
  grid-area: media;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border: 1px solid #edf0f3;
  border-radius: 13px;
  background: #fbfcfd;
}

.ms-cart-item__media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ms-cart-item__noimage {
  color: #c2c9d1;
  font-size: 28px;
}

.ms-cart-item__body {
  grid-area: body;
  min-width: 0;
}

.ms-cart-item__title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.ms-cart-item__title a,
.ms-cart-item__title a:visited {
  color: var(--msc-ink);
  text-decoration: none;
}

.ms-cart-item__title a:hover {
  color: var(--msc-green-dark);
}

.ms-cart-item__meta,
.ms-cart-item__options {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  color: var(--msc-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.ms-cart-item__options span {
  color: #59616b;
  font-weight: 600;
}

.ms-cart-item__unit {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  color: var(--msc-muted);
  font-size: 12px;
}

.ms-cart-item__unit strong {
  color: var(--msc-text);
  font-size: 14px;
}

.ms-cart-item__controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ms-qty {
  display: inline-flex;
  align-items: stretch;
  height: 42px;
  overflow: hidden;
  border: 1px solid #d9e0e6;
  border-radius: 10px;
  background: #fff;
}

.ms-qty__btn {
  width: 36px;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--msc-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.ms-qty__btn:hover,
.ms-qty__btn:focus {
  background: var(--msc-green-soft);
  color: var(--msc-green-dark);
}

.ms-qty__btn:disabled {
  color: #b9c1c9;
  cursor: wait;
}

.ms-qty__input {
  width: 48px;
  padding: 0;
  border: 0;
  border-left: 1px solid #e7ebef;
  border-right: 1px solid #e7ebef;
  background: #fff;
  color: var(--msc-ink);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}

.ms-qty__input::-webkit-outer-spin-button,
.ms-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ms-cart-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 42px;
  border: 1px solid #f0d9d6;
  border-radius: 10px;
  background: #fff7f6;
  color: var(--msc-red);
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.ms-cart-item__remove:hover,
.ms-cart-item__remove:focus {
  background: var(--msc-red);
  border-color: var(--msc-red);
  color: #fff;
}

.ms-cart-item__total {
  grid-area: total;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.ms-cart-item__total span {
  color: var(--msc-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ms-cart-item__total strong {
  color: var(--msc-ink);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.ms-cart-item__error {
  flex-basis: 100%;
  color: var(--msc-red);
  text-align: right;
}

.ms-cart-item.is-busy {
  opacity: .62;
  pointer-events: none;
}

.ms-cart-aside {
  position: sticky;
  top: 18px;
  align-self: start;
}

.ms-summary {
  padding: 22px;
  border: 1px solid var(--msc-line);
  border-radius: var(--msc-radius);
  background: var(--msc-surface);
  box-shadow: var(--msc-shadow);
}

.ms-summary__title {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--msc-line);
  font-size: 20px;
  font-weight: 800;
  color: var(--msc-ink);
}

.ms-summary__totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.ms-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: var(--msc-muted);
  font-size: 13.5px;
}

.ms-summary__row strong {
  color: var(--msc-text);
  font-weight: 700;
  white-space: nowrap;
}

.ms-summary__row--grand {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed #dfe4e9;
  color: var(--msc-ink);
  font-size: 16px;
}

.ms-summary__row--grand strong {
  color: var(--msc-ink);
  font-size: 22px;
  font-weight: 800;
}

.ms-summary__checkout {
  width: 100%;
}

.ms-summary__link {
  display: block;
  margin-top: 12px;
  color: var(--msc-muted);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

.ms-summary__link:hover {
  color: var(--msc-green-dark);
}

.ms-summary__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 16px 0 0;
  color: #8a929b;
  font-size: 11.5px;
  text-align: center;
}

.ms-cart-extras {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--msc-line);
  border-radius: var(--msc-radius);
  background: #fff;
}

.ms-cart-extras h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--msc-ink);
}

.ms-cart-extras > p {
  margin: 0 0 12px;
  color: var(--msc-muted);
  font-size: 13px;
}

.ms-cart-extras .accordion-item {
  border-color: var(--msc-line);
}

.ms-cart-extras .accordion-button {
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.ms-cart-extras .accordion-button:not(.collapsed) {
  background: var(--msc-green-soft);
  color: var(--msc-green-dark);
}

.ms-empty {
  max-width: 560px;
  margin: 40px auto;
  padding: 44px 24px;
  border: 1px solid var(--msc-line);
  border-radius: var(--msc-radius);
  background: #fff;
  text-align: center;
}

.ms-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--msc-green-soft);
  color: var(--msc-green-dark);
  font-size: 30px;
}

.ms-empty h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
}

.ms-empty p {
  margin: 0 0 20px;
  color: var(--msc-muted);
}

/* --------------------------------------------------------------------------
   Checkout — page head
   -------------------------------------------------------------------------- */

.ms-co-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.ms-co-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--msc-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.ms-co-back:hover {
  color: var(--msc-green-dark);
}

.ms-co-head h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 800;
  color: var(--msc-ink);
}

.ms-co-intro {
  max-width: 620px;
  margin: 0;
  color: var(--msc-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ms-co-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-co-steps li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--msc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--msc-muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.ms-co-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eef1f4;
  color: #6f7782;
  font-size: 11px;
  font-weight: 800;
}

.ms-co-steps li.is-active {
  border-color: var(--msc-green);
  background: var(--msc-green-soft);
  color: var(--msc-green-dark);
}

.ms-co-steps li.is-active span {
  background: var(--msc-green);
  color: #fff;
}

.ms-co-notice {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #f2dfb8;
  border-radius: 13px;
  background: #fffaf0;
  color: #6b5320;
  font-size: 13px;
  line-height: 1.55;
}

.ms-co-notice i {
  margin-top: 2px;
  color: #b78116;
}

/* --------------------------------------------------------------------------
   Checkout — grid and cards
   -------------------------------------------------------------------------- */

.ms-co-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
}

.ms-co-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.ms-co-aside {
  position: sticky;
  top: 18px;
  align-self: start;
  min-width: 0;
}

.ms-co-section,
.ms-co-summary {
  border: 1px solid var(--msc-line);
  border-radius: var(--msc-radius);
  background: var(--msc-surface);
  box-shadow: 0 1px 0 rgba(20, 30, 40, .03);
}

.ms-co-section {
  padding: 24px;
}

.ms-co-section__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.ms-co-section__head h2 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 800;
  color: var(--msc-ink);
}

.ms-co-section__head p {
  margin: 0;
  color: var(--msc-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ms-co-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--msc-green-soft);
  color: var(--msc-green-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.ms-co-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.ms-co-fieldset > legend {
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--msc-ink);
}

.ms-co-fieldset + .ms-co-fieldset {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #edf0f3;
}

.ms-co-fieldset .row > [class*="col"] {
  min-width: 0;
}

.ms-co-section .form-check-input {
  border-color: #cfd7df;
}

.ms-co-section .form-check-input:checked {
  background-color: var(--msc-green);
  border-color: var(--msc-green);
}

.ms-co-section .form-check-input:focus {
  border-color: var(--msc-green);
  box-shadow: 0 0 0 3px rgba(0, 200, 124, .16);
}

#form-register > #button-register,
#button-register {
  min-height: 48px;
  margin-top: 8px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  background: var(--msc-green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px -14px rgba(0, 200, 124, .8);
}

#form-register > #button-register:hover,
#button-register:hover {
  background: var(--msc-green-dark);
}

.ms-co-password {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #edf0f3;
}

/* Account radio switch */
.ms-co-fieldset--contact .form-check-inline {
  margin-right: 18px;
}

.ms-co-fieldset--contact .form-check-label {
  font-weight: 600;
}

/* Logged-in compact account card */
.ms-co-account .ms-co-section__head {
  margin-bottom: 0;
}

.ms-co-account__actions {
  display: flex;
  gap: 14px;
  margin-left: auto;
  font-size: 12.5px;
}

.ms-co-account__actions a {
  color: var(--msc-green-dark);
  text-decoration: none;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Checkout — shipping and payment blocks
   -------------------------------------------------------------------------- */

.ms-co-block {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.ms-co-block__legend {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--msc-ink);
}

.ms-co-block__hint {
  margin: 0 0 14px;
  color: var(--msc-muted);
  font-size: 13px;
}

.ms-co-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ms-co-option {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.ms-co-option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ms-co-option__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 13px 16px 13px 46px;
  border: 1px solid #dde3e9;
  border-radius: 13px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.ms-co-option__body::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid #c7d0d9;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.ms-co-option__input:checked + .ms-co-option__body {
  border-color: var(--msc-green);
  background: #f3fdf8;
  box-shadow: 0 0 0 3px rgba(0, 200, 124, .12);
}

.ms-co-option__input:checked + .ms-co-option__body::before {
  border-color: var(--msc-green);
  background: radial-gradient(circle at center, var(--msc-green) 0 5px, #fff 6px 100%);
}

.ms-co-option__input:focus-visible + .ms-co-option__body {
  outline: 2px solid var(--msc-green-dark);
  outline-offset: 2px;
}

.ms-co-option__name {
  color: var(--msc-ink);
  font-size: 14.5px;
  font-weight: 700;
}

.ms-co-option__price {
  color: var(--msc-ink);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.ms-co-option__note {
  color: var(--msc-muted);
  font-size: 12px;
}

.ms-co-waiting {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid #e1e6eb;
  border-radius: 13px;
  background: #f8fafb;
  color: var(--msc-muted);
  font-size: 13px;
  line-height: 1.55;
}

.ms-co-waiting i {
  flex: none;
  margin-top: 2px;
  color: #8a929b;
  font-size: 18px;
}

.ms-co-waiting strong {
  display: block;
  margin-bottom: 3px;
  color: var(--msc-text);
  font-size: 13.5px;
}

.ms-co-waiting p {
  margin: 0;
}

.ms-co-waiting p + p {
  margin-top: 6px;
}

.ms-co-waiting--warning {
  border-color: #f0dfbc;
  background: #fffaf1;
  color: #6f5a2b;
}

.ms-co-waiting--warning i {
  color: #b78116;
}

.ms-co-waiting--error {
  border-color: #f0cfcb;
  background: #fff7f6;
  color: #8b3c34;
}

.ms-co-waiting--error i {
  color: var(--msc-red);
}

.ms-co-payment-info {
  display: flex;
  gap: 13px;
  margin-bottom: 16px;
  padding: 15px 16px;
  border: 1px solid #d8f0e6;
  border-radius: 13px;
  background: #f4fcf8;
}

.ms-co-payment-info__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  color: var(--msc-green-dark);
  box-shadow: 0 1px 0 rgba(20, 30, 40, .04);
}

.ms-co-payment-info h3 {
  margin: 1px 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--msc-ink);
}

.ms-co-payment-info p {
  margin: 0;
  color: #5d6a63;
  font-size: 12.5px;
  line-height: 1.55;
}

.ms-co-comment {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #edf0f3;
}

.ms-co-comment .form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.ms-co-comment__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
  color: #9aa2ab;
  font-size: 11px;
}

.ms-co-extra {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px dashed #dbe1e7;
  border-radius: 13px;
  background: #fbfcfd;
}

.ms-co-extra h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 800;
  color: var(--msc-text);
}

.ms-co-extra h3 i {
  color: var(--msc-green-dark);
}

.ms-co-extra__empty {
  margin: 0;
  color: var(--msc-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.ms-co-agree {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--msc-line);
  border-radius: 12px;
  background: #fbfcfd;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Checkout — summary
   -------------------------------------------------------------------------- */

.ms-co-summary {
  padding: 22px;
  box-shadow: var(--msc-shadow);
}

.ms-co-summary__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--msc-line);
}

.ms-co-summary__head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--msc-ink);
}

.ms-co-summary__head span {
  color: var(--msc-muted);
  font-size: 12px;
  white-space: nowrap;
}

.ms-co-summary__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--msc-line);
}

.ms-co-summary__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.ms-co-summary__item-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.ms-co-summary__qty {
  flex: none;
  color: var(--msc-muted);
  font-weight: 700;
}

.ms-co-summary__name {
  min-width: 0;
  color: var(--msc-text);
}

.ms-co-summary__name a {
  color: var(--msc-text);
  text-decoration: none;
}

.ms-co-summary__name a:hover {
  color: var(--msc-green-dark);
}

.ms-co-summary__name small {
  display: block;
  margin-top: 2px;
  color: var(--msc-muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.ms-co-summary__item-total {
  flex: none;
  color: var(--msc-text);
  font-weight: 700;
  white-space: nowrap;
}

.ms-co-summary__totals {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 0 18px;
}

.ms-co-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--msc-muted);
  font-size: 13px;
}

.ms-co-summary__row strong {
  color: var(--msc-text);
  font-weight: 700;
  white-space: nowrap;
}

.ms-co-summary__row--grand {
  margin-top: 2px;
  padding-top: 11px;
  border-top: 1px dashed #dfe4e9;
  color: var(--msc-ink);
  font-size: 15px;
}

.ms-co-summary__row--grand strong {
  color: var(--msc-ink);
  font-size: 22px;
  font-weight: 800;
}

.ms-co-summary__note {
  display: flex;
  gap: 7px;
  margin: 14px 0 0;
  color: #969ea7;
  font-size: 11px;
  line-height: 1.45;
}

.ms-co-summary__note i {
  margin-top: 2px;
}

.ms-co-summary .text-end {
  text-align: left !important;
}

.ms-co-summary #button-confirm {
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  border: 0;
  border-radius: 12px;
  background: var(--msc-green);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 26px -14px rgba(0, 200, 124, .85);
}

.ms-co-summary #button-confirm:hover,
.ms-co-summary #button-confirm:focus {
  background: var(--msc-green-dark);
}

.ms-co-confirm {
  width: 100%;
  min-height: 52px;
}

.ms-co-summary__maintenance,
.ms-co-summary__payment-waiting {
  margin-bottom: 12px;
}

.ms-co-help {
  display: flex;
  gap: 13px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--msc-line);
  border-radius: 16px;
  background: #fff;
}

.ms-co-help__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--msc-green-soft);
  color: var(--msc-green-dark);
  font-size: 17px;
}

.ms-co-help strong {
  display: block;
  margin-bottom: 3px;
  color: var(--msc-ink);
  font-size: 13.5px;
}

.ms-co-help p {
  margin: 0 0 7px;
  color: var(--msc-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ms-co-help a {
  color: var(--msc-green-dark);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.ms-co-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 0;
  color: #969ea7;
  font-size: 11.5px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
  .ms-cart-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .ms-cart-item {
    grid-template-columns: 96px minmax(0, 1fr) 176px 105px;
    gap: 14px;
  }

  .ms-cart-item__media {
    width: 96px;
    height: 96px;
  }

  .ms-co-grid {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
}

@media (max-width: 991.98px) {
  .ms-cart-layout,
  .ms-co-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ms-cart-aside,
  .ms-co-aside {
    position: static;
  }

  .ms-co-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .ms-co-grid {
    gap: 18px;
  }

  .ms-co-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ms-co-steps {
    width: 100%;
  }

  .ms-cart-item {
    grid-template-columns: 96px minmax(0, 1fr) 176px;
    grid-template-areas:
      "media body controls"
      "media body total";
    align-items: start;
  }

  .ms-cart-item__total {
    align-items: flex-end;
  }

  .ms-cart-item__controls {
    justify-content: flex-end;
  }
}

@media (max-width: 767.98px) {
  .ms-cart-page,
  .ms-co-page {
    padding-top: 10px;
    padding-bottom: 32px;
  }

  .ms-cart-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .ms-cart-heading h1,
  .ms-co-head h1 {
    font-size: 26px;
  }

  .ms-cart-item {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas:
      "media body"
      "controls controls"
      "total total";
    gap: 12px;
    padding: 14px;
  }

  .ms-cart-item__media {
    width: 84px;
    height: 84px;
  }

  .ms-cart-item__controls {
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid #eef1f4;
  }

  .ms-cart-item__total {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 2px;
  }

  .ms-cart-item__total strong {
    font-size: 18px;
  }

  .ms-co-section,
  .ms-co-summary {
    padding: 18px;
    border-radius: 15px;
  }

  .ms-co-section__head h2,
  .ms-co-block__legend {
    font-size: 19px;
  }

  .ms-co-option__body {
    padding: 12px 14px 12px 42px;
  }

  .ms-co-option__body::before {
    left: 14px;
  }

  .ms-co-steps li {
    padding: 7px 10px;
    font-size: 11.5px;
  }

  .ms-co-steps li span {
    width: 18px;
    height: 18px;
  }

  .ms-co-account__actions {
    flex-direction: column;
    gap: 6px;
    margin-left: 0;
    padding-left: 48px;
  }

  .ms-co-account .ms-co-section__head {
    flex-wrap: wrap;
  }
}

@media (max-width: 575.98px) {
  .ms-cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .ms-cart-item__media {
    width: 72px;
    height: 72px;
    border-radius: 11px;
  }

  .ms-cart-item__title {
    font-size: 14.5px;
  }

  .ms-qty {
    height: 40px;
  }

  .ms-qty__btn {
    width: 36px;
  }

  .ms-qty__input {
    width: 42px;
  }

  .ms-cart-item__remove {
    width: 40px;
    height: 40px;
  }

  .ms-co-head h1 {
    font-size: 24px;
  }

  .ms-co-intro {
    font-size: 13px;
  }

  .ms-co-steps {
    gap: 6px;
  }

  .ms-co-steps li {
    flex: 1 1 auto;
    justify-content: center;
  }

  .ms-co-section,
  .ms-co-summary {
    padding: 16px;
  }

  .ms-co-section__head {
    gap: 10px;
  }

  .ms-co-section__num {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .ms-co-option__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ms-co-option__price {
    font-size: 14px;
  }

  .ms-co-summary__row--grand strong {
    font-size: 20px;
  }

  .ms-co-help {
    padding: 15px;
  }
}

/* Compact toast position for cart/checkout notifications (the default theme
   centres alerts over the form at 30% of the viewport). */
#alert {
  top: auto;
  bottom: 24px;
  left: 24px;
  right: auto;
  width: min(420px, calc(100vw - 32px));
  margin: 0;
}

#alert .alert {
  box-shadow: 0 16px 36px -18px rgba(20, 30, 40, .45);
}

@media (max-width: 575.98px) {
  #alert {
    left: 16px;
    right: auto;
    bottom: 16px;
  }
}
