/* MessageCard Boutique v5.0 | Storefront common presentation, 2026-11-05.
 * Appended by the template CSS loader. Existing page styles remain in place.
 * No content, price, form action, approval, payment or visibility logic here.
 */
body.tpl_messagecard {
  --mc50-ink: #503e36;
  --mc50-muted: #76675e;
  --mc50-accent: #95685d;
  --mc50-accent-hover: #765047;
  --mc50-line: #e6d7ce;
  --mc50-paper: #fffdfb;
  --mc50-wash: #faf6f2;
  --mc50-green: #405c4d;
  --mc50-sans: 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
  --mc50-serif: 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  color: var(--mc50-ink);
  font-family: var(--mc50-sans);
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body.tpl_messagecard #contentMainWrapper .centerColumn,
body.tpl_messagecard #contentMainWrapper .centerColumn * { box-sizing: border-box; }
body.tpl_messagecard #contentMainWrapper .centerColumn { min-width: 0; }
body.tpl_messagecard #contentMainWrapper :is(p, li, dd, td) { overflow-wrap: break-word; }
body.tpl_messagecard #contentMainWrapper :is(img, video) { max-width: 100%; }
body.tpl_messagecard #contentMainWrapper :is(input, select, textarea, button) { font-family: var(--mc50-sans); }
body.tpl_messagecard #contentMainWrapper :is(input, select, textarea, button, a, summary):focus-visible {
  outline: 3px solid var(--mc50-green) !important;
  outline-offset: 3px;
}
body.tpl_messagecard #contentMainWrapper :is(input[type=checkbox], input[type=radio]) {
  accent-color: var(--mc50-accent);
}
body.tpl_messagecard #contentMainWrapper :is(button, input[type=submit]):disabled {
  opacity: .6;
  cursor: not-allowed;
}
/* Keep script-controlled hidden stages hidden; no display rules on page roots. */
body.tpl_messagecard #contentMainWrapper [hidden] { display: none !important; }

/* Shared subpage rhythm. Catalog and product layouts keep their own widths. */
body.tpl_messagecard #contentMainWrapper #navBreadCrumb {
  width: 100%;
  padding: 16px clamp(16px, 3vw, 40px);
  color: var(--mc50-muted);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
body.tpl_messagecard #contentMainWrapper :is(
  #loginDefault, #createAcctDefault, #shoppingCartDefault,
  #checkoutShipping, #checkoutPayment, #checkoutConfirmDefault, #checkoutOne,
  #checkoutSuccess, #checkoutShipAddressDefault, #checkoutPayAddressDefault,
  #accountDefault, #accountHistoryDefault, #accountHistInfo,
  #accountEditDefault, #addressBookDefault, #addressBookProcessDefault,
  #accountPassword, #accountNewslettersDefault, #accountNotificationsDefault,
  #contactUsDefault, #passwordForgotten, #passwordForgottenDefault,
  #shippingInfo, #privacy, #conditions, #ezPageDefault
) {
  padding-top: 30px !important;
  padding-bottom: 64px !important;
  margin-top: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: var(--mc50-ink);
}
body.tpl_messagecard #contentMainWrapper .centerColumn:not(#productGeneral) > h1,
body.tpl_messagecard #contentMainWrapper :is(#mc40ProofPage, #mc42Progress, #messagecardUpload, .mcg-page) h1 {
  color: var(--mc50-ink) !important;
  font-family: var(--mc50-serif) !important;
  font-size: clamp(26px, 2.6vw, 34px) !important;
  font-weight: 500;
  line-height: 1.5 !important;
  letter-spacing: .035em;
}
body.tpl_messagecard #contentMainWrapper .centerColumn > h1 {
  margin-top: 0 !important;
  margin-bottom: 20px;
}

/* Consistent fields without changing quantity controls or hidden anti-spam fields. */
body.tpl_messagecard #contentMainWrapper :is(
  #loginDefault, #createAcctDefault, #contactUsDefault, #passwordForgotten,
  #passwordForgottenDefault, #accountEditDefault, #accountPassword,
  #addressBookProcessDefault, #checkoutShipping, #checkoutPayment,
  #checkoutShipAddressDefault, #checkoutPayAddressDefault, #checkoutOne, .mcg-page
) :is(input[type=text], input[type=email], input[type=password], input[type=tel], select, textarea) {
  max-width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cdb9ac;
  border-radius: 10px;
  background-color: #fff;
  color: var(--mc50-ink);
  font-size: 16px !important;
  line-height: 1.5;
  box-shadow: none;
}
body.tpl_messagecard #contentMainWrapper textarea {
  max-width: 100%;
  font-size: 16px;
  line-height: 1.8;
  resize: vertical;
}
body.tpl_messagecard #contentMainWrapper :is(
  #loginDefault, #createAcctDefault, #contactUsDefault,
  #accountEditDefault, #accountPassword, #addressBookProcessDefault
) label.inputLabel {
  color: #614d43 !important;
  font-size: 14px !important;
  line-height: 1.6;
  margin-top: 14px !important;
  margin-bottom: 7px !important;
}
body.tpl_messagecard #contentMainWrapper :is(#loginDefault, #createAcctDefault) :is(.mc381-intro, .mc381-form-hint, .information) {
  color: var(--mc50-muted) !important;
  font-size: 14px !important;
  line-height: 1.85 !important;
}
body.tpl_messagecard #contentMainWrapper :is(#loginDefault, #createAcctDefault) fieldset {
  border-color: var(--mc50-line) !important;
  box-shadow: 0 5px 24px #60443406 !important;
}
body.tpl_messagecard #contentMainWrapper :is(#loginDefault, #createAcctDefault) fieldset fieldset { box-shadow: none !important; }
body.tpl_messagecard #contentMainWrapper #contactUsForm {
  border-color: var(--mc50-line);
  border-radius: 16px;
  background: var(--mc50-paper);
}
body#contactusBody #contentMainWrapper #contactUsForm :is(#contactname, #email-address, #telephone, #send-to, #enquiry) {
  font-size: 16px !important;
}

