/* STEVULA – EU harmonizované oznámenie o zákonnej záruke */

#stevula-guarantee-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

#stevula-guarantee-modal.is-open {
    display: flex;
}

.stevula-guarantee-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.stevula-guarantee-box {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.stevula-guarantee-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 3;
    width: 40px;
    height: 40px;
    margin: -8px -8px 8px 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #222;
    font: inherit;
    font-size: 29px;
    font-weight: 300;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.10);
}

.stevula-guarantee-close:hover,
.stevula-guarantee-close:focus {
    background: #f3f3f3;
}

.stevula-guarantee-content {
    clear: both;
}

.stevula-guarantee-image-link {
    display: block;
    line-height: 0;
}

.stevula-guarantee-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border: 0;
}

.stevula-guarantee-more {
    margin: 18px 0 2px;
    text-align: center;
}

.stevula-guarantee-more a {
    color: #222;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.stevula-guarantee-more a:hover,
.stevula-guarantee-more a:focus {
    color: #000;
}

body.stevula-guarantee-lock {
    overflow: hidden !important;
}

@media (max-width: 600px) {
    #stevula-guarantee-modal {
        padding: 0;
        align-items: stretch;
    }

    .stevula-guarantee-box {
        width: 100%;
        max-width: none;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        padding: 14px;
    }

    .stevula-guarantee-close {
        margin: 0 0 8px 12px;
    }

    .stevula-guarantee-more {
        padding: 0 8px 10px;
    }
}
