/* EU Harmonised Notice — inline image (email, fallback) */
.dxgl-notice-image {
    width: 100%;
    height: auto;
    display: block;
}

/* EU Harmonised Notice — trigger button (follows theme btn style) */
.dxgl-notice-trigger {
    cursor: pointer;
    background-color: #003399;
    color: #ffffff;
    padding: 8px 16px;
    display: block;
    width: 100%;
    font-family: inherit;
    font-weight: 400;
    border: none;
    border-radius: 0;
    font-size: inherit;
    text-align: center;
}

.dxgl-notice-trigger:hover {
    opacity: 0.9;
}

.dxgl-notice-icon {
    margin-right: 8px;
}

/* Shared modal styles */
.dxgl-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.dxgl-modal--open {
    display: flex;
}

.dxgl-modal-content {
    position: relative;
    background: #ffffff;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dxgl-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    font-size: 1.5em;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}

.dxgl-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* GARAN label — trigger (official "nested display" vector SVG, values injected) */
.dxgl-garan-trigger {
    cursor: pointer;
    display: block;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    /* Delimit the (white) official label as a distinct, clickable card and keep
       it on an explicit white background regardless of surrounding styles. */
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 4px;
    background: #ffffff;
    line-height: 0;
}

.dxgl-garan-trigger:hover {
    opacity: 0.9;
}

.dxgl-garan-trigger:focus-visible {
    outline: 2px solid #034ea2;
    outline-offset: 2px;
}

.dxgl-garan-trigger-svg,
.dxgl-garan-trigger-svg svg {
    display: block;
    width: 100%;
    height: auto;
}

/* GARAN per order line (cart / final order step) — compact official nested SVG + link */
.dxgl-garan-line {
    display: flex;
    align-items: center;
    margin: 6px 0;
    flex-wrap: wrap;
}

.dxgl-garan-line-svg,
.dxgl-garan-line-svg svg {
    display: inline-block;
    width: 220px;
    max-width: 220px;
    height: auto;
}

.dxgl-garan-line-link {
    font-size: 0.8em;
}

/* Compact GARAN badge for the narrow mini-basket flyout */
.dxgl-garan-line--mini .dxgl-garan-line-svg,
.dxgl-garan-line--mini .dxgl-garan-line-svg svg {
    width: 8rem;
    max-width: 8rem;
}

.dxgl-garan-line--mini .dxgl-garan-line-link {
    font-size: 0.8em;
}

/* GARAN label — modal with the official vector label (values injected, no overlays) */
.dxgl-garan-modal-content {
    max-width: 500px;
}

.dxgl-garan-label,
.dxgl-garan-label svg {
    display: block;
    width: 100%;
    height: auto;
}

/* D25: the label artwork itself links out (consistent with the notice image) */
.dxgl-garan-label-link {
    display: block;
    text-decoration: none;
}

/* D26: compact notice trigger variants for header / category placement */
.dxgl-header-notice {
    display: flex;
    justify-content: flex-end;
}
.dxgl-notice-trigger--header {
    font-size: 1.8rem;
    padding: 2px 8px;
}
.dxgl-notice-trigger--category {
    font-size: 0.9rem;
}

/* D37: compact GARAN badge on product-listing tiles (button or PDP link).
   position/z-index lift the badge above the tile's Bootstrap stretched-link
   overlay — without it the whole-card link swallows the click (found live). */
.dxgl-garan-tile {
    display: block;
    position: relative;
    z-index: 2;
    padding: 0.1rem;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: center;
    margin-bottom: 1.5rem;
}

.dxgl-garan-tile .dxgl-garan-line-svg,
.dxgl-garan-tile .dxgl-garan-line-svg svg {
    width: 170px;
    max-width: 170px;
}

.dxgl-garan-tile:focus-visible {
    outline: 2px solid #003399;
    outline-offset: 2px;
}

.dxgl-garan-tile-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

:is(.basketlist, .minibasket) .dxgl-garan-line-svg {
    margin-left: var(--dxgl-line-offset, 0);
}

/* Basket + final checkout step */
:is(.basket, .is-checkout) .basketlist {
    --dxgl-line-offset: -0.8rem;
}

:is(.basket, .is-checkout) .basketlist .dxgl-garan-line-svg svg {
    width: 10rem;
}

/* Mini basket: the badge gets its own row below image, link and price */
:is(.minibasket-dropdown, .modal-dialog) .minibasket .items__content {
    flex-wrap: wrap;
}

.minibasket .items__content .dxgl-garan-line--mini {
    flex: 0 0 100%;
}

:is(.minibasket-dropdown, .modal-dialog) .minibasket {
    --dxgl-line-offset: -0.5rem;
}

.breadcrumb__row:has(.dxgl-notice-trigger--category) {
    flex-wrap: nowrap;
}

.breadcrumb__row .dxgl-notice-trigger--category {
    max-width: 25rem;
    min-height: 5rem;
    font-size: 1.5rem;
    margin-left: auto;
}

.product-listing .product-box .lower-part:has(.dxgl-garan-tile) > .title,
.product-listing .listitem-grid .lower-part:has(.dxgl-garan-tile) > .title {
    margin-bottom: 1.5rem;
}