/* Primary and secondary actions retain each page's established colour meaning. */
body.tpl_messagecard #contentMainWrapper :is(
  .buttonRow button.cssButton, .buttonRow input.cssButton,
  .mc381-primary, .mc381-secondary, .mc39-btn, .mc40-btn,
  .mc42-btn, .mcg-button, .mcg-page button,
  #komojuCheckout button, #komojuOrderPayment button
) {
  min-height: 48px;
  max-width: 100%;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  white-space: normal;
  text-decoration: none;
  vertical-align: middle;
  touch-action: manipulation;
}
body.tpl_messagecard #contentMainWrapper :is(.mc39-btn.primary, .mc40-btn.main, .mcg-button, .mcg-page button) {
  background-color: var(--mc50-accent);
  color: #fff;
}
body.tpl_messagecard #contentMainWrapper :is(.mc39-btn.primary, .mc40-btn.main, .mcg-button, .mcg-page button):hover {
  background-color: var(--mc50-accent-hover);
}

/* Order, guest access, submission, proof and progress pages share one visual scale. */
body.tpl_messagecard #contentMainWrapper :is(#messagecardUpload, #mc40ProofPage, #mc42Progress, .mcg-page) {
  font-size: 15px;
  line-height: 1.85;
  padding-top: 30px;
  padding-bottom: 64px;
  margin-top: 0;
}
body.tpl_messagecard #contentMainWrapper :is(.mc39-panel, .mc40-card, .mc42-order, .mcg-card) {
  border-color: var(--mc50-line);
  border-radius: 16px;
  box-shadow: 0 6px 26px #60443406;
}
body.tpl_messagecard #messagecardUpload :is(p, .mc39-help, .mc39-item small),
body.tpl_messagecard #mc40ProofPage :is(.mc40-muted, .mc40-preview-help, .mc445-preview-message),
body.tpl_messagecard #mc42Progress :is(.mc42-lede, .mc42-note),
body.tpl_messagecard #accountDefault .mc-account-lede {
  color: var(--mc50-muted) !important;
  font-size: 14px;
  line-height: 1.8;
}
body.tpl_messagecard #mc40ProofPage .mc40-decision-grid { gap: 18px; }
body.tpl_messagecard #mc40ProofPage .mc40-choice {
  padding: 22px;
  border: 1px solid var(--mc50-line);
  border-radius: 12px;
  background: #fff;
}
body.tpl_messagecard #mc40ProofPage .mc40-revision summary {
  min-height: 44px;
  padding: 8px 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--mc50-accent-hover);
}
body.tpl_messagecard #mc40ProofPage .mc40-revision textarea {
  width: 100%;
  min-height: 130px;
  border: 1px solid #cdb9ac;
  border-radius: 10px;
  padding: 12px;
}
body.tpl_messagecard #mc40ProofPage :is(.mc40-history, .mc40-revision) summary:focus-visible {
  border-radius: 5px;
}
body.tpl_messagecard #accountDefault #prevOrders :is(td, th) { line-height: 1.75; }
body.tpl_messagecard #accountDefault #prevOrders td { font-size: 14px !important; }
body.tpl_messagecard #contentMainWrapper :is(.mc28-order-card, .mc-account-setting-card) { border-color: var(--mc50-line); }
body.tpl_messagecard #komojuCheckout.centerColumn { padding: 30px clamp(18px, 4vw, 36px) 36px; }
body.tpl_messagecard #contentMainWrapper #shoppingCartDefault .cartTotalsDisplay {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  padding: 14px 18px;
  border: 1px solid var(--mc50-line);
  border-radius: 12px;
  background: var(--mc50-wash) !important;
  color: var(--mc50-ink) !important;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.85;
  text-align: left !important;
  white-space: normal;
}

/* Notices and long-form information are readable on every page. */
body.tpl_messagecard #contentMainWrapper :is(.messageStackError, .messageStackWarning, .messageStackCaution, .messageStackSuccess) {
  box-sizing: border-box;
  max-width: 100%;
  margin-top: 16px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
body.tpl_messagecard #contentMainWrapper :is(.mcg-copy, .mc-legal) :is(p, li, dd, td, th) {
  color: #625047;
  font-size: 15px !important;
  line-height: 1.9 !important;
}
body.tpl_messagecard #contentMainWrapper :is(.mcg-copy, .mc-legal) a {
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
body.tpl_messagecard #contentMainWrapper :is(.mcg-copy, .mc-legal) :is(section, .mcg-section) { scroll-margin-top: 24px; }

@media (max-width: 767px) {
  body.tpl_messagecard #contentMainWrapper #navBreadCrumb { padding: 12px 16px; font-size: 11px; }
  body.tpl_messagecard #contentMainWrapper :is(
    #loginDefault, #createAcctDefault, #shoppingCartDefault,
    #checkoutShipping, #checkoutPayment, #checkoutConfirmDefault, #checkoutOne,
    #checkoutSuccess, #checkoutShipAddressDefault, #checkoutPayAddressDefault,
    #accountDefault, #accountHistoryDefault, #accountHistInfo,
    #accountEditDefault, #addressBookDefault, #addressBookProcessDefault,
    #accountPassword, #accountNewslettersDefault, #accountNotificationsDefault,
    #contactUsDefault, #passwordForgotten, #passwordForgottenDefault,
    #shippingInfo, #privacy, #conditions, #ezPageDefault
  ) { padding-top: 20px !important; padding-bottom: 44px !important; }
  body.tpl_messagecard #contentMainWrapper :is(#loginDefault, #createAcctDefault) fieldset {
    padding: 20px 16px !important;
  }
  body.tpl_messagecard #contentMainWrapper :is(#loginDefault, #createAcctDefault) fieldset fieldset {
    padding: 16px 12px !important;
  }
  body.tpl_messagecard #contentMainWrapper :is(#messagecardUpload, #mc40ProofPage, #mc42Progress, .mcg-page) {
    padding-top: 20px;
    padding-bottom: 44px;
  }
  body.tpl_messagecard #contentMainWrapper :is(.mc39-panel, .mc40-card, .mc42-order, .mcg-card) {
    padding: 20px 16px;
    margin-top: 18px;
    margin-bottom: 18px;
    border-radius: 14px;
  }
  body.tpl_messagecard #mc40ProofPage .mc40-choice { padding: 18px 14px; }
  body.tpl_messagecard #mc40ProofPage .mc40-decision-grid { grid-template-columns: minmax(0, 1fr); }
  body.tpl_messagecard #mc40ProofPage .mc40-btn { width: 100%; }
  body.tpl_messagecard #contentMainWrapper :is(.mcg-copy, .mc-legal) :is(p, li, dd, td, th) {
    font-size: 14px !important;
    line-height: 1.85 !important;
  }
  body.tpl_messagecard #contentMainWrapper .centerColumn :is(input[type=text], input[type=email], input[type=password], input[type=tel], select, textarea) {
    font-size: 16px !important;
  }
  body.tpl_messagecard #contentMainWrapper :is(.mc40-preview-pdf, .mc40-preview-image) { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body.tpl_messagecard #contentMainWrapper :is(a, button, input, summary) {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Guest pages v5.1: isolate the guest workflow from the classic column/form rules. */
