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

/* EU Harmonised Notice — trigger button (follows theme btn style) */
.opalgl-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;
}

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

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

/* Shared modal styles */
.opalgl-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;
}

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

.opalgl-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);
}

.opalgl-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;
}

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

/* GARAN label — trigger (official "nested display" vector SVG, values injected) */
.opalgl-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;
}

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

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

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

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

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

.opalgl-garan-line-link {
    font-size: 0.9em;
}

/* Compact GARAN badge for the narrow mini-basket flyout */
.opalgl-garan-line--mini .opalgl-garan-line-svg,
.opalgl-garan-line--mini .opalgl-garan-line-svg svg {
    width: 150px;
    max-width: 150px;
}

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

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

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