/* Add-on chrome only. No product images, cart buttons or demo styles are changed. */
.oxpdi-card,
.oxpdi-card *,
.oxpdi-modal,
.oxpdi-modal *,
.oxpdi-standalone * { box-sizing: border-box; }

.oxpdi-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    max-width: 100%;
    clear: both;
    margin: 18px 0 0;
    padding: 20px;
    border: 1px solid #414751;
    border-radius: 5px;
    background: #1b1e23;
    color: #f1f3f6;
    font-family: "Segoe UI", Arial, sans-serif;
    text-align: left;
    line-height: 1.45;
    box-shadow: none;
}
.oxpdi-card__copy { min-width: 0; }
.oxpdi-card .oxpdi-kicker {
    display: block;
    color: #bfc4ca;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1.2px;
    margin: 0 0 8px;
}
.oxpdi-card .oxpdi-card__title {
    color: #f1f3f6;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 6px;
    padding: 0;
    overflow-wrap: anywhere;
}
.oxpdi-card .oxpdi-card__text {
    margin: 0;
    padding: 0;
    color: #b1b7c2;
    font-size: 13px;
    line-height: 1.55;
}
.oxpdi-card a.oxpdi-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    max-width: 100%;
    width: auto;
    margin: 16px 0 0;
    padding: 10px 14px;
    border: 1px solid #bfc4ca;
    border-radius: 3px;
    background: transparent;
    color: #d8dce1;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    float: none;
    transition: background-color 120ms ease, color 120ms ease;
}
.oxpdi-card a.oxpdi-trigger:hover {
    background: rgba(191,196,202,.09);
    color: #f1f2f3;
    border-color: #d6d9dd;
    text-decoration: none;
}
.oxpdi-trigger svg {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.oxpdi-card .oxpdi-arrow { font-size: 18px; line-height: 1; }
.oxpdi-card .oxpdi-card__note {
    display: block;
    margin: 9px 0 0;
    color: #9ba5b4;
    font-size: 10.5px;
    line-height: 1.5;
}
.oxpdi-card a:focus-visible,
.oxpdi-modal a:focus-visible,
.oxpdi-modal button:focus-visible,
.oxpdi-standalone a:focus-visible {
    outline: 2px solid #d6d9dd;
    outline-offset: 3px;
}
.oxpdi-card a.oxpdi-trigger::before,
.oxpdi-card a.oxpdi-trigger::after { content: none; }

/* Native dialog top layer keeps product-gallery lightboxes behind the demo. */
dialog.oxpdi-modal {
    position: fixed;
    inset: 0;
    width: min(1360px, calc(100vw - 40px));
    height: min(1040px, calc(100vh - 40px));
    height: min(1040px, calc(100dvh - 40px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 1px solid #484f5b;
    border-radius: 6px;
    background: #101216;
    color: #f1f3f6;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 24px 80px #0006;
    overflow: hidden;
}
dialog.oxpdi-modal:not([open]) { display: none; }
dialog.oxpdi-modal[open] { display: flex; flex-direction: column; }
dialog.oxpdi-modal::backdrop { background: rgba(0,0,0,.74); }
.oxpdi-modal .oxpdi-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 0 0 auto;
    min-height: 53px;
    padding: 8px 12px 8px 18px;
    border-bottom: 1px solid #363c45;
    background: #1b1e23;
}
.oxpdi-modal .oxpdi-modal__title {
    flex: 1;
    min-width: 0;
    color: #f1f3f6;
    font: 600 14px/1.4 "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.oxpdi-modal .oxpdi-modal__separate {
    flex: none;
    color: #b1b7c2;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.oxpdi-modal .oxpdi-modal__separate:hover { color: #d8dce1; }
.oxpdi-modal .oxpdi-modal__close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    flex: none;
    margin: 0;
    padding: 0;
    border: 1px solid #484f5b;
    border-radius: 3px;
    color: #f1f3f6;
    background: #22262c;
    font: 400 25px/1 "Segoe UI", Arial, sans-serif;
    text-align: center;
    box-shadow: none;
    cursor: pointer;
}
.oxpdi-modal .oxpdi-modal__close:hover { background: #373d47; border-color: #bfc4ca; }
.oxpdi-modal .oxpdi-modal__body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    background: #101216;
}
.oxpdi-modal iframe.oxpdi-modal__frame {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: #101216;
}
.oxpdi-modal .oxpdi-modal__loading {
    position: absolute;
    top: 12px;
    left: 50%;
    max-width: 90%;
    transform: translateX(-50%);
    z-index: 1;
    color: #b1b7c2;
    padding: 9px 14px;
    margin: 0;
    border-radius: 3px;
    background: #22262c;
    border: 1px solid #484f5b;
    font-size: 12px;
    pointer-events: none;
}
.oxpdi-modal [hidden] { display: none !important; }

/* Standalone mobile view: the iframe's fixed desktop layout is untouched. */
body.oxpdi-standalone {
    margin: 0;
    padding: 0;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    background: #101216;
    color: #f1f3f6;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
}
.oxpdi-viewer { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.oxpdi-viewer__head {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: none;
    min-height: calc(51px + env(safe-area-inset-top, 0px));
    padding: calc(7px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 7px max(12px, env(safe-area-inset-left, 0px));
    border-bottom: 1px solid #363c45;
    background: #1b1e23;
}
.oxpdi-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 11px;
    flex: none;
    border: 1px solid #484f5b;
    border-radius: 3px;
    color: #f1f3f6;
    background: #22262c;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}
.oxpdi-back:hover { border-color: #bfc4ca; background: #2c3139; color: #d8dce1; }
.oxpdi-viewer__name { color: #b1b7c2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oxpdi-viewer__badge { color: #d8dce1; margin-left: auto; flex: none; font-size: 10px; letter-spacing: .7px; }
.oxpdi-viewer__stage { position: relative; flex: 1; min-height: 0; }
.oxpdi-viewer__frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; border: 0; background: #101216; }
.oxpdi-viewer__hint { flex: none; padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px)); text-align: center; color: #9ba5b4; font-size: 10px; border-top: 1px solid #292f37; }
.oxpdi-viewer__error { display: flex; flex: 1; align-items: center; justify-content: center; flex-direction: column; padding: 24px; text-align: center; }
.oxpdi-viewer__error h1 { margin: 0 0 10px; font-size: 20px; }
.oxpdi-viewer__error p { color: #b1b7c2; margin: 0 0 20px; }
@media (max-width: 600px) {
    .oxpdi-card { padding: 17px; }
    .oxpdi-card a.oxpdi-trigger { width: 100%; }
    .oxpdi-viewer__head { gap: 10px; }
    .oxpdi-viewer__badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .oxpdi-card a.oxpdi-trigger { transition: none; }
}