body.tpl_messagecard:has(:is(#mcgGuestRequest, #mcgGuestOrder)) #contentMainWrapper {
  display: flow-root !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
body.tpl_messagecard #contentMainWrapper > div:has(> :is(#mcgGuestRequest, #mcgGuestOrder)) {
  box-sizing: border-box;
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
body.tpl_messagecard:has(:is(#mcgGuestRequest, #mcgGuestOrder)) #contentMainWrapper :is(#navColumnOne, #navColumnTwo) {
  display: none !important;
}
body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) {
  box-sizing: border-box;
  float: none !important;
  clear: both;
  width: calc(100% - 40px) !important;
  max-width: 1000px !important;
  min-width: 0;
  margin: 0 auto !important;
  padding: 32px 0 64px !important;
  color: var(--mc50-ink);
  font: 400 15px/1.85 var(--mc50-sans);
}
body.tpl_messagecard #contentMainWrapper #mcgGuestRequest { max-width: 760px !important; }
body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) .mcg-page-head {
  margin: 0 0 28px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--mc50-line);
}
body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) .mcg-kicker {
  margin: 0 0 8px;
  color: #967063;
  font: 700 11px/1.6 Georgia, serif;
  letter-spacing: .19em;
}
body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) h1 {
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none;
  font-family: var(--mc50-serif);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}
body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) .mcg-lede {
  max-width: 720px;
  margin: 0;
  color: var(--mc50-muted);
  font-size: 15px;
  line-height: 1.9;
}
body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) form:not([hidden]) {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}
body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) .mcg-card {
  display: block;
  margin: 20px 0;
  padding: 30px;
  border: 1px solid var(--mc50-line);
  border-radius: 16px;
  background: var(--mc50-paper);
  box-shadow: 0 6px 26px #60443406;
}
body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) h2 {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mc50-ink);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
}
body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) h3 {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mc50-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}
body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) .mcg-field { margin: 22px 0; }
body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) label {
  display: block !important;
  float: none !important;
  width: auto !important;
  margin: 0 0 8px;
  padding: 0;
  color: #614d43;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}
body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) .mcg-field-required {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 4px;
  background: #f2e5dd;
  color: #845548;
  font-size: 11px;
  font-weight: 500;
  vertical-align: middle;
}
body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) :is(input:not([type]), input[type=text], input[type=email]) {
  display: block;
  float: none;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  min-height: 50px;
  height: auto;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cdb9ac;
  border-radius: 10px;
  background: #fff;
  color: var(--mc50-ink);
  font: 400 16px/1.5 var(--mc50-sans);
  box-shadow: none;
}
body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) .mcg-field-help {
  margin: 7px 0 0;
  color: var(--mc50-muted);
  font-size: 13px;
  line-height: 1.75;
}
body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) :is(button, .mcg-button) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 48px;
  margin: 14px 0 0;
  padding: 12px 24px;
  border: 1px solid var(--mc50-accent);
  border-radius: 999px;
  background: var(--mc50-accent);
  color: #fff;
  font: 700 14px/1.65 var(--mc50-sans);
  text-align: center;
  white-space: normal;
  text-decoration: none;
}
body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) .mcg-notice {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid #ddc4b4;
  border-radius: 12px;
  background: #fcf5ed;
  color: #71513f;
  font-size: 14px;
  line-height: 1.9;
}
body.tpl_messagecard #contentMainWrapper #mcgGuestRequest .mcg-help {
  padding: 0 4px;
  color: var(--mc50-muted);
  font-size: 14px;
  line-height: 1.9;
}
body.tpl_messagecard #contentMainWrapper #mcgGuestRequest .mcg-help p { margin: 12px 0; }
body.tpl_messagecard #contentMainWrapper #mcgGuestRequest .mcg-help a { color: var(--mc50-accent-hover); text-underline-offset: 4px; }
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-status-box {
  padding: 18px 20px;
  border: 1px solid var(--mc50-line);
  border-radius: 12px;
  background: var(--mc50-wash);
}
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-status-box span,
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-tracking > span {
  display: block;
  margin-bottom: 5px;
  color: var(--mc50-muted);
  font-size: 13px;
}
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-status-box strong {
  display: block;
  color: #674c40;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
}
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-order-facts { margin: 0; }
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-order-facts > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #efe5dd;
}
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-order-facts dt { color: var(--mc50-muted); font-size: 14px; }
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-order-facts dd { margin: 0; overflow-wrap: anywhere; }
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-order-total { color: #694c40; font-size: 20px; font-weight: 600; }
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-payment-note { margin-top: 22px; font-size: 14px; }
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-payment-note p { margin: 0; }
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-tracking {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #f0f5f0;
  color: #3f5b4a;
  overflow-wrap: anywhere;
}
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-tracking p { margin: 0; }
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-section-title { margin: 36px 0 16px; }
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-item-heading { margin: 0 0 20px; padding: 0 0 18px; border-bottom: 1px solid var(--mc50-line); }
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-item-heading h2 { margin-bottom: 0; }
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder details { margin-top: 26px; padding-top: 20px; border-color: var(--mc50-line); }
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder summary { min-height: 44px; color: var(--mc50-accent-hover); font-size: 14px; line-height: 1.9; }
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder details label { margin-top: 20px; }
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-end-session { margin-top: 30px; text-align: right; }
body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-end-session button {
  border-color: #d3b9aa;
  background: #fff;
  color: var(--mc50-accent-hover) !important;
  box-shadow: none;
}
@media (max-width: 600px) {
  body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) {
    width: calc(100% - 32px) !important;
    padding: 22px 0 44px !important;
  }
  body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) .mcg-page-head { margin-bottom: 22px; padding-bottom: 22px; }
  body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) .mcg-card { padding: 22px 18px; border-radius: 14px; }
  body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) h2 { font-size: 19px; }
  body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-status-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-status-box { padding: 14px 16px; }
  body.tpl_messagecard #contentMainWrapper #mcgGuestOrder .mcg-order-facts > div { grid-template-columns: 98px minmax(0, 1fr); gap: 10px; }
  body.tpl_messagecard #contentMainWrapper :is(#mcgGuestRequest, #mcgGuestOrder) :is(button, .mcg-button) { width: 100%; }
}

