.eugln-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #ffffff;
    color: #111111;
    border-top: 1px solid #0b4f9c;
    box-shadow: 0 -4px 18px rgba(0,0,0,.08);
    font-size: 14px;
}

.eugln-bar--top {
    top: 0;
    bottom: auto;
    border-top: 0;
    border-bottom: 1px solid #0b4f9c;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.eugln-bar--bottom {
    top: auto;
    bottom: 0;
}

.eugln-bar__inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 46px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.eugln-bar__icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0b4f9c;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
}

.eugln-bar__text {
    font-weight: 700;
}

.eugln-bar__button,
.eugln-inline-link {
    border: 0;
    background: transparent;
    color: #0645ad;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.eugln-bar__page {
    color: #333;
    text-decoration: underline;
    white-space: nowrap;
}

.eugln-modal[hidden] {
    display: none;
}

.eugln-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
}

.eugln-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}

.eugln-modal__dialog {
    position: relative;
    width: min(94vw, 920px);
    max-height: 94vh;
    margin: 3vh auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0,0,0,.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.eugln-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.eugln-modal__header h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.eugln-modal__close {
    appearance: none;
    width: 36px;
    height: 36px;
    border: 1px solid #bbb;
    background: #fff;
    border-radius: 50%;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.eugln-modal__body {
    overflow: auto;
    padding: 14px;
    -webkit-overflow-scrolling: touch;
}

.eugln-notice-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
}

.eugln-portal-link {
    margin: 12px 0 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.eugln-shortcode-notice {
    max-width: 100%;
}

.eugln-checkout-reminder {
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #f8f8f8;
    font-size: 13px;
    line-height: 1.5;
}

body.eugln-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .eugln-bar__inner {
        justify-content: flex-start;
        padding: 8px 12px;
        gap: 7px;
    }

    .eugln-bar__text {
        flex: 1 1 auto;
    }

    .eugln-bar__page {
        margin-left: 29px;
    }

    .eugln-modal__dialog {
        width: 98vw;
        max-height: 98vh;
        margin: 1vh auto;
        border-radius: 6px;
    }

    .eugln-modal__body {
        padding: 8px;
    }
}
