/**
 * Tidning Läs Button & Modal Styles
 */

/* ── Button ── */
.tidning-las-button__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #B2DD3D;
    color: #373F3A;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.tidning-las-button__btn:hover {
    background-color: #93d102;
    color: #373F3A;
    text-decoration: none !important;
}

.tidning-las-button__btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ── Suppress Avada header/nav when modal is open ── */
body.tidning-modal-open #wrapper_header,
body.tidning-modal-open #header-sticky,
body.tidning-modal-open .fusion-header-wrapper,
body.tidning-modal-open #side-header {
    z-index: 0 !important;
}

/* ── Modal ── */
.tidning-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999999;
}

.tidning-modal--open {
    display: block;
}

.tidning-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.tidning-modal__container {
    position: absolute;
    inset: 3vh 3vw;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tidning-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.2s ease;
}

.tidning-modal__close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.tidning-modal__close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.tidning-modal__iframe {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
}