/* Guest purchase flow v5.2. Presentation only; preserve OPC visibility, overlays and events. */
body.tpl_messagecard #contentMainWrapper .mcg-entry {
  margin:24px 0; padding:26px 28px; border:1px solid var(--mc50-line);
  border-radius:16px; background:var(--mc50-wash); color:var(--mc50-ink); text-align:left;
}
body.tpl_messagecard #contentMainWrapper .mcg-entry h2 {
  margin:0 0 12px!important; padding:0!important; border:0!important; background:none!important;
  color:var(--mc50-ink)!important; font:500 23px/1.6 var(--mc50-serif)!important; text-align:left!important;
}
body.tpl_messagecard #contentMainWrapper .mcg-entry p {margin:0 0 16px;color:var(--mc50-muted);font-size:14px;line-height:1.85;}
body.tpl_messagecard #contentMainWrapper .mcg-entry form:not([hidden]) {display:block;float:none;width:100%;margin:0 0 12px;padding:0;}
body.tpl_messagecard #contentMainWrapper .mcg-entry button {
  appearance:none;display:inline-flex;align-items:center;justify-content:center;max-width:100%;
  min-height:50px;margin:0;padding:12px 26px;border:1px solid var(--mc50-accent);border-radius:999px;
  background:var(--mc50-accent);color:white;font:700 14px/1.7 var(--mc50-sans);white-space:normal;
}
body.tpl_messagecard #contentMainWrapper .mcg-entry a {color:var(--mc50-accent-hover);font-size:14px;text-underline-offset:4px;line-height:1.9;}
body.tpl_messagecard #contentMainWrapper #loginDefault > .mcg-entry {grid-column:1/-1;width:100%;}
body.tpl_messagecard:has(#loginOpcDefault) #contentMainWrapper {display:flow-root!important;width:100%!important;max-width:100%!important;margin:0 auto!important;padding:0!important;}
body.tpl_messagecard #contentMainWrapper > div:has(> #loginOpcDefault) {float:none!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;}
body.tpl_messagecard #contentMainWrapper #loginOpcDefault {box-sizing:border-box;width:calc(100% - 40px);max-width:1120px;margin:0 auto;padding:32px 0 64px;color:var(--mc50-ink);font:400 15px/1.85 var(--mc50-sans);}
body.tpl_messagecard #contentMainWrapper #loginOpcDefault .opc-block {box-sizing:border-box;padding:24px;border:1px solid var(--mc50-line);border-radius:16px;background:var(--mc50-paper);}
body.tpl_messagecard #contentMainWrapper #loginOpcDefault h2 {margin:0 0 14px;border:0;background:none;color:var(--mc50-ink);font:500 23px/1.6 var(--mc50-serif);}
body.tpl_messagecard #contentMainWrapper #loginOpcDefault form {display:block;margin:20px 0;}
body.tpl_messagecard #contentMainWrapper #loginOpcDefault .opc-label {margin:14px 0 7px;color:#614d43;font-size:14px;font-weight:600;}
body.tpl_messagecard #contentMainWrapper #loginOpcDefault :is(input[type=email],input[type=password]) {box-sizing:border-box;width:100%;max-width:100%;min-height:50px;border:1px solid #cdb9ac;border-radius:10px;padding:12px 14px;background:#fff;font-size:16px;}

body.tpl_messagecard #contentMainWrapper #checkoutPayment.opc-base {
  width:calc(100% - 40px)!important;max-width:1120px!important;min-width:0;
  margin:0 auto!important;padding:32px 0 64px!important;color:var(--mc50-ink);
  font:400 15px/1.85 var(--mc50-sans);background:#fff;
}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkout_payment {display:flow-root;float:none;width:100%;margin:0;padding:0;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutOneHeading {margin:0 0 18px!important;padding:0 0 20px!important;border-bottom:1px solid var(--mc50-line);color:var(--mc50-ink);font:500 clamp(27px,3vw,34px)/1.5 var(--mc50-serif);}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #co1-top-message {margin:0 0 26px;color:var(--mc50-muted);font-size:14px;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutOneLeft {box-sizing:border-box;width:calc(50% - 12px);margin:0;float:left;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#checkoutShippingMethod,#checkoutPaymentMethod) {box-sizing:border-box;width:calc(50% - 12px);margin:0;float:right;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment fieldset {box-sizing:border-box;min-width:0;margin:0 0 24px;padding:24px;border:1px solid var(--mc50-line);border-radius:15px;background:var(--mc50-paper);box-shadow:none;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment fieldset > div {margin-left:0;margin-right:0;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment legend {float:none;width:auto;max-width:100%;margin:0;padding:0 8px;color:#684e42;font:600 17px/1.7 var(--mc50-sans);background:transparent;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment fieldset p {font-size:14px;line-height:1.9;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment label.inputLabel {
  display:block!important;float:none!important;width:100%!important;max-width:100%;margin:15px 0 7px!important;padding:0;
  color:#614d43;font-size:14px!important;font-weight:600;line-height:1.7;text-align:left!important;
}
body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(input[type=text],input[type=email],input[type=tel],input[type=password],select,textarea) {
  box-sizing:border-box;float:none;min-width:0;max-width:100%;min-height:50px;height:auto;margin:0 0 9px;
  padding:12px 14px;border:1px solid #cdb9ac;border-radius:10px;background:#fff;color:var(--mc50-ink);
  font:400 16px/1.5 var(--mc50-sans);box-shadow:none;
}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutOneLeft :is(input[type=text],input[type=email],input[type=tel],input[type=password]) {width:100%!important;max-width:100%!important;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#address-form-bill,#address-form-ship) select {width:calc(100% - 24px)!important;max-width:100%!important;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#address-form-bill,#address-form-ship) > .alert {box-sizing:border-box;display:inline-block;width:16px;margin:0!important;padding:0;color:#9c4c37;font-size:12px;text-align:center;vertical-align:middle;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment textarea {width:100%;min-height:125px;line-height:1.8;resize:vertical;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(input[type=radio],input[type=checkbox]) {flex:0 0 auto;width:18px;height:18px;min-height:18px;margin:5px 0;accent-color:var(--mc50-accent);vertical-align:middle;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutOneShippingFlag {margin:0 0 24px;font-size:14px;line-height:1.8;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutOneShippingFlag label {float:none;width:auto;margin-left:9px;text-align:left;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#address-bill,#address-ship):not(.hiddenField):not([hidden]) {display:flex;gap:14px;align-items:flex-start;justify-content:space-between;padding:0;color:var(--mc50-ink);font-size:14px;line-height:1.9;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#address-bill,#address-ship) > .floatingBox.back {float:none!important;flex:1;min-width:0;width:auto;margin:0!important;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#opc-bill-edit,#opc-ship-edit) {float:none!important;flex:0 0 auto;width:auto;max-width:90px;margin:0!important;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#address-form-bill,#address-form-ship) {padding:0!important;}

/* Style the actual span buttons used by OPC, rather than only submit buttons. */
body.tpl_messagecard #contentMainWrapper :is(#checkoutPayment,#loginOpcDefault,#checkoutOneConfirmationDisplay) :is(.cssButton,.cssButtonHover) {
  box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;max-width:100%;
  min-height:46px;height:auto!important;margin:0!important;padding:11px 22px!important;border:1px solid var(--mc50-accent)!important;border-radius:999px!important;
  background:var(--mc50-accent)!important;background-image:none!important;color:#fff!important;
  font:700 14px/1.65 var(--mc50-sans)!important;text-shadow:none;box-shadow:none;white-space:normal;text-align:center;text-decoration:none;vertical-align:middle;touch-action:manipulation;cursor:pointer;
}
body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#opc-bill-edit,#opc-ship-edit,#opc-bill-cancel,#opc-ship-cancel,#opc-guest-cancel,.edit-button) :is(.cssButton,.cssButtonHover) {
  border-color:#d3b9aa!important;background:#fff!important;color:var(--mc50-accent-hover)!important;
}
body.tpl_messagecard #contentMainWrapper #checkoutPayment .opc-buttons {float:none!important;clear:both;width:100%;margin:18px 0 0!important;padding:0;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment .opc-buttons > div:first-child {float:none;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment .opc-buttons .opc-right {float:none;text-align:right;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment .opc-buttons :is(.cssButton,.cssButtonHover) {margin:6px 0 0 6px!important;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment .opc-view {border-radius:15px;background:#fff;box-shadow:0 6px 24px #60443412;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment .opc-overlay.active {background:#f4eee8;opacity:.36;border-radius:15px;}
/* First entry edits contact and billing together. Use both columns for those live fields. */
body.tpl_messagecard #contentMainWrapper #checkoutPayment:has(#checkoutOneGuestInfo.opc-view):has(#checkoutOneBillto.opc-view) #checkoutOneLeft {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;align-items:start;float:none;width:100%;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment:has(#checkoutOneGuestInfo.opc-view):has(#checkoutOneBillto.opc-view) #checkoutOneLeft > :is(#checkoutOneShippingFlag,#checkoutOneShipto,#checkoutComments,[class^="checkoutOne"]) {grid-column:1/-1;}

