#product .wz-legacy-customization-button { display: none !important; }

/* Product pages: remove the legacy demo sidebar and give the real card the full grid. */
body#product #left-column { display: none !important; }
body#product #content-wrapper.js-content-wrapper {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

#product .wz-personalization-card-v2 {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  margin: 22px 0 18px;
  padding: 18px;
  border: 1px solid #ffd36b;
  border-radius: 18px;
  background: linear-gradient(145deg, #fffdf7 0%, #fff 72%);
  box-shadow: 0 10px 28px rgba(50, 42, 30, .08);
}
#product .wz-personalization-card-v2__media { position: relative; min-width: 0; }
#product .wz-personalization-card-v2__media img { width: 100%; aspect-ratio: 1/1; object-fit: contain; border-radius: 14px; background: #fff; }
#product .wz-personalization-card-v2__media span { display: block; margin-top: 8px; padding: 6px 8px; border-radius: 999px; background: #263646; color: #fff; font-size: 10px; font-weight: 800; line-height: 1.2; text-align: center; }
#product .wz-personalization-card-v2__content { min-width: 0; }
body#product #product-customization-sidebar.active { transform: translateX(0) !important; }
#product #product-customization-sidebar [data-wz-card-v2-save] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
}
#product #product-customization-sidebar .product-customization-save-buttom > span.btn-primary { display: none !important; }
#product .wz-personalization-card-v2__eyebrow { margin: 0 0 5px; color: #bd7200; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
#product .wz-personalization-card-v2 h2 { margin: 0 0 7px; color: #242424; font-size: 23px; line-height: 1.12; }
#product .wz-personalization-card-v2__content > p:not(.wz-personalization-card-v2__eyebrow) { margin: 0 0 12px; color: #5d5d5d; font-size: 14px; line-height: 1.45; }
#product .wz-personalization-card-v2 ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
#product .wz-personalization-card-v2 li { display: flex; align-items: center; gap: 6px; color: #434343; font-size: 12px; }
#product .wz-personalization-card-v2 li b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff0c5; color: #9a5a00; }
#product .wz-personalization-card-v2__cta { width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 12px; background: #ff9900; color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; }
#product .wz-personalization-card-v2__cta:hover { background: #e78600; }

#product-customization-sidebar .wz-card-v2-builder { margin: 12px 0 18px; padding: 18px; border: 1px solid #f0d28c; border-radius: 16px; background: #fffdf8; }
#product-customization-sidebar .wz-card-v2-builder__eyebrow { margin: 0 0 3px; color: #bd7200; font-size: 11px; font-weight: 800; letter-spacing: .09em; }
#product-customization-sidebar .wz-card-v2-builder h3 { margin: 0 0 12px; color: #2d2d2d; font-size: 21px; }
#product-customization-sidebar .wz-card-v2-builder__presets { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 10px; }
#product-customization-sidebar .wz-card-v2-builder__presets button { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; min-height: 72px; padding: 10px; border: 1px solid #e1d6bd; border-radius: 12px; background: #fff; color: #3e3e3e; text-align: left; cursor: pointer; }
#product-customization-sidebar .wz-card-v2-builder__presets button b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff0c5; color: #9a5a00; }
#product-customization-sidebar .wz-card-v2-builder__presets button span { font-size: 12px; line-height: 1.3; }
#product-customization-sidebar .wz-card-v2-builder__presets button.is-selected { border-color: #ff9900; box-shadow: 0 0 0 2px rgba(255,153,0,.17); }
#product-customization-sidebar .wz-card-v2-builder__own { width: 100%; margin-bottom: 14px; padding: 11px; border: 1px solid #ff9900; border-radius: 10px; background: #fff; color: #b66d00; font-weight: 700; cursor: pointer; }
#product-customization-sidebar .wz-card-v2-builder__own.is-selected { background: #fff5dc; }
#product-customization-sidebar .wz-card-v2-builder__own-field { display: none; margin: -4px 0 15px; color: #333; font-weight: 700; }
#product-customization-sidebar .wz-card-v2-builder__own-field.is-visible { display: block; }
#product-customization-sidebar .wz-card-v2-builder textarea,
#product-customization-sidebar .wz-card-v2-builder input { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #d7d7d7; border-radius: 10px; background: #fff; color: #222; font: inherit; }
#product-customization-sidebar .wz-card-v2-builder textarea { min-height: 92px; resize: vertical; }
#product-customization-sidebar .wz-card-v2-builder__names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
#product-customization-sidebar .wz-card-v2-builder__names label { color: #333; font-size: 13px; font-weight: 700; }
#product-customization-sidebar .wz-card-v2-builder__engraving-line { display: block; margin-bottom: 14px; color: #333; font-size: 13px; font-weight: 700; }
#product-customization-sidebar .wz-card-v2-builder__summary { padding: 12px; border-radius: 10px; background: #f4f7f8; color: #3b4650; }
#product-customization-sidebar .wz-card-v2-builder__summary b,
#product-customization-sidebar .wz-card-v2-builder__summary span { display: block; }
#product-customization-sidebar .wz-card-v2-builder__summary span { margin-top: 4px; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
#product-customization-sidebar .wz-card-v2-native-text > .card-title,
#product-customization-sidebar .wz-card-v2-native-text > span,
#product-customization-sidebar .wz-card-v2-native-text > textarea { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }
#product-customization-sidebar .wz-card-v2-file { margin: 0 0 16px; padding: 16px; border: 1px dashed #ff9900; border-radius: 14px; background: #fffaf0; }
#product-customization-sidebar .wz-card-v2-file label { display: block; margin-bottom: 8px; color: #2c2c2c; font-size: 17px; font-weight: 800; }
#product-customization-sidebar .wz-card-v2-file input { width: 100%; padding: 10px; border: 1px solid #e2d2af; border-radius: 10px; background: #fff; }
#product-customization-sidebar .wz-card-v2-file small { display: block; margin-top: 7px; color: #746a59; }
#product-customization-sidebar .wz-card-v2-file-preview { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: #4d4d4d; font-size: 12px; overflow-wrap: anywhere; }
#product-customization-sidebar .wz-card-v2-file-preview img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }

