/* MoodTag engraving preview (item 132): the styles of Code Snippets #111 (dual preview), #116 (one-sided preview),
   #112 (step headers), #114 (Front/Back tabs + Plus block) and #115 (Plus block tweaks), in one file.
   Per-product values (text top, line widths, gaps) are printed inline by preview.php.
   #114 forced everything with !important (230 of them). Here the tab and Plus rules use the form's own id chain
   (#wrapper form.cart ...) for weight instead; the few !important left are commented: each one beats an inline style
   or a browser default that no selector can. */

/* ---------- Preview stage (dual, #111) ---------- */
.mt-epo-dual-wrapper { width: 100%; max-width: 420px; margin: 22px auto; font-family: 'Manrope', sans-serif; }
.mt-epo-dual-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.08); background: #fff; }
#mt-epo-dual-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.2s ease; }
.mt-epo-side-badge { position: absolute; top: 12px; left: 12px; z-index: 120; padding: 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); color: #2f3a4a; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 800; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,0.10); backdrop-filter: blur(6px); pointer-events: none; }
.mt-epo-dual-etch { position: absolute; left: 50%; width: 100%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; color: #fff !important; /* as #111: the theme colours spans inside the summary */ text-shadow: 0 1px 3px rgba(0,0,0,0.5); z-index: 99; transition: opacity 0.2s ease; font-family: 'Manrope', sans-serif; }
#mt-epo-back-etch { display: none; }
.mt-epo-etch-l { display: block; line-height: 1.1; margin-left: auto; margin-right: auto; white-space: nowrap; overflow: hidden; }
#mt-epo-f-name, #mt-epo-b-owner { font-weight: 800; }
#mt-epo-f-quote, #mt-epo-f-custom, #mt-epo-b-phone, #mt-epo-b-rego { font-weight: 600; }
.mt-epo-dual-note { margin-top: 12px; font-size: 13px; color: #888; text-align: center; opacity: 0.9; }
@media (max-width: 480px) { .mt-epo-side-badge { top: 10px; left: 10px; font-size: 11px; padding: 6px 10px; } }

/* ---------- Preview stage (one side, #116) ---------- */
.mt-luxe-wrapper:not(.mt-epo-luxe-wrapper) { display: none !important; } /* as #116: hides the retired older preview */
.mt-epo-luxe-wrapper { width: 100%; max-width: 420px; margin: 22px auto; font-family: 'Manrope', sans-serif; }
.mt-epo-luxe-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.08); background: #fff; }
#mt-epo-luxe-preview-bg { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.2s ease; }
.mt-epo-luxe-badge { position: absolute; top: 12px; left: 12px; z-index: 120; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,0.9); color: #2f3a4a; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 800; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,0.10); backdrop-filter: blur(6px); pointer-events: none; }
.mt-epo-luxe-etch { position: absolute; left: 50%; width: 100%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; color: #fff !important; /* as #116 */ text-shadow: 0 1px 3px rgba(0,0,0,0.5); z-index: 99; transition: top 0.2s ease; font-family: 'Manrope', sans-serif; }
.mt-epo-luxe-line { display: block; line-height: 1.1; margin-left: auto; margin-right: auto; white-space: nowrap; overflow: hidden; }
#mt-epo-luxe-l1 { font-weight: 800; }
#mt-epo-luxe-l2, #mt-epo-luxe-l3 { font-weight: 600; }
.mt-epo-luxe-note { margin-top: 12px; font-size: 13px; color: #888; text-align: center; opacity: 0.9; font-family: 'Manrope', sans-serif; font-weight: 700; }
@media (max-width: 480px) { .mt-epo-luxe-badge { top: 10px; left: 10px; font-size: 11px; padding: 6px 10px; } }

/* ---------- New: several lines in one field, and the "will engrave small" note ---------- */
.mt-epo-etch-l.mtd-e-multi, .mt-epo-luxe-line.mtd-e-multi { overflow: visible; }
.mtd-e-sub { display: block; white-space: nowrap; overflow: hidden; line-height: 1.1; }
.mtd-engrave-small { margin: 10px auto 0; max-width: 420px; padding: 9px 12px; border-radius: 10px; background: #fff7e6; color: #7a4a00; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; line-height: 1.4; text-align: center; }
.mtd-engrave-small[hidden] { display: none; }

/* ---------- Step headers (#112) ---------- */
.mt-custom-bridge:not(.mt-epo-step-bridge) { display: none !important; } /* as #112: the retired add-ons step guide */
.mt-dynamic-step-container:not(.mt-epo-step-container) { display: none !important; } /* as #112 */
.mt-step-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; font-family: 'Manrope', sans-serif; }
.mt-step-badge { background: #1a1a1a; color: #ffffff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 5px 11px; border-radius: 4px; flex-shrink: 0; line-height: 1; }
#wrapper .mt-step-header h3 { font-size: 22px; font-weight: 800; color: #1a1a1a; margin: 0; text-transform: none; letter-spacing: -0.2px; line-height: 1.25; font-family: 'Manrope', sans-serif; }
.mt-custom-bridge { margin-bottom: 30px; padding-bottom: 28px; border-bottom: 2px dashed #eef7f2; }
.mt-custom-bridge p { font-size: 15px; font-weight: 400; color: #555; margin: 10px 0 0 0; line-height: 1.45; font-family: 'Manrope', sans-serif; max-width: 720px; }
.mt-custom-bridge p strong { font-weight: 800; color: #333; }
.mt-epo-step-container { display: block; margin-top: 34px; margin-bottom: 22px; padding-top: 28px; border-top: 2px dashed #eef7f2; }
#wrapper .mt-epo-step-container p { display: none; }
#wrapper form.cart .mt-epo-step-font-section, #wrapper form.cart .mt-epo-step-customise-section { border: 0; background: transparent; box-shadow: none; padding: 0; margin-top: 0; }
#wrapper form.cart .mt-epo-step-font-section > .tc-section-inner-wrap, #wrapper form.cart .mt-epo-step-customise-section > .tc-section-inner-wrap, #wrapper form.cart .mt-epo-step-font-section .tm-box, #wrapper form.cart .mt-epo-step-customise-section .tm-box { border: 0; background: transparent; box-shadow: none; padding-left: 0; padding-right: 0; }
#wrapper form.cart .mt-epo-step-font-section .tm-section-label, #wrapper form.cart .mt-epo-step-customise-section .tm-section-label { display: none; }
#wrapper form.cart .mt-epo-step-font-section .tc-container, #wrapper form.cart .mt-epo-step-customise-section .tc-container { background: transparent; }
#wrapper form.cart .mt-epo-step-font-section .mt-epo-font-div { margin-top: 0; }
#wrapper form.cart .mt-epo-step-customise-section .tc-tabs { margin-top: 8px; font-family: 'Manrope', sans-serif; }
@media (max-width: 600px) {
  .mt-step-header { gap: 10px; align-items: center; }
  .mt-step-badge { font-size: 9px; padding: 5px 9px; }
  #wrapper .mt-step-header h3 { font-size: 19px; }
  .mt-custom-bridge p, .mt-epo-step-container p { font-size: 14px; }
}

/* ---------- Front / Back tabs (#114) ---------- */
#wrapper form.cart .mt-epo-step-customise-section .tc-tabs, #wrapper form.cart .mt-epo-step-customise-section .tc-tabs-wrap, #wrapper form.cart .mt-epo-step-customise-section .tc-tab-headers, #wrapper form.cart .mt-epo-step-customise-section .tc-tab-content, #wrapper form.cart .mt-epo-step-customise-section .tc-tab-slide, #wrapper form.cart .mt-epo-step-customise-section .tab-header, #wrapper form.cart .mt-epo-step-customise-section .tc-tab-header { border: 0; outline: 0; box-shadow: none; }
#wrapper form.cart .mt-epo-step-customise-section .tc-tab-headers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; padding: 6px; background: #f6f8f7; border: 1px solid #e7eeeb; border-radius: 16px; }
#wrapper form.cart .mt-epo-step-customise-section .tc-tab-header { width: 100%; margin: 0; padding: 0; background: transparent; }
#wrapper form.cart .mt-epo-step-customise-section .tab-header { width: 100%; display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 16px 18px; border-radius: 12px; background: transparent; color: #334155; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
#wrapper form.cart .mt-epo-step-customise-section .tab-header-label { font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: inherit; }
#wrapper form.cart .mt-epo-step-customise-section .tab-header.open { background: #2FA66A; color: #ffffff; box-shadow: 0 8px 22px rgba(47, 166, 106, 0.22); }
#wrapper form.cart .mt-epo-step-customise-section .tab-header:not(.open):hover { background: #ffffff; color: #1f2937; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06); }
#wrapper form.cart .mt-epo-step-customise-section .tc-tab-content { background: #ffffff; border: 1px solid #e5ebe8; border-radius: 18px; padding: 26px 28px 28px; box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04); }
#wrapper form.cart .mt-epo-step-customise-section .tc-tab-slide { padding: 0; background: transparent; }
#wrapper form.cart .mt-epo-step-customise-section .tc-epo-element-label-text { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: #111827; }
#wrapper form.cart .mt-epo-step-customise-section input.tmcp-textfield, #wrapper form.cart .mt-epo-step-customise-section textarea.tmcp-textarea { border: 1px solid #d7e0dc; border-radius: 10px; min-height: 54px; padding: 13px 16px; font-family: 'Manrope', sans-serif; font-size: 18px; color: #1f2937; background: #ffffff; box-shadow: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
#wrapper form.cart .mt-epo-step-customise-section input.tmcp-textfield:focus, #wrapper form.cart .mt-epo-step-customise-section textarea.tmcp-textarea:focus { border-color: #2FA66A; box-shadow: 0 0 0 3px rgba(47, 166, 106, 0.12); outline: none; }
#wrapper form.cart .mt-epo-step-customise-section .tc-container.cpf-element { margin-bottom: 24px; }
#wrapper form.cart .mt-epo-step-customise-section .tc-container.cpf-element:last-child { margin-bottom: 0; }

/* ---------- Plus block under the preview (#114 + #115) ---------- */
#wrapper form.cart .mt-epo-upsell-moved { display: block; width: 100%; max-width: 640px; margin: 22px auto 28px; padding: 0; clear: both; list-style: none; }
#wrapper form.cart .mt-epo-upsell-moved, #wrapper form.cart .mt-epo-upsell-moved * { box-sizing: border-box; }
#wrapper form.cart .mt-epo-upsell-moved ul, #wrapper form.cart .mt-epo-upsell-moved li { list-style: none; }
#wrapper form.cart .mt-epo-upsell-moved .tm-section-label { display: block; margin: 0 0 10px; padding: 0; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 900; line-height: 1.1; letter-spacing: 0.08em; text-transform: uppercase; color: #111827; }
#wrapper form.cart .mt-epo-upsell-moved .tc-section-label-text { font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 900; line-height: 1.1; letter-spacing: 0.08em; text-transform: uppercase; color: #111827; }
#wrapper form.cart .mt-epo-upsell-moved .cpf-section, #wrapper form.cart .mt-epo-upsell-moved .tc-section-inner-wrap, #wrapper form.cart .mt-epo-upsell-moved .tc-section-fields, #wrapper form.cart .mt-epo-upsell-moved .tc-row, #wrapper form.cart .mt-epo-upsell-moved .tc-cell, #wrapper form.cart .mt-epo-upsell-moved .tc-element-inner-wrap, #wrapper form.cart .mt-epo-upsell-moved .tc-element-container, #wrapper form.cart .mt-epo-upsell-moved .tmcp-ul-wrap { width: 100%; max-width: none; background: transparent; border: 0; box-shadow: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
#wrapper form.cart .mt-epo-upsell-moved .tc-product-hidden, #wrapper form.cart .mt-epo-upsell-moved .tc-epo-element-product-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
/* EPO hides the product card with inline display:none and .tm-hidden; the script shows it, these keep it shown. */
#wrapper form.cart .mt-epo-upsell-moved .tc-epo-element-product-li-container, #wrapper form.cart .mt-epo-upsell-moved .tc-epo-element-product-li-container.tm-hidden, #wrapper form.cart .mt-epo-upsell-moved .tc-epo-element-product-container-wrap, #wrapper form.cart .mt-epo-upsell-moved .tc-epo-element-product-container.tm-hidden { display: block !important; visibility: visible !important; opacity: 1 !important; height: auto !important; overflow: visible !important; }
#wrapper form.cart .mt-epo-upsell-moved .tc-epo-element-product-container { display: grid !important; /* beats the inline display EPO sets */ visibility: visible !important; opacity: 1 !important; height: auto !important; overflow: visible !important; grid-template-columns: 124px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 20px; background: #ffffff; border: 1px solid #e5ebe8; border-radius: 18px; box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04); }
#wrapper form.cart .mt-epo-upsell-moved .tc-epo-element-product-container-left, #wrapper form.cart .mt-epo-upsell-moved .tc-epo-element-product-container-right { width: auto; max-width: none; flex: none; padding: 0; }
#wrapper form.cart .mt-epo-upsell-moved .tc-epo-element-product-container-cart { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 0; padding: 0; }
#wrapper form.cart .mt-epo-upsell-moved .tc-product-image { margin: 0; }
#wrapper form.cart .mt-epo-upsell-moved .tc-associated-product-image { display: block; width: 124px; height: 124px; object-fit: cover; border-radius: 12px; }
#wrapper form.cart .mt-epo-upsell-moved .product-title { margin: 0 0 6px; padding: 0; font-family: 'Manrope', sans-serif; font-size: 18px; /* #115: 20px less 2 */ font-weight: 850; line-height: 1.18; color: #1f2937; letter-spacing: -0.03em; }
#wrapper form.cart .mt-epo-upsell-moved .product-price, #wrapper form.cart .mt-epo-upsell-moved .associated-price, #wrapper form.cart .mt-epo-upsell-moved .price, #wrapper form.cart .mt-epo-upsell-moved .amount, #wrapper form.cart .mt-epo-upsell-moved .mt-epo-injected-price { display: block !important; /* EPO hides the price inline */ visibility: visible !important; opacity: 1 !important; height: auto; margin: 0 0 7px; padding: 0; font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 800; line-height: 1.18; color: #1f2937; }
#wrapper form.cart .mt-epo-upsell-moved .stock { display: none; } /* #115: no "In stock" line */
#wrapper form.cart .mt-epo-upsell-moved .tm-quantity-alt { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; }
#wrapper form.cart .mt-epo-upsell-moved .tm-quantity-alt .quantity { width: 62px; height: 46px; margin: 0; display: block; position: relative; overflow: visible; }
#wrapper form.cart .mt-epo-upsell-moved .tm-quantity-alt input[type="number"].tm-qty-alt { width: 62px; height: 46px; min-height: 46px; padding: 0 4px; margin: 0; text-align: center; font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 800; color: #1f2937; background: #ffffff; border: 1px solid #d7e0dc; border-radius: 8px; box-shadow: none; line-height: 46px; appearance: auto !important; -moz-appearance: number-input !important; -webkit-appearance: auto !important; /* the theme removes the number arrows; these put the browser's back */ }
#wrapper form.cart .mt-epo-upsell-moved .tm-quantity-alt input[type="number"].tm-qty-alt::-webkit-outer-spin-button, #wrapper form.cart .mt-epo-upsell-moved .tm-quantity-alt input[type="number"].tm-qty-alt::-webkit-inner-spin-button { -webkit-appearance: inner-spin-button !important; opacity: 1 !important; display: block !important; margin: 0; }
#wrapper form.cart .mt-epo-upsell-moved .single_add_to_cart_product.button { min-height: 46px; padding: 0 22px; border: 0; border-radius: 8px; background: #2FA66A; color: #ffffff; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 800; line-height: 46px; box-shadow: none; transition: background 0.2s ease, transform 0.2s ease; }
#wrapper form.cart .mt-epo-upsell-moved .single_add_to_cart_product.button:hover { background: #278f5b; transform: translateY(-1px); }
@media (max-width: 600px) {
  #wrapper form.cart .mt-epo-step-customise-section .tc-tab-headers { gap: 6px; padding: 5px; border-radius: 14px; }
  #wrapper form.cart .mt-epo-step-customise-section .tab-header { min-height: 50px; padding: 13px 10px; border-radius: 10px; }
  #wrapper form.cart .mt-epo-step-customise-section .tab-header-label { font-size: 15px; }
  #wrapper form.cart .mt-epo-step-customise-section .tc-tab-content { padding: 20px 16px 22px; border-radius: 16px; }
  #wrapper form.cart .mt-epo-upsell-moved { max-width: 100%; margin: 20px auto 26px; }
  #wrapper form.cart .mt-epo-upsell-moved .tc-epo-element-product-container { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 16px; }
  #wrapper form.cart .mt-epo-upsell-moved .tc-associated-product-image { width: 88px; height: 88px; border-radius: 10px; }
  #wrapper form.cart .mt-epo-upsell-moved .product-title { font-size: 13px; /* #115: 15px less 2 */ margin-bottom: 5px; line-height: 1.18; }
  #wrapper form.cart .mt-epo-upsell-moved .product-price, #wrapper form.cart .mt-epo-upsell-moved .associated-price, #wrapper form.cart .mt-epo-upsell-moved .price, #wrapper form.cart .mt-epo-upsell-moved .amount, #wrapper form.cart .mt-epo-upsell-moved .mt-epo-injected-price { font-size: 14px; margin-bottom: 6px; line-height: 1.15; }
  #wrapper form.cart .mt-epo-upsell-moved .tm-quantity-alt { gap: 10px; }
  #wrapper form.cart .mt-epo-upsell-moved .tm-quantity-alt .quantity, #wrapper form.cart .mt-epo-upsell-moved .tm-quantity-alt input[type="number"].tm-qty-alt { width: 56px; height: 42px; min-height: 42px; line-height: 42px; }
  #wrapper form.cart .mt-epo-upsell-moved .single_add_to_cart_product.button { min-height: 42px; line-height: 42px; padding: 0 16px; font-size: 14px; }
}