body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutShippingChoices > fieldset {margin:14px 0 0;padding:18px;border-radius:12px;background:#fff;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutShippingChoices > fieldset:has(input:checked) {border-color:#b58b7a;background:var(--mc50-wash);}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutShippingChoices legend {font-size:14px;font-weight:600;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#checkoutShippingChoices,#checkoutPaymentMethod) .custom-control {display:flex;align-items:flex-start;gap:10px;min-width:0;font-size:14px;line-height:1.85;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#checkoutShippingChoices,#checkoutPaymentMethod) label.radioButtonLabel {float:none!important;flex:1;min-width:0;width:auto!important;margin:0;padding:0;color:#614d43;font-size:14px;line-height:1.85;white-space:normal;text-align:left;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutShippingChoices .important.forward {float:right!important;margin-left:14px;color:#684c40;font-size:15px;white-space:nowrap;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutPaymentMethod .custom-radio {margin:12px 0;padding:16px;border:1px solid var(--mc50-line);border-radius:12px;background:#fff;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutPaymentMethod .custom-radio:has(input:checked) {border-color:#b58b7a;background:var(--mc50-wash);}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutPaymentMethod label img {max-width:140px;max-height:48px;width:auto;height:auto;vertical-align:middle;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutPaymentMethod .ccinfoText {margin:0 0 14px;color:var(--mc50-muted);font-size:13px;line-height:1.8;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutPaymentMethod > fieldset > br.clearBoth {display:none;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#messages-bill,#messages-ship,#messages-guest) {color:#9c4c37;font-size:14px;line-height:1.85;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment .opc-error {border-color:#b45d43;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutOneCartGroup {clear:both;width:100%;margin-top:24px;}
body.tpl_messagecard #contentMainWrapper :is(#checkoutPayment,#checkoutOneConfirmationDisplay) #cartContentsDisplay {width:100%;max-width:100%;border-collapse:collapse;border:0;font-size:14px;line-height:1.8;}
body.tpl_messagecard #contentMainWrapper :is(#checkoutPayment,#checkoutOneConfirmationDisplay) #cartContentsDisplay th {padding:12px 10px;background:var(--mc50-wash);color:#72594c;font-size:13px;text-align:left;}
body.tpl_messagecard #contentMainWrapper :is(#checkoutPayment,#checkoutOneConfirmationDisplay) #cartContentsDisplay td {padding:14px 10px;border-bottom:1px solid var(--mc50-line);background:#fff;vertical-align:top;overflow-wrap:anywhere;}
body.tpl_messagecard #contentMainWrapper :is(#checkoutPayment,#checkoutOneConfirmationDisplay) #cartContentsDisplay :is(.cartTotalDisplay,#ccTotalHeading) {text-align:right;white-space:nowrap;}
body.tpl_messagecard #contentMainWrapper :is(#checkoutPayment,#checkoutOneConfirmationDisplay) #cartContentsDisplay ul {margin:10px 0;padding-left:20px;color:var(--mc50-muted);font-size:13px;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #orderTotalDivs {font-size:14px;line-height:2;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #orderTotalDivs > div {display:flex;align-items:baseline;justify-content:flex-end;gap:12px;min-width:0;width:100%;margin:0;padding:3px 0;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #orderTotalDivs .lineTitle {order:1;float:none!important;flex:1;min-width:0;width:auto!important;margin:0!important;text-align:right;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #orderTotalDivs .totalBox {order:2;float:none!important;flex:0 0 110px;width:auto!important;max-width:50%;margin:0!important;text-align:right;white-space:nowrap;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #orderTotalDivs > br.clearBoth {display:none;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #orderTotalDivs #ottotal {margin-top:8px;padding-top:12px;border-top:1px solid var(--mc50-line);font-weight:700;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #cartContentsDisplay .cartTotalDisplay {color:var(--mc50-ink)!important;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #cartContentsDisplay .edit-button :is(.cssButton,.cssButtonHover) {min-width:72px;padding:9px 15px!important;white-space:nowrap;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#checkoutOneSubmit,#checkoutOneEmail) {clear:both;max-width:100%;margin:18px 0 0;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutOneSubmit :is(.cssButton,.cssButtonHover) {min-height:52px;padding:13px 30px!important;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutOneEmail {color:var(--mc50-muted);font-size:13px;overflow-wrap:anywhere;}

body.tpl_messagecard #contentMainWrapper #checkoutOneConfirmationDisplay {box-sizing:border-box;width:calc(100% - 40px);max-width:1120px;margin:0 auto;padding:32px 0 64px;color:var(--mc50-ink);font:400 15px/1.85 var(--mc50-sans);}
body.tpl_messagecard #contentMainWrapper #checkoutOneConfirmationDisplay :is(#checkoutBillto,#checkoutShipto) {box-sizing:border-box;width:calc(50% - 12px);margin-bottom:24px;padding:24px;border:1px solid var(--mc50-line);border-radius:15px;background:var(--mc50-paper);}
body.tpl_messagecard #contentMainWrapper #checkoutOneConfirmationDisplay :is(h2,h3,h4) {border:0;background:none;color:#684e42;line-height:1.6;}
body.tpl_messagecard #contentMainWrapper #checkoutOneConfirmationDisplay address {font-style:normal;font-size:14px;line-height:1.9;overflow-wrap:anywhere;}
body.tpl_messagecard #contentMainWrapper #checkoutSuccess :is(.mcg-notice,#checkoutSuccessOrderNumber,#checkoutSuccessOrderLink) {margin:20px 0;padding:20px 24px;border:1px solid var(--mc50-line);border-radius:14px;background:var(--mc50-wash);color:var(--mc50-ink);font-size:15px;line-height:1.9;}
body.tpl_messagecard #contentMainWrapper #checkoutSuccess :is(.mcg-button,.mcg-notice a) {max-width:100%;line-height:1.8;overflow-wrap:anywhere;}
@media(max-width:800px){
  body.tpl_messagecard #contentMainWrapper :is(#checkoutPayment.opc-base,#loginOpcDefault,#checkoutOneConfirmationDisplay) {width:calc(100% - 32px)!important;padding:22px 0 44px!important;}
  body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#checkoutOneLeft,#checkoutShippingMethod,#checkoutPaymentMethod) {float:none!important;width:100%!important;max-width:100%!important;}
  body.tpl_messagecard #contentMainWrapper #checkoutPayment:has(#checkoutOneGuestInfo.opc-view):has(#checkoutOneBillto.opc-view) #checkoutOneLeft {grid-template-columns:minmax(0,1fr);gap:0;}
  body.tpl_messagecard #contentMainWrapper #checkoutPayment fieldset {margin-bottom:20px;padding:20px 16px;border-radius:14px;}
  body.tpl_messagecard #contentMainWrapper #checkoutPayment legend {padding:0 5px;font-size:16px;}
  body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutShippingChoices > fieldset {padding:16px 12px;}
  body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutPaymentMethod .custom-radio {padding:14px 12px;}
  body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#address-bill,#address-ship) {flex-direction:column;}
  body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#opc-bill-edit,#opc-ship-edit) {align-self:flex-end;}
  body.tpl_messagecard #contentMainWrapper #checkoutPayment .opc-buttons :is(.cssButton,.cssButtonHover) {margin:8px 0 0!important;}
  body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#opc-bill-save,#opc-ship-save,#opc-guest-save) :is(.cssButton,.cssButtonHover) {width:100%!important;}
  body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutOneSubmit {float:none!important;width:100%;text-align:center;}
  body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutOneSubmit :is(.cssButton,.cssButtonHover) {width:100%!important;}
  body.tpl_messagecard #contentMainWrapper #checkoutPayment #checkoutOneEmail {float:none!important;width:100%;text-align:left;}
  body.tpl_messagecard #contentMainWrapper #checkoutPayment #orderTotalDivs .lineTitle {text-align:left;}
  body.tpl_messagecard #contentMainWrapper #checkoutPayment #orderTotalDivs .totalBox {flex-basis:auto;}
  body.tpl_messagecard #contentMainWrapper :is(#checkoutPayment,#checkoutOneConfirmationDisplay) #cartContentsDisplay th {padding:10px 6px;font-size:12px;}
  body.tpl_messagecard #contentMainWrapper :is(#checkoutPayment,#checkoutOneConfirmationDisplay) #cartContentsDisplay td {padding:12px 6px;font-size:13px;}
  body.tpl_messagecard #contentMainWrapper #checkoutOneConfirmationDisplay :is(#checkoutBillto,#checkoutShipto) {float:none;width:100%;padding:20px 16px;}
  body.tpl_messagecard #contentMainWrapper #loginOpcDefault .opc-block {float:none!important;width:100%!important;margin:0 0 20px;padding:22px 18px;}
}
@media(max-width:600px){
  body.tpl_messagecard #contentMainWrapper .mcg-entry {padding:22px 18px;}
  body.tpl_messagecard #contentMainWrapper .mcg-entry h2 {font-size:21px!important;}
  body.tpl_messagecard #contentMainWrapper .mcg-entry button {width:100%;}
}

/* Class swaps must not change button geometry. Colour-only hover is for a mouse. */
@media (hover:hover) and (pointer:fine) {
  body.tpl_messagecard #contentMainWrapper :is(#checkoutPayment,#loginOpcDefault,#checkoutOneConfirmationDisplay) :is(.cssButton:hover,.cssButtonHover) {
    border-color:var(--mc50-accent-hover)!important;background:var(--mc50-accent-hover)!important;color:#fff!important;
  }
  body.tpl_messagecard #contentMainWrapper #checkoutPayment :is(#opc-bill-edit,#opc-ship-edit,#opc-bill-cancel,#opc-ship-cancel,#opc-guest-cancel,.edit-button) :is(.cssButton:hover,.cssButtonHover) {
    border-color:#b58b7a!important;background:#f7f0eb!important;color:var(--mc50-accent-hover)!important;
  }
}
body.tpl_messagecard #contentMainWrapper :is(#checkoutPayment,#loginOpcDefault,#checkoutOneConfirmationDisplay) :is(.cssButton,.cssButtonHover):active {filter:brightness(.95);}
@media (max-width:800px) {
  body.tpl_messagecard #contentMainWrapper #checkoutOneConfirmationDisplay :is(input.cssButton,input.cssButtonHover) {width:100%!important;}
}