#product-customization-sidebar .wz-sentence-picker { margin: 0 0 18px; padding: 16px; border: 1px solid #ffd28f; border-radius: 14px; background: #fffaf2; }
#product-customization-sidebar .wz-sentence-picker__eyebrow { margin: 0 0 4px; color: #b86100; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
#product-customization-sidebar .wz-sentence-picker__title { margin: 0; color: #171717; font-size: 20px; line-height: 1.25; }
#product-customization-sidebar .wz-sentence-picker__help { margin: 8px 0 14px; color: #5a5a5a; font-size: 13px; line-height: 1.45; }
#product-customization-sidebar .wz-sentence-picker__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
#product-customization-sidebar .wz-sentence-choice { display: block; min-width: 0; padding: 0; overflow: hidden; border: 2px solid #ddd; border-radius: 11px; background: #fff; color: #202020; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
#product-customization-sidebar .wz-sentence-choice:hover,
#product-customization-sidebar .wz-sentence-choice:focus-visible,
#product-customization-sidebar .wz-sentence-choice.is-selected { border-color: #ff9900; box-shadow: 0 0 0 3px rgba(255,153,0,.2); outline: 0; }
#product-customization-sidebar .wz-sentence-choice__preview { display: block; width: 100%; aspect-ratio: .83; border-bottom: 1px solid #ececec; background-color: #f7f7f7; background-repeat: no-repeat; background-size: 200% 200%; }
#product-customization-sidebar .wz-sentence-choice__label { display: block; padding: 9px 6px; font-size: 13px; font-weight: 800; text-align: center; }
#product-customization-sidebar .wz-sentence-choice.is-selected .wz-sentence-choice__label { background: #ff9900; color: #fff; }
#product-customization-sidebar .wz-sentence-picker__custom { width: 100%; margin: 12px 0 0; padding: 11px 12px; border: 1px solid #1f1f1f; border-radius: 8px; background: #fff; color: #1f1f1f; font-size: 13px; font-weight: 700; cursor: pointer; }
#product-customization-sidebar .wz-sentence-picker__custom:hover,
#product-customization-sidebar .wz-sentence-picker__custom:focus-visible,
#product-customization-sidebar .wz-sentence-picker__custom.is-selected { background: #1f1f1f; color: #fff; outline: 0; }
#product-customization-sidebar .wz-sentence-picker__status { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #fff0d6; color: #734500; font-size: 12px; font-weight: 650; line-height: 1.4; }
#product-customization-sidebar .wz-sentence-picker + textarea.product-message { min-height: 92px; }

@media (max-width: 767px) {
  #product .wz-personalization-card-v2 { grid-template-columns: 94px minmax(0,1fr); gap: 12px; padding: 13px; border-radius: 15px; }
  #product .wz-personalization-card-v2 h2 { font-size: 18px; }
  #product .wz-personalization-card-v2 ol { display: grid; grid-template-columns: 1fr; }
  #product .wz-personalization-card-v2__content > p:not(.wz-personalization-card-v2__eyebrow) { font-size: 13px; }
  #product-customization-sidebar .wz-card-v2-builder { padding: 13px; }
  #product-customization-sidebar .wz-card-v2-builder__presets,
  #product-customization-sidebar .wz-card-v2-builder__names { grid-template-columns: 1fr; }
  #product-customization-sidebar .wz-sentence-picker { padding: 12px; }
  #product-customization-sidebar .wz-sentence-picker__grid { gap: 8px; }
}

