/* MessageCard Boutique v2.6.1 – completion/order-history finishing pass.
 * Scoped to #checkoutSuccess only. No changes to PayPal, checkout, order forms or data.
 * Loaded after v2.6 (11 z's in file name vs 10).
 */
body.tpl_messagecard #checkoutSuccess{
  max-width:1000px!important;overflow:visible;
}
/* The successful-order summary remains centered, while order details use a tidy left-aligned layout. */
body.tpl_messagecard #checkoutSuccess #accountHistInfo{
  display:flow-root!important;position:static!important;float:none!important;
  box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0;
  margin:35px auto 0!important;padding:24px 0 0!important;
  color:#594942;text-align:left!important;border-top:1px solid #eaded7;
  font:400 14px/1.8 var(--mc26-sans, sans-serif);
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo > .forward:first-child{
  float:none!important;text-align:right;font-size:12px;color:#8c786e;
  margin:0 0 12px;
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo > br.clearBoth{clear:both}
body.tpl_messagecard #checkoutSuccess #accountHistInfo h2{
  color:#654941!important;background:transparent!important;
  font:600 clamp(18px,2.2vw,22px)/1.5 var(--mc26-serif, serif)!important;
  margin:32px 0 13px!important;padding:0!important;border:0!important;text-align:left!important;
}
/* The old Zen Cart tables and transaction notes: do not hide content. */
body.tpl_messagecard #checkoutSuccess #accountHistInfo #orderHistoryHeading,
body.tpl_messagecard #checkoutSuccess #accountHistInfo #myAccountOrdersStatus{
  display:table!important;table-layout:auto;box-sizing:border-box;width:100%!important;
  max-width:100%;border-collapse:separate!important;border-spacing:0!important;
  border:1px solid #e7d9d1!important;border-radius:12px!important;
  background:#fff!important;box-shadow:none!important;overflow:hidden;
  margin:8px 0 20px!important;
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo :is(#orderHistoryHeading,#myAccountOrdersStatus) tr{
  background:#fff!important;color:#57483f!important;
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo :is(#orderHistoryHeading,#myAccountOrdersStatus) tr.tableHeading,
body.tpl_messagecard #checkoutSuccess #accountHistInfo :is(#orderHistoryHeading,#myAccountOrdersStatus) tr.tableHeading > th{
  background:#f4ebe6!important;color:#694e44!important;
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo :is(#orderHistoryHeading,#myAccountOrdersStatus) :is(th,td){
  padding:13px 12px!important;font:400 12px/1.65 var(--mc26-sans, sans-serif)!important;
  height:auto!important;background:transparent!important;color:#58453d!important;
  border:0!important;border-bottom:1px solid #eee4df!important;
  vertical-align:top!important;overflow-wrap:anywhere;word-break:normal;
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo :is(#orderHistoryHeading,#myAccountOrdersStatus) tr.tableHeading > th{
  font-weight:700!important;color:#694e44!important;
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo :is(#orderHistoryHeading,#myAccountOrdersStatus) tr:last-child > td{
  border-bottom:0!important;
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo #orderHistoryHeading :is(.accountQuantityDisplay,.accountTotalDisplay){white-space:nowrap}
body.tpl_messagecard #checkoutSuccess #accountHistInfo #orderHistoryHeading .accountTotalDisplay{
  text-align:right!important;color:#98685d!important;font-weight:700!important;
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo #myAccountOrdersStatus td:last-child{
  white-space:pre-line;line-height:1.7!important;overflow-wrap:anywhere;
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo > hr{
  border:0!important;border-top:1px solid #eee1db!important;
  height:1px!important;margin:26px 0!important;clear:both;
}
/* Subtotal/shipping/tax figures are generated by Zen Cart; keep their text and amounts intact. */
body.tpl_messagecard #checkoutSuccess #accountHistInfo #orderTotals{
  display:flow-root!important;box-sizing:border-box;clear:both;float:none!important;
  width:100%!important;max-width:100%!important;min-height:0!important;
  margin:16px 0 25px!important;padding:20px clamp(15px,3vw,28px)!important;
  background:#faf5f1!important;border:1px solid #e7d9d1!important;border-radius:12px!important;
  color:#6a534a!important;text-align:right!important;
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo #orderTotals .lineTitle,
body.tpl_messagecard #checkoutSuccess #accountHistInfo #orderTotals .amount{
  box-sizing:border-box;font:500 14px/1.95 var(--mc26-sans, sans-serif)!important;
  float:right!important;width:auto!important;max-width:100%;margin:0!important;
  padding:0!important;background:none!important;color:#69554c!important;
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo #orderTotals .amount{
  min-width:95px;margin-left:20px!important;text-align:right!important;
  color:#98685d!important;font-weight:700!important;
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo #orderTotals br.clearBoth{clear:both;line-height:.4}
/* Two address sections: remove hardcoded gray/black header bars inherited from the original template. */
body.tpl_messagecard #checkoutSuccess #accountHistInfo :is(#myAccountShipInfo,#myAccountPaymentInfo){
  display:block;box-sizing:border-box;width:calc(50% - 10px)!important;max-width:none!important;
  float:left!important;min-width:0;margin:7px 10px 22px 0!important;
  padding:21px 22px!important;background:#fff!important;
  border:1px solid #e7d9d1!important;border-radius:13px!important;
  color:#58483e!important;box-shadow:none!important;
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo #myAccountPaymentInfo{
  float:right!important;margin:7px 0 22px 10px!important;
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo :is(#myAccountShipInfo,#myAccountPaymentInfo) :is(h3,h4){
  background:transparent!important;color:#684a3d!important;
  border:0!important;border-bottom:1px solid #eee2dc!important;border-radius:0!important;
  font:600 15px/1.5 var(--mc26-serif, serif)!important;
  text-align:left!important;margin:0 0 12px!important;padding:0 0 10px!important;
  width:auto!important;height:auto!important;
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo :is(#myAccountShipInfo,#myAccountPaymentInfo) h4{
  border:0!important;font-size:13px!important;margin:18px 0 4px!important;padding:0!important;
}
body.tpl_messagecard #checkoutSuccess #accountHistInfo :is(#myAccountShipInfo,#myAccountPaymentInfo) address{
  font-style:normal!important;color:#675a53!important;margin:0!important;line-height:1.9!important;
}
/* Product notifications are optional; preserve checkbox and submit semantics while matching the theme. */
body.tpl_messagecard #checkoutSuccess #csNotifications{
  display:flow-root!important;float:none!important;clear:both;box-sizing:border-box;
  width:100%!important;max-width:740px!important;margin:36px auto 22px!important;
  padding:22px 27px!important;background:#fff!important;
  border:1px solid #e7d9d1!important;border-radius:13px!important;
  color:#5b4b44!important;text-align:left!important;
}
body.tpl_messagecard #checkoutSuccess #csNotifications legend{
  display:table!important;float:none!important;clear:none!important;
  width:auto!important;max-width:100%!important;margin:0 0 10px!important;
  padding:0 9px!important;border:0!important;background:#fff!important;
  color:#68483f!important;text-align:left!important;
  font:600 16px/1.6 var(--mc26-serif,serif)!important;
}
body.tpl_messagecard #checkoutSuccess #csNotifications form{display:block!important;width:100%;margin:0!important}
body.tpl_messagecard #checkoutSuccess #csNotifications input[type=checkbox]{
  display:inline-block!important;appearance:auto!important;width:17px!important;height:17px!important;
  vertical-align:middle;margin:5px 8px 6px 0!important;accent-color:#98685d;
}
body.tpl_messagecard #checkoutSuccess #csNotifications label{
  display:inline-block!important;vertical-align:middle;margin:0!important;color:#5b4b44!important;
  font-size:13px!important;line-height:1.6;
}
body.tpl_messagecard #checkoutSuccess #csNotifications .buttonRow.forward{
  display:flex!important;float:none!important;justify-content:flex-end!important;
  width:100%!important;margin:16px 0 0!important;clear:both;
}
body.tpl_messagecard #checkoutSuccess #csNotifications :is(input[type=submit],button[type=submit]){
  display:inline-block!important;appearance:none!important;min-height:41px!important;height:auto!important;
  width:auto!important;min-width:90px;max-width:100%;padding:9px 19px!important;
  border:1px solid #98685d!important;border-radius:99px!important;
  background:#98685d!important;color:#fff!important;box-shadow:none!important;
  font:600 13px/1.4 var(--mc26-sans,sans-serif)!important;
  cursor:pointer!important;text-shadow:none!important;
}
body.tpl_messagecard #checkoutSuccess #csNotifications .buttonRow.forward input[type=image]{
  display:inline-block!important;width:auto!important;max-width:100%;height:auto!important;border:0!important;
}
body.tpl_messagecard #checkoutSuccess #checkoutSuccessThanks{
  width:100%!important;max-width:740px!important;background:#fff!important;color:#684b43!important;
}
@media(max-width:700px){
  body.tpl_messagecard #checkoutSuccess #accountHistInfo{padding-top:18px!important;margin-top:24px!important}
  body.tpl_messagecard #checkoutSuccess #accountHistInfo :is(#orderHistoryHeading,#myAccountOrdersStatus){
    display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  body.tpl_messagecard #checkoutSuccess #accountHistInfo :is(#orderHistoryHeading,#myAccountOrdersStatus) tbody{
    display:table!important;min-width:540px;width:100%;
  }
  body.tpl_messagecard #checkoutSuccess #accountHistInfo :is(#orderHistoryHeading,#myAccountOrdersStatus) :is(th,td){
    padding:12px 10px!important;font-size:11px!important;
  }
  body.tpl_messagecard #checkoutSuccess #accountHistInfo :is(#myAccountShipInfo,#myAccountPaymentInfo){
    float:none!important;width:100%!important;margin:12px 0!important;padding:17px 18px!important;
  }
  body.tpl_messagecard #checkoutSuccess #accountHistInfo #orderTotals{padding:16px!important}
  body.tpl_messagecard #checkoutSuccess #accountHistInfo #orderTotals :is(.lineTitle,.amount){font-size:12px!important}
  body.tpl_messagecard #checkoutSuccess #accountHistInfo #orderTotals .amount{min-width:75px;margin-left:9px!important}
  body.tpl_messagecard #checkoutSuccess #accountHistInfo #orderTotals .lineTitle{
    width:calc(100% - 88px)!important;max-width:calc(100% - 88px)!important;
    text-align:right!important;
  }
  body.tpl_messagecard #checkoutSuccess #csNotifications legend{
    max-width:100%!important;font-size:14px!important;white-space:normal!important;
  }
  body.tpl_messagecard #checkoutSuccess #csNotifications{padding:17px 16px!important;margin:28px auto!important}
}