/* Purchase-method selection v5.3. The cart has one checkout entry. */
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page {display:block!important;}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page .mc-choice-lede {margin:0 0 28px;color:var(--mc50-muted);font-size:14px;line-height:1.9;}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page .mc-choice-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch;}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page .mc-choice-grid--two {grid-template-columns:repeat(2,minmax(0,1fr));}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page .mc-choice-card {display:flex;flex-direction:column;min-width:0;padding:26px 22px;border:1px solid var(--mc50-line);border-radius:16px;background:var(--mc50-paper);}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page .mc-choice-card h2 {margin:0 0 16px!important;padding:0!important;border:0!important;background:none!important;color:var(--mc50-ink)!important;font:500 23px/1.55 var(--mc50-serif)!important;text-align:left!important;}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page .mc-choice-card p {margin:0 0 18px;color:var(--mc50-muted);font-size:14px;line-height:1.9;}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page .mc-choice-card .mc-choice-kicker {margin:0 0 12px;color:var(--mc50-accent);font-size:11px;font-weight:700;letter-spacing:.16em;}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page form {display:block;float:none;width:100%;min-width:0;margin:0;}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page #loginForm label {display:block!important;float:none!important;width:100%!important;margin:14px 0 7px!important;padding:0!important;font-size:14px;line-height:1.7;text-align:left;}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page #loginForm :is(input[type=email],input[type=password]) {box-sizing:border-box;display:block;width:100%!important;max-width:100%!important;height:auto!important;min-height:50px!important;margin:0 0 12px!important;padding:12px 14px!important;font-size:16px!important;}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page .mc-choice-primary {box-sizing:border-box;appearance:none;display:inline-flex;align-items:center;justify-content:center;width:100%;max-width:100%;min-height:50px;margin:0;padding:12px 18px;border:1px solid var(--mc50-accent);border-radius:999px;background:var(--mc50-accent);color:#fff!important;font:700 14px/1.7 var(--mc50-sans);text-align:center;text-decoration:none;white-space:normal;cursor:pointer;}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page .mc-choice-primary:hover {border-color:var(--mc50-accent-hover);background:var(--mc50-accent-hover);}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page #loginForm button {margin-top:12px;}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page .mc-choice-actions {margin-top:auto;padding-top:24px;}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page .mc-choice-help {margin-top:16px;color:var(--mc50-accent-hover);font-size:13px;line-height:1.8;text-underline-offset:4px;}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page .mc-choice-footer {display:flex;flex-wrap:wrap;gap:16px 28px;margin-top:26px;font-size:14px;line-height:1.9;}
body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page .mc-choice-footer a {color:var(--mc50-accent-hover);text-underline-offset:4px;}
@media(max-width:950px){
  body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page :is(.mc-choice-grid,.mc-choice-grid--two) {grid-template-columns:minmax(0,1fr);gap:20px;}
  body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page .mc-choice-card {padding:24px 20px;}
  body.tpl_messagecard #contentMainWrapper #loginDefault.mc-choice-page .mc-choice-actions {padding-top:8px;}
}

