/* 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 strip image with duration overlay) */
.opalgl-garan-trigger {
    cursor: pointer;
    position: relative;
    display: block;
    width: 100%;
    max-width: 400px;
    border: none;
    padding: 0;
    background: none;
    line-height: 0;
}

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

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

/* Duration overlay — positioned on top of "XX" + calendar icon in the strip */
/* Calibrated against 1030x162 strip: XX area from ~2.5% to ~19% */
.opalgl-garan-trigger-duration {
    position: absolute;
    top: 8%;
    left: 2.5%;
    width: 16.5%;
    height: 84%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(36px, 10vw, 48px);
    color: #000000;
    background: #ffffff;
    line-height: 1;
}

/* GARAN label — modal with official template image + field overlays */
.opalgl-garan-modal-content {
    max-width: 500px;
}

.opalgl-garan-label {
    position: relative;
    display: block;
}

.opalgl-garan-template-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Field overlays — white grid cells covering template placeholders */
/* Calibrated against 741x780 template: Brand @y170, Model @y170, XX @y220 */
.opalgl-garan-field-brand,
.opalgl-garan-field-model,
.opalgl-garan-field-duration {
    position: absolute;
    font-family: 'Inter', sans-serif;
    color: #000000;
    background: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Brand/Trademark — covers "Brand/Trademark" header + value area */
.opalgl-garan-field-brand {
    top: 20%;
    left: 2%;
    width: 52%;
    height: 9%;
    font-size: clamp(9px, 2.2vw, 14px);
    font-weight: 600;
    display: flex;
    align-items: flex-end;
    padding: 0 2% 1%;
}

/* Model identifier — covers "Model identifier" header + value area */
.opalgl-garan-field-model {
    top: 20%;
    left: 54%;
    width: 44%;
    height: 9%;
    font-size: clamp(9px, 2.2vw, 14px);
    font-weight: 600;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 3% 1%;
}

/* Duration — covers "XX" placeholder at ~y220, large number */
.opalgl-garan-field-duration {
    top: 29%;
    left: 2.8%;
    width: 41.5%;
    height: 28%;
    font-size: clamp(70px, 22vw, 180px);
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
