/* oodz-lg.css — EU Legal Guarantee Module v2.8.0 */

/* ── Trigger button — inherits theme .button styles ──────────────────────── */
.oodz-lg-trigger {
    margin: 8px 0;
}

.oodz-lg-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer;
    text-align: left;
    line-height: 1.4 !important;
}

.oodz-lg-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.oodz-lg-btn-text {
    flex: 1;
}

.oodz-lg-arrow {
    font-size: 18px;
    line-height: 1;
    opacity: 0.6;
}

/* ── Footer trigger ─────────────────────────────────────────────────────── */
.oodz-lg-footer {
    text-align: center;
    padding: 8px 0;
}

.oodz-lg-footer-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    padding: 0;
    opacity: 0.75;
}

.oodz-lg-footer-btn:hover,
.oodz-lg-footer-btn:focus-visible {
    opacity: 1;
}

/* ── Modal overlay ──────────────────────────────────────────────────────── */
.oodz-lg-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999990;
}

.oodz-lg-modal:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.oodz-lg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

/* ── Modal dialog ───────────────────────────────────────────────────────── */
.oodz-lg-dialog {
    position: relative;
    z-index: 999991;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.28);
    max-height: 90vh;
    max-width: 540px;
    overflow-y: auto;
    padding: 16px;
    width: calc(100vw - 32px);
}

.oodz-lg-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    padding: 4px 8px;
}

.oodz-lg-close:hover,
.oodz-lg-close:focus-visible {
    color: #000;
}

/* ── Notice image ───────────────────────────────────────────────────────── */
.oodz-lg-body {
    margin-top: 4px;
}

.oodz-lg-notice-img {
    border: 2px solid #003399;
    border-radius: 4px;
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

/* ── Download button — EU official colors (required by regulation) ───────── */
.oodz-lg-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.oodz-lg-download {
    align-items: center;
    background: #003399;
    border: none;
    border-radius: 4px;
    color: #FFED00 !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 5px;
    padding: 6px 12px;
    text-decoration: none !important;
    transition: background-color 0.15s;
}

.oodz-lg-download:hover,
.oodz-lg-download:focus-visible {
    background: #001f66;
    color: #FFED00 !important;
}

/* ── Screen-reader only ─────────────────────────────────────────────────── */
.oodz-lg-sr-only {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .oodz-lg-dialog {
        padding: 12px;
        width: calc(100vw - 16px);
    }
}