/* Checkout editing focus: follow OPC's own overlay and editor classes. */
body.tpl_messagecard #contentMainWrapper #checkoutPayment.mc-checkout-focus .mc-opc-step-note {
  position:relative;z-index:2;clear:both;margin:0 0 24px;padding:18px 22px;
  border:1px solid var(--mc50-line);border-radius:12px;background:var(--mc50-wash);
  color:var(--mc50-ink);font-size:14px;line-height:1.9;
}
body.tpl_messagecard #contentMainWrapper #checkoutPayment.mc-checkout-focus .mc-opc-step-note p {display:none;margin:0;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment.mc-checkout-focus .mc-opc-step-note strong {display:block;margin-bottom:5px;color:#684e42;font-size:16px;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment.mc-checkout-focus .mc-opc-step-note span {display:block;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment.mc-checkout-focus:not(:has(> .opc-overlay.active):has(.opc-view)) .mc-opc-step-ready {display:block;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment.mc-checkout-focus:has(> .opc-overlay.active):has(:is(#checkoutOneGuestInfo,#checkoutOneBillto).opc-view) .mc-opc-step-billing {display:block;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment.mc-checkout-focus:has(> .opc-overlay.active):has(#checkoutOneShipto.opc-view) .mc-opc-step-shipping {display:block;}

/* Keep the live editors, their save/cancel controls and validation messages.
   Hide the later sections while they are blocked by OPC, without removing data. */
body.tpl_messagecard #contentMainWrapper #checkoutPayment.mc-checkout-focus:has(> .opc-overlay.active):has(.opc-view) #checkout_payment > :is(#checkoutShippingMethod,#checkoutPaymentMethod,#checkoutOneShoppingCart,#checkoutOneCartGroup,#instructions,#conditions-div,#privacy-div,#checkoutOneSubmit,#checkoutOneEmail) {display:none!important;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment.mc-checkout-focus:has(> .opc-overlay.active):has(.opc-view) #checkoutOneLeft > :not(.opc-view) {display:none!important;}
body.tpl_messagecard #contentMainWrapper #checkoutPayment.mc-checkout-focus:has(> .opc-overlay.active):has(.opc-view) #checkoutOneLeft {float:none!important;width:100%!important;}

/* Retain the blocking layer and its stacking order; only its tint is removed. */
body.tpl_messagecard #contentMainWrapper #checkoutPayment.mc-checkout-focus:has(.opc-view) > .opc-overlay.active {background:transparent;opacity:1;}
@media (max-width:600px) {
  body.tpl_messagecard #contentMainWrapper #checkoutPayment.mc-checkout-focus .mc-opc-step-note {padding:16px;margin-bottom:20px;}
}

