body.dg-product-notice-modal-open {
    overflow: hidden;
}

.dg-product-notice-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    pointer-events: auto;
}

.dg-product-notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgb(var(--stroke, 0 0 0) / 0.14);
    border-radius: 999px;
    background: rgb(var(--surface, 255 255 255) / 0.9);
    box-shadow: 0 8px 22px rgb(0 0 0 / 0.16);
    color: rgb(var(--text, 10 10 10));
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.dg-product-notice-icon svg {
    width: 1.08rem;
    height: 1.08rem;
}

.dg-product-notice-icon--warning {
    color: rgb(245 158 11);
}

.dg-product-notice-icon--info {
    color: rgb(59 130 246);
}

.dg-product-notice-icon:focus-visible {
    outline: 2px solid rgb(var(--accent, 16 185 129));
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .dg-product-notice-icon:hover {
        transform: translateY(-1px);
        border-color: rgb(var(--stroke, 0 0 0) / 0.24);
        background: rgb(var(--surface, 255 255 255));
    }
}

.dl-product-card .dg-product-notice-icons--loop-media {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    z-index: 4;
}

.dl-product-card.has-dg-product-notices .dl-product-badge {
    right: auto;
    left: 0.625rem;
}

.products .product.has-dg-product-notices .product-inner {
    position: relative;
}

.products .product.has-dg-product-notices .dg-product-notice-icons--loop-media {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 5;
}

.dg-product-notice-icons--single-summary {
    flex: 0 0 auto;
    margin-left: auto;
}

.entry-summary > .dg-product-notice-icons--single-summary {
    margin: 0 0 1rem auto;
    justify-content: flex-end;
}

.dg-category-product-option__aside {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    align-self: center;
    min-width: 2rem;
}

.dg-category-product-option .dg-product-notice-icons--category-option {
    gap: 0.55rem;
}

.dg-category-product-option .dg-product-notice-icon {
    width: 2.15rem;
    height: 2.15rem;
    border: 0;
    border-radius: 0.68rem;
    box-shadow: none;
    opacity: 1;
}

.dg-category-product-option .dg-product-notice-icon svg {
    width: 1rem;
    height: 1rem;
}

.dg-category-product-option .dg-product-notice-icon--warning {
    background: rgb(245 158 11 / 0.18);
    color: rgb(251 191 36);
}

.dg-category-product-option .dg-product-notice-icon--info {
    background: rgb(59 130 246 / 0.18);
    color: rgb(96 165 250);
}

@media (hover: hover) and (pointer: fine) {
    .dg-category-product-option .dg-product-notice-icon:hover {
        transform: translateY(-1px);
    }

    .dg-category-product-option .dg-product-notice-icon--warning:hover {
        background: rgb(245 158 11 / 0.24);
    }

    .dg-category-product-option .dg-product-notice-icon--info:hover {
        background: rgb(59 130 246 / 0.24);
    }
}

.dg-product-notice-modal[hidden] {
    display: none !important;
}

.dg-product-notice-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 1rem;
    color: rgb(var(--text, 244 246 248));
    pointer-events: none;
}

.dg-product-notice-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 0.62);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.dg-product-notice-modal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 1rem;
    width: min(100%, 31rem);
    max-height: min(80vh, 42rem);
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid rgb(var(--stroke, 255 255 255) / 0.12);
    border-radius: 1rem;
    background: rgb(var(--surface, 21 23 28));
    box-shadow: 0 22px 70px rgb(0 0 0 / 0.38);
    opacity: 0;
    transform: translate3d(0, 0.55rem, 0) scale(0.985);
    transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dg-product-notice-modal.is-open {
    pointer-events: auto;
}

.dg-product-notice-modal.is-open .dg-product-notice-modal__backdrop {
    opacity: 1;
}

.dg-product-notice-modal.is-open .dg-product-notice-modal__dialog {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.dg-product-notice-modal__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    min-width: 0;
    padding-right: 2.8rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgb(var(--stroke, 255 255 255) / 0.07);
}

.dg-product-notice-modal__image-wrap {
    display: block;
    width: 2.9rem;
    height: 2.9rem;
    overflow: hidden;
    border: 1px solid rgb(var(--stroke, 255 255 255) / 0.1);
    border-radius: 0.68rem;
    background: rgb(255 255 255 / 0.04);
}

.dg-product-notice-modal__image-wrap[hidden] {
    display: none !important;
}

