:root {
  --dp-navy: #0b1f3a;
  --dp-blue: #1769ff;
  --dp-blue-dark: #0e4dcc;
  --dp-cyan: #11b7c9;
  --dp-ink: #10233f;
  --dp-muted: #6d7b91;
  --dp-border: #dfe7f2;
  --dp-soft: #f5f8fc;
  --dp-green: #0c9a6a;
  --dp-red: #c23c55;
  --dp-shadow: 0 18px 50px rgba(18, 51, 91, .12);
}

* { box-sizing: border-box; }
html { background: #edf3fa; }
body.dp-page {
  margin: 0;
  min-width: 320px;
  color: var(--dp-ink);
  background: linear-gradient(145deg, #eff6ff 0%, #ffffff 48%, #eef9fb 100%);
  font-family: Segoe UI, Arial, sans-serif;
  line-height: 1.55;
}
.dp-page button { font: inherit; }
.dp-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 70px; }
.dp-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.dp-eyebrow, .dp-section-kicker { display: block; color: var(--dp-blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dp-header h1 { margin: 4px 0 0; color: var(--dp-navy); font-size: clamp(26px, 4vw, 44px); line-height: 1.1; }
.dp-statusbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--dp-muted); font-size: 13px; }
.dp-private-badge, .dp-expired-badge, .dp-type-badge, .dp-discount { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 11px; font-weight: 800; }
.dp-private-badge { color: #075d52; background: #d9f6ee; }
.dp-expired-badge { color: #8b263d; background: #ffe0e6; }
.dp-type-badge { color: #fff; background: linear-gradient(135deg, var(--dp-blue), var(--dp-cyan)); }
.dp-id { direction: ltr; unicode-bidi: plaintext; }
.dp-hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 22px; align-items: stretch; }
.dp-media-card, .dp-info-card, .dp-content-card, .dp-empty { border: 1px solid rgba(198, 213, 231, .9); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: var(--dp-shadow); }
.dp-media-card { padding: 14px; }
.dp-media-frame { display: grid; min-height: 360px; overflow: hidden; place-items: center; border-radius: 16px; background: linear-gradient(145deg, #f3f7fc, #e7f2f5); }
.dp-media-frame img { display: block; width: 100%; max-height: 620px; object-fit: contain; }
.dp-media-placeholder { color: var(--dp-muted); font-weight: 700; }
.dp-info-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(24px, 5vw, 54px); }
.dp-info-card h2 { margin: 14px 0 12px; color: var(--dp-navy); font-size: clamp(26px, 4vw, 46px); line-height: 1.08; }
.dp-lead { max-width: 60ch; margin: 0; color: #41536d; font-size: 18px; white-space: normal; }
.dp-muted { margin: 16px 0 0; color: var(--dp-muted); font-size: 13px; }
.dp-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 0; }
.dp-price-row strong { color: var(--dp-green); font-size: 30px; }
.dp-price-row del { color: var(--dp-muted); font-size: 18px; }
.dp-discount { color: #7d3c00; background: #ffe9b9; }
.dp-highlight { margin-top: 20px; padding: 10px 14px; border-right: 4px solid var(--dp-cyan); color: #17445d; background: #e7f8fb; font-weight: 800; }
.dp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.dp-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; padding: 10px 16px; color: var(--dp-ink); cursor: pointer; text-decoration: none; font-weight: 800; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.dp-button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(11,31,58,.12); }
.dp-button-primary { color: #fff; background: var(--dp-blue); }
.dp-button-primary:hover { background: var(--dp-blue-dark); }
.dp-button-secondary { color: #0a5b86; border-color: #9ed6e7; background: #e9f9fd; }
.dp-button-ghost { border-color: var(--dp-border); background: #fff; }
.dp-content-card { margin-top: 22px; padding: clamp(22px, 4vw, 36px); }
.dp-section-heading { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--dp-border); padding-bottom: 12px; }
.dp-section-heading h2 { margin: 0; color: var(--dp-navy); font-size: 24px; }
.dp-rich-text { margin-top: 20px; color: #30445f; font-size: 17px; white-space: pre-line; overflow-wrap: anywhere; }
.dp-imported-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.dp-imported-image { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--dp-border); border-radius: 14px; background: var(--dp-soft); }
.dp-imported-image img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.dp-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; }
.dp-specs > div { padding: 14px; border: 1px solid var(--dp-border); border-radius: 14px; background: var(--dp-soft); }
.dp-specs dt { color: var(--dp-muted); font-size: 12px; font-weight: 800; }
.dp-specs dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.dp-code-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 20px; }
.dp-code { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; border: 1px dashed #83cbd7; border-radius: 14px; padding: 15px; color: var(--dp-ink); background: #f2fdff; cursor: pointer; text-align: right; }
.dp-code:hover { border-color: var(--dp-blue); background: #eaf3ff; }
.dp-code small, .dp-code span { color: var(--dp-muted); font-size: 12px; }
.dp-code strong { direction: ltr; font-size: 21px; letter-spacing: .08em; }
.dp-empty { display: flex; flex-direction: column; gap: 5px; padding: 40px; color: var(--dp-muted); }
.dp-empty strong { color: var(--dp-red); font-size: 22px; }

@media (max-width: 820px) {
  .dp-shell { width: min(100% - 22px, 620px); padding-top: 18px; }
  .dp-header { align-items: flex-start; flex-direction: column; }
  .dp-header .dp-button { width: 100%; }
  .dp-hero { grid-template-columns: 1fr; }
  .dp-media-frame { min-height: 240px; }
  .dp-info-card { padding: 24px; }
  .dp-info-card h2 { font-size: 32px; }
  .dp-lead { font-size: 16px; }
  .dp-actions { width: 100%; }
  .dp-actions .dp-button { flex: 1 1 140px; }
  .dp-specs { grid-template-columns: 1fr; }
}

.dp-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.dp-preview-header h1 { margin: 4px 0 0; color: var(--dp-navy); font-size: clamp(26px, 4vw, 44px); line-height: 1.1; }
.dp-preview-type { display: flex; align-items: center; min-height: 32px; }
.dp-page-type-badge { margin-top: 4px; }
.dp-main { display: block; }
.dp-short-description { white-space: pre-line; }
.dp-rich-text { white-space: normal; line-height: 1.75; }
.dp-rich-text h1, .dp-rich-text h2, .dp-rich-text h3, .dp-rich-text h4 { margin: 1.2em 0 .45em; color: var(--dp-navy); line-height: 1.2; }
.dp-rich-text h1 { font-size: 30px; }
.dp-rich-text h2 { font-size: 26px; }
.dp-rich-text h3 { font-size: 22px; }
.dp-rich-text p { margin: .7em 0; }
.dp-rich-text ul, .dp-rich-text ol { margin: .8em 0; padding-inline-start: 1.6em; }
.dp-rich-text li { margin: .35em 0; }
.dp-rich-text blockquote { margin: 1em 0; border-right: 4px solid var(--dp-cyan); padding: .7em 1em; color: #405774; background: #f2fbfd; }
.dp-rich-text table { width: 100%; margin: 1em 0; border-collapse: collapse; overflow: hidden; border: 1px solid var(--dp-border); border-radius: 10px; }
.dp-rich-text th, .dp-rich-text td { border: 1px solid var(--dp-border); padding: 9px 11px; text-align: right; vertical-align: top; }
.dp-rich-text th { color: var(--dp-navy); background: var(--dp-soft); font-weight: 800; }
.dp-rich-text img { display: block; max-width: 100%; height: auto; margin: 1em auto; border-radius: 12px; }
.dp-rich-text a { color: var(--dp-blue-dark); text-decoration: underline; }
.share-menu-wrap { position: relative; display: inline-flex; }
.share-menu { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; display: grid; min-width: 170px; gap: 4px; padding: 8px; border: 1px solid var(--dp-border); border-radius: 12px; background: #fff; box-shadow: var(--dp-shadow); }
.share-menu[hidden] { display: none; }
.share-menu a, .share-menu button { display: block; width: 100%; border: 0; border-radius: 8px; padding: 8px 10px; color: var(--dp-ink); background: transparent; cursor: pointer; text-align: right; text-decoration: none; }
.share-menu a:hover, .share-menu button:hover { background: var(--dp-soft); }

@media (max-width: 820px) {
  .dp-preview-header { align-items: center; flex-direction: row; justify-content: space-between; gap: 10px; direction: rtl; }
  .dp-preview-header .dp-preview-type { min-width: 0; flex: 0 1 auto; }
  .dp-preview-header .dp-button { width: auto; max-width: 100%; flex: 0 0 auto; white-space: nowrap; }
  .share-menu-wrap { flex: 0 0 auto; }
  .share-menu-wrap > .dp-button { width: auto; }
  .share-menu { left: 0; right: auto; }
}

.dp-coupon-toast { position: fixed; z-index: 2147483000; right: 12px; bottom: 12px; left: 12px; pointer-events: none; display: flex; align-items: flex-start; gap: 12px; width: min(420px, calc(100vw - 24px)); margin: 0 auto; overflow: hidden; transform: translateY(10px); border: 1px solid #cfe8dc; border-radius: 16px; padding: 15px 16px 18px; color: #14382d; background: #fbfffd; box-shadow: 0 14px 36px rgba(11, 31, 58, .18); opacity: 0; animation: dpToastIn .22s ease-out forwards; }
.dp-coupon-toast[hidden] { display: none; }
.dp-coupon-toast.is-error { border-color: #f0caca; color: #5b2020; background: #fffafa; }
.dp-toast-icon { display: inline-grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #fff; background: #16a36b; font-size: 18px; font-weight: 900; line-height: 1; }
.is-error .dp-toast-icon { background: #c95050; }
.dp-toast-content { display: grid; min-width: 0; gap: 3px; }
.dp-toast-title { font-size: 15px; line-height: 1.3; }
.dp-toast-message { color: #526b60; font-size: 13px; line-height: 1.45; }
.is-error .dp-toast-message { color: #7d4d4d; }
.dp-toast-progress { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; transform-origin: right center; background: #16a36b; animation: dpToastProgress 2s linear forwards; }
.dp-manual-copy { min-width: 220px; margin-top: 5px; border: 1px solid #e1aaaa; border-radius: 8px; padding: 8px 10px; direction: ltr; color: var(--dp-ink); background: #fff; font-weight: 800; }
@keyframes dpToastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dpToastProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  .dp-button { transition: none; }
  .dp-button:hover { transform: none; }
  .dp-coupon-toast { animation: none; transform: none; opacity: 1; }
  .dp-toast-progress { animation: none; transform: scaleX(0); }
}
/* Final coupon toast placement: bottom of the viewport on every screen size. */
.dp-coupon-toast:not([hidden]) {
  position: fixed !important;
  top: auto !important;
  right: auto !important;
  bottom: calc(20px + env(safe-area-inset-bottom)) !important;
  left: 50% !important;
  width: min(420px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
  z-index: 2147483000 !important;
}

/* Coupon code row alignment */
@media (min-width:900px){.dp-code-grid{grid-template-columns:repeat(5,minmax(140px,170px));justify-content:start;align-items:stretch}.dp-code{width:100%;min-width:0;min-height:132px;justify-content:center}}

.dp-actions .dp-button{min-height:44px}
.dp-actions .dp-button bdi{margin-inline-start:.25em}
.aliwoow-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.aliwoow-related-grid .mixed-card{display:flex;flex-direction:column;min-width:0}
.aliwoow-related-grid .deal-image-wrap{aspect-ratio:1;display:grid}
.aliwoow-related-grid .deal-image{width:100%;height:100%;object-fit:contain}
.aliwoow-related-grid .deal-title,.aliwoow-related-grid .deal-title a{min-height:0;-webkit-line-clamp:2!important}
.aliwoow-related-grid .deal-body{padding:9px!important;gap:5px!important}
.aliwoow-related-grid .deal-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px}
@media(max-width:760px){.aliwoow-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:640px){
  .dp-actions{position:relative}
  .dp-actions .share-menu-wrap{position:static}
  .dp-actions .share-menu{left:auto;right:0;max-inline-size:100%}
}

.dp-coupon-calculator{margin-block-start:14px;border:1px solid var(--dp-border);border-radius:10px;padding:8px 10px;max-inline-size:450px}
.dp-coupon-calculator summary{cursor:pointer;font-weight:700}
.dp-coupon-calculator label{display:block;margin-block:8px;font-size:.9rem}
.dp-coupon-calculator input,.dp-coupon-calculator select{display:block;max-width:100%;width:100%;min-height:36px;margin-block-start:3px;border:1px solid var(--dp-border);border-radius:6px;padding:4px 6px}
.dp-coupon-calculator output{display:block;font-weight:700;font-size:.9rem;overflow-wrap:anywhere}

.dp-item-report{margin-block-start:8px;max-inline-size:320px;font-size:.84rem}
.dp-item-report summary{cursor:pointer;width:fit-content;color:#475569;text-decoration:underline}
.dp-item-report form{padding:8px 0}
.dp-item-report select{display:block;width:100%;min-height:36px;margin-block:4px 6px}
.dp-item-report button{padding:4px 8px;min-height:34px;cursor:pointer}
.dp-item-report [data-report-message]{margin:5px 0 0}
.dp-item-report .report-trap{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
