@font-face {
    font-family: "Inter-Regular";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/dispatch-assets/extension/eu-warranty-labels/inter-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Inter-SemiBold";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/dispatch-assets/extension/eu-warranty-labels/inter-semibold.woff2") format("woff2");
}

@font-face {
    font-family: "Inter-ExtraBold";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/dispatch-assets/extension/eu-warranty-labels/inter-extrabold.woff2") format("woff2");
}

:host svg {
    display: block;
    width: 100%;
    height: auto;
}

.euwl-product-guarantee {
    margin-top: 1rem;
}

.euwl-guarantee-trigger {
    display: block;
    width: min(100%, 368.5px);
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.euwl-guarantee-trigger:focus-visible,
.euwl-button:focus-visible,
.euwl-link-button:focus-visible,
.euwl-legal-control:focus-visible {
    outline: 3px solid #005ea8;
    outline-offset: 3px;
}

.euwl-garan-nested,
.euwl-garan-full,
.euwl-legal-notice {
    display: block;
    width: 100%;
}

.euwl-guarantee-popover {
    box-sizing: border-box;
    width: min(520px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    padding: 1rem;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgb(0 0 0 / 35%);
    overflow: auto;
}

.euwl-guarantee-popover::backdrop,
.euwl-legal-dialog::backdrop {
    background: rgb(0 0 0 / 60%);
}

.euwl-guarantee-actions,
.euwl-legal-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1rem;
}

.euwl-button,
.euwl-link-button,
.euwl-legal-control {
    box-sizing: border-box;
    min-height: 44px;
    padding: .65rem 1rem;
    border: 2px solid #0046a8;
    border-radius: 6px;
    color: #fff;
    background: #0046a8;
    font-family: "Inter-SemiBold", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.euwl-button,
.euwl-legal-control {
    cursor: pointer;
}

.euwl-link-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.euwl-legal-control {
    width: 100%;
    margin-bottom: .75rem;
    color: #0046a8;
    background: #fff;
}

.euwl-legal-dialog {
    box-sizing: border-box;
    width: min(1100px, calc(100vw - 48px));
    max-width: 1100px;
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}

.euwl-legal-dialog[open] {
    display: flex;
    flex-direction: column;
}

.euwl-legal-dialog__content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.euwl-legal-dialog__actions {
    padding: 0 1.5rem 1.5rem;
}

.euwl-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 767px) {
    .euwl-legal-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }

    .euwl-guarantee-actions,
    .euwl-legal-dialog__actions {
        flex-direction: column;
    }

    .euwl-button,
    .euwl-link-button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