.dg-product-notice-modal__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dg-product-notice-modal__heading {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.dg-product-notice-modal__title {
    margin: 0;
    color: rgb(var(--text, 244 246 248));
    overflow: hidden;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dg-product-notice-modal__kind {
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.15;
}

.dg-product-notice-modal__close {
    appearance: none;
    position: absolute;
    top: 1.05rem;
    right: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgb(var(--muted, 147 154 166));
    cursor: pointer;
    transition: color 0.16s ease, background-color 0.16s ease;
}

.dg-product-notice-modal__close svg {
    width: 1.85rem;
    height: 1.85rem;
}

.dg-product-notice-modal__close:focus-visible {
    outline: 2px solid rgb(var(--accent2, 45 212 191));
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .dg-product-notice-modal__close:hover {
        color: rgb(var(--text, 244 246 248));
    }
}

.dg-product-notice-modal[data-notice-type="warning"] .dg-product-notice-modal__kind {
    color: rgb(245 158 11);
}

.dg-product-notice-modal[data-notice-type="info"] .dg-product-notice-modal__kind {
    color: rgb(96 165 250);
}

.dg-product-notice-modal__body {
    display: grid;
    align-content: start;
    gap: 0.82rem;
    margin: 0.15rem 0 0.45rem;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.25rem;
    color: rgb(var(--text, 244 246 248) / 0.78);
    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.68;
    overflow-wrap: anywhere;
}

.dg-product-notice-modal__body::-webkit-scrollbar {
    width: 0.4rem;
}

.dg-product-notice-modal__body::-webkit-scrollbar-track {
    background: transparent;
}

.dg-product-notice-modal__body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgb(var(--stroke, 255 255 255) / 0.18);
}

.dg-product-notice-modal__body > * {
    margin: 0;
}

.dg-product-notice-modal__body p {
    margin: 0;
}

.dg-product-notice-modal__body strong,
.dg-product-notice-modal__body b {
    color: rgb(var(--text, 244 246 248) / 0.9);
    font-weight: 650;
}

.dg-product-notice-modal__body ul,
.dg-product-notice-modal__body ol {
    display: grid;
    gap: 0.45rem;
    padding-left: 1.15rem;
}

.dg-product-notice-modal__body li::marker {
    color: rgb(var(--muted, 147 154 166));
}

.dg-product-notice-modal__body figure {
    margin: 0;
}

.dg-product-notice-modal__body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.dg-product-notice-modal__body figcaption,
.dg-product-notice-modal__body .wp-caption-text {
    margin-top: 0.4rem;
    color: rgb(var(--muted, 147 154 166));
    font-size: 0.78rem;
    line-height: 1.35;
}

.dg-product-notice-modal__body a {
    color: rgb(var(--accent2, 45 212 191));
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.dg-product-notice-modal__button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    width: 100%;
    padding: 0.75rem 1.1rem;
    border: 0;
    border-radius: 0.78rem;
    background: rgb(var(--accent, 16 185 129));
    color: rgb(var(--accent-contrast, 0 0 0));
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
}

.dg-product-notice-modal__button:focus-visible {
    outline: 2px solid rgb(var(--accent2, 45 212 191));
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .dg-product-notice-icon {
        width: 1.85rem;
        height: 1.85rem;
    }

    .dg-category-product-option__aside {
        gap: 0.3rem;
    }

    .dg-category-product-option .dg-product-notice-icon {
        width: 2.05rem;
        height: 2.05rem;
    }

    .dg-product-notice-modal {
        align-items: end;
        padding: 0.75rem;
    }

    .dg-product-notice-modal__dialog {
        width: 100%;
        max-height: min(82vh, 42rem);
        padding: 1.1rem;
        border-radius: 1rem;
    }

    .dg-product-notice-modal__body {
        padding-right: 0.15rem;
    }

    .dg-product-notice-modal__image-wrap {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 0.65rem;
    }

    .dg-product-notice-modal__close {
        width: 2.4rem;
        height: 2.4rem;
        top: 0.9rem;
        right: 0.9rem;
    }

    .dg-product-notice-modal__dialog {
        transform: translate3d(0, 1.2rem, 0) scale(1);
    }

    .dg-product-notice-modal.is-open .dg-product-notice-modal__dialog {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dg-product-notice-modal__backdrop,
    .dg-product-notice-modal__dialog {
        transition: none;
    }

    .dg-product-notice-modal__dialog {
        transform: none;
    }
}