/* Progress page: release the legacy column width and center the whole page. */
body.tpl_messagecard:has(#mc42Progress) #contentMainWrapper {
  display: flow-root !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
body.tpl_messagecard #contentMainWrapper > div:has(> #mc42Progress) {
  box-sizing: border-box;
  display: block !important;
  float: none !important;
  clear: both;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
body.tpl_messagecard:has(#mc42Progress) #contentMainWrapper > div:has(:is(#navColumnOne, #navColumnTwo)) {
  display: none !important;
}
body.tpl_messagecard #contentMainWrapper #mc42Progress.centerColumn {
  box-sizing: border-box;
  float: none !important;
  clear: both;
  width: calc(100% - 40px) !important;
  max-width: 1000px !important;
  min-width: 0;
  margin: 0 auto !important;
  padding: 30px 0 64px !important;
}
@media (max-width: 700px) {
  body.tpl_messagecard #contentMainWrapper #mc42Progress.centerColumn {
    width: calc(100% - 32px) !important;
    padding: 24px 0 48px !important;
  }
}

/* Order-history display, 2026-11-11. Scoped to the existing order-detail template. */
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-note {
  margin: 0 0 18px;
  color: var(--mc50-muted, #78675f);
  font-size: 13px;
  line-height: 1.8;
}
body.tpl_messagecard #contentMainWrapper #accountHistInfo table#myAccountOrdersStatus {
  width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--mc50-line, #eadbd2);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
body.tpl_messagecard #contentMainWrapper #accountHistInfo #myAccountOrdersStatus :is(th, td) {
  box-sizing: border-box;
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.75;
  word-break: normal;
}
body.tpl_messagecard #contentMainWrapper #accountHistInfo #myAccountOrdersStatus th {
  background: #f3e9e3;
  color: #75584c;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
body.tpl_messagecard #contentMainWrapper #accountHistInfo #myAccountOrdersStatus td {
  border-top: 1px solid #f0e6df;
  background: #fff;
}
body.tpl_messagecard #contentMainWrapper #accountHistInfo #myAccountOrdersStatus .mc-history-date-cell {
  width: 126px;
  white-space: nowrap;
  overflow-wrap: normal;
}
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-date {
  display: inline-block;
  color: #715d52;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-date :is(span, small) { display: block; }
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-date small { margin-top: 2px; color: #918078; font-size: 12px; }
body.tpl_messagecard #contentMainWrapper #accountHistInfo #myAccountOrdersStatus .mc-history-status-cell { width: 154px; }
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-status {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f5eee9;
  color: #75594e;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body.tpl_messagecard #contentMainWrapper #accountHistInfo table#myAccountOrdersStatus td.mc-history-comment-cell { min-width: 0; white-space: normal !important; overflow-wrap: anywhere; }
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-comment-body { margin: 0; line-height: 1.8; overflow-wrap: anywhere; }
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-comment-body :is(p, ul, ol) { margin-top: 0; margin-bottom: 10px; }
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-comment-body > :last-child { margin-bottom: 0; }
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-empty { color: #b3a49b; }
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-details {
  min-width: 0;
  border: 1px solid #e8ddd5;
  border-radius: 10px;
  background: #fcfaf8;
  overflow: hidden;
}
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-details > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  color: #75584c;
  font-size: 13px;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(156,105,88,.12);
}
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-details > summary::-webkit-details-marker { display: none; }
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-details > summary::before { content: '+'; flex: 0 0 14px; text-align: center; font-size: 17px; }
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-details[open] > summary::before { content: '−'; }
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-details > summary:focus-visible { outline: 2px solid #8c5e4f; outline-offset: -3px; }
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-summary-title { flex: 1 1 auto; min-width: 0; font-weight: 600; }
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-detail-prompt { flex: 0 0 auto; color: #8c7467; font-size: 11px; }
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-details:not([open]) .mc-history-detail-prompt--open,
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-details[open] .mc-history-detail-prompt--closed { display: none; }
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-detail-body {
  margin: 0;
  padding: 14px 15px;
  border-top: 1px solid #eadfd7;
  background: #fff;
  color: #78685e;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: anywhere;
}
body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-details--paypal .mc-history-detail-body { font-family: inherit; font-size: 13px; }
@media (hover: hover) and (pointer: fine) {
  body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-details > summary:hover { background: #f3eae3; }
}
@media (max-width: 640px) {
  body.tpl_messagecard #contentMainWrapper #accountHistInfo table#myAccountOrdersStatus { display: block; border: 0; border-radius: 0; background: transparent; overflow: visible; }
  body.tpl_messagecard #contentMainWrapper #accountHistInfo #myAccountOrdersStatus thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body.tpl_messagecard #contentMainWrapper #accountHistInfo table#myAccountOrdersStatus tbody { display: grid !important; width: 100% !important; min-width: 0 !important; max-width: 100%; gap: 12px; }
  body.tpl_messagecard #contentMainWrapper #accountHistInfo #myAccountOrdersStatus tr.mc-history-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); border: 1px solid #e8dcd3; border-radius: 12px; background: #fff; overflow: hidden; }
  body.tpl_messagecard #contentMainWrapper #accountHistInfo #myAccountOrdersStatus td { display: block; width: auto; min-width: 0; border: 0; padding: 14px; font-size: 14px; }
  body.tpl_messagecard #contentMainWrapper #accountHistInfo #myAccountOrdersStatus .mc-history-date-cell { grid-column: 1; grid-row: 1; width: auto; padding-bottom: 10px; }
  body.tpl_messagecard #contentMainWrapper #accountHistInfo #myAccountOrdersStatus .mc-history-status-cell { grid-column: 2; grid-row: 1; width: auto; padding-bottom: 10px; text-align: right; }
  body.tpl_messagecard #contentMainWrapper #accountHistInfo #myAccountOrdersStatus :is(.mc-history-comment-cell, .mc-history-extra-cell) { grid-column: 1 / -1; padding-top: 8px; }
  body.tpl_messagecard #contentMainWrapper #accountHistInfo #myAccountOrdersStatus .mc-history-comment-cell--empty { display: none; }
  body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-extra-cell::before { content: attr(data-label); display: block; color: #8c7467; font-size: 12px; }
  body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-note { font-size: 12px; }
  body.tpl_messagecard #contentMainWrapper #accountHistInfo .mc-history-details > summary { padding: 12px 10px; }
}
