html:has(dialog#toys-age-dialog[open]) {
    overflow: hidden;
}

html[data-site-theme="dark"] #container .product-grid-item.product-card .product-wrapper > .image {
    background-color: var(--surface) !important;
}

html[data-site-theme="dark"] #container .product-grid-item.product-card .product-wrapper > .image > a.product-image {
    background-color: transparent !important;
}

dialog#toys-age-dialog {
    box-sizing: border-box;
    width: min(calc(100% - 32px), 440px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: clamp(24px, 6vw, 40px);
    overflow: auto;
    border: 1px solid #373f49;
    border-radius: 24px;
    background: #171b20;
    color: #f5f8fa;
    box-shadow: 0 18px 65px #0005;
    font: 16px/1.55 system-ui, sans-serif;
    text-align: center;
}

dialog#toys-age-dialog::backdrop {
    background: #10151b9e;
    backdrop-filter: blur(10px);
}

dialog#toys-age-dialog .age-logo {
    display: block;
    width: min(170px, 64%);
    margin: 0 auto;
}

dialog#toys-age-dialog .age-logo svg {
    display: block;
    width: 100%;
    height: auto;
}

dialog#toys-age-dialog h2 {
    margin: 20px 0 10px;
    color: inherit;
    font-size: clamp(23px, 6vw, 30px);
    line-height: 1.25;
}

dialog#toys-age-dialog p {
    margin: 0 0 24px;
    color: #bdc7d2;
}

dialog#toys-age-dialog form {
    display: grid;
    gap: 10px;
}

dialog#toys-age-dialog button {
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #4b5662;
    border-radius: 12px;
    background: #212730;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    line-height: 1.35;
}

dialog#toys-age-dialog button[value="yes"] {
    border-color: #63cdfd;
    background: #63cdfd;
    color: #11212c;
}

dialog#toys-age-dialog button.age-close {
    position: absolute;
    top: 13px;
    right: 13px;
    display: grid;
    width: 38px;
    min-height: 38px;
    place-items: center;
    padding: 0;
    border-radius: 50%;
}

dialog#toys-age-dialog button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