/* Selected ready-made sentence beside the final save action. */
.wz-selected-sentence-preview{display:flex;align-items:center;gap:16px;margin:16px 0;padding:14px;background:#fff8ed;border:1px solid #ffcf8b;border-radius:12px;scroll-margin-block:20px;}
.wz-selected-sentence-preview[hidden]{display:none!important;}
.wz-selected-sentence-preview__image{display:block;flex:0 0 100px;width:100px;height:140px;background-repeat:no-repeat;background-color:#fff;border-radius:6px;}
.wz-selected-sentence-preview strong{display:block;font-size:17px;color:#864d00;}
.wz-selected-sentence-preview p{font-size:14px;line-height:1.4;margin:8px 0;}
.wz-selected-sentence-preview button{border:1px solid #d67b00;border-radius:6px;background:#fff;padding:7px 10px;color:#864d00;font-size:14px;}
@media(max-width:360px){.wz-selected-sentence-preview{gap:10px;padding:10px;}.wz-selected-sentence-preview__image{flex-basis:75px;width:75px;height:105px;}}

/* A badge without an image must not reserve a separate media column. */
#product .wz-personalization-card-v2:not(:has(.wz-personalization-card-v2__media img)){grid-template-columns:minmax(0,1fr);gap:12px;}
#product .wz-personalization-card-v2__media:not(:has(img)) span{display:inline-block;width:auto;max-width:100%;margin-top:0;padding:7px 12px;}
#product .wz-personalization-card-v2 li b{flex-shrink:0;}
#product .mz-promo-badge{box-sizing:border-box;max-width:100%;width:100%;min-width:0;flex-wrap:wrap;white-space:normal;gap:6px 10px;}
#product .mz-promo-badge>span{min-width:0;white-space:normal;}

/* The responsive menu receives a duplicate search; keep the full search below the header. */
@media(max-width:991px){body#product #header .ets_mm_megamenu_content #search_block_top{display:none!important;}}

body.product-id-8087 .wz-sentence-choice[aria-pressed="true"] .wz-sentence-choice__label::after{content:' ✓ Wybrano';display:block;}
body.product-id-8087 .wz-pilot-preview{display:flex;flex-direction:column;align-items:stretch;scroll-margin-top:16px;gap:12px;padding:16px;}
body.product-id-8087 .wz-pilot-preview .wz-selected-sentence-preview__image{flex:none;width:min(100%,300px);height:auto;aspect-ratio:.83;margin:0 auto;}
body.product-id-8087 .wz-pilot-preview strong{font-size:20px;line-height:1.3;}
body.product-id-8087 .wz-pilot-preview button{margin:4px 8px 0 0;min-height:44px;}
body.product-id-8087 .wz-pilot-preview p{white-space:pre-wrap;overflow-wrap:anywhere;}
.wz-pilot-dialog{width:min(94vw,560px);max-height:94vh;padding:16px;border:1px solid #ffcf8b;border-radius:14px;overflow:auto;}
.wz-pilot-dialog::backdrop{background:rgba(0,0,0,.7);}
.wz-pilot-dialog h2{font-size:20px;margin:14px 0;}
.wz-pilot-close{position:sticky;top:0;background:#fff;border:1px solid #864d00;border-radius:8px;padding:10px;min-height:44px;}
.wz-pilot-large-image{width:100%;aspect-ratio:.83;background-repeat:no-repeat;background-color:#fff;}
.wz-pilot-saved,.wz-pilot-cart{padding:14px;margin:12px 0;border:1px solid #3a8055;border-radius:12px;background:#f1faf4;color:#245638;overflow-wrap:anywhere;}
.wz-pilot-saved a{display:block;text-decoration:underline;}
.wz-pilot-cart summary{cursor:pointer;font-weight:700;}
.wz-pilot-cart .wz-pilot-large-image{max-width:350px;margin:12px auto 0;}

/* Pilot 8087: bring the actions into view and make both touch targets obvious. */
body.product-id-8087 .wz-pilot-preview>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0;scroll-margin-block:24px;}
body.product-id-8087 .wz-pilot-preview>div>strong,body.product-id-8087 .wz-pilot-preview>div>p{grid-column:1/-1;}
body.product-id-8087 .wz-pilot-preview button{width:100%;min-height:52px;margin:0;padding:12px 14px;border:2px solid #a65b00;border-radius:10px;font-size:16px;font-weight:800;line-height:1.3;color:#864500;background:#fff;box-shadow:0 3px 8px rgba(134,69,0,.12);}
body.product-id-8087 .wz-pilot-preview button[data-wz-pilot-zoom]{background:#b86200;border-color:#b86200;color:#fff;}
body.product-id-8087 .wz-pilot-preview button:hover{filter:brightness(.93);}
body.product-id-8087 .wz-pilot-preview button:focus-visible{outline:3px solid #263646;outline-offset:3px;}
@media(max-width:480px){body.product-id-8087 .wz-pilot-preview>div{grid-template-columns:minmax(0,1fr);}}
