body.single-product .rlg-notice {
    display: block; margin: 10px 0 0 !important; padding: 0;
    font-size: 13px; font-weight: 400; line-height: 1.5;
}
body.single-product .rlg-trigger {
    display: inline-flex; align-items: flex-start; gap: 7px;
    color: #35556c; text-decoration: none; cursor: pointer;
}
body.single-product .rlg-trigger:hover { color: #007bc3; text-decoration: underline; }
.rlg-trigger:focus-visible, #rlg-dialog a:focus-visible, #rlg-dialog button:focus-visible {
    outline: 2px solid #007bc3; outline-offset: 3px;
}
body.single-product .rlg-info {
    display: inline-flex; flex: 0 0 16px; width: 16px; height: 16px; box-sizing: border-box;
    align-items: center; justify-content: center; margin-top: 2px;
    border: 1px solid currentColor; border-radius: 50%; font-family: Georgia, serif;
    font-size: 12px; font-style: normal; font-weight: 700; line-height: 1;
}
html.rlg-modal-open { overflow: hidden; }
#rlg-dialog {
    position: fixed; inset: 0; width: min(860px, calc(100vw - 32px));
    max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
    margin: auto; padding: 0; border: 0; border-radius: 10px; box-sizing: border-box;
    background: #fff; color: #20252b; box-shadow: 0 15px 70px #0005;
    font-family: inherit; overflow: hidden;
}
#rlg-dialog:not([open]) { display: none; }
#rlg-dialog[open] { display: flex; flex-direction: column; }
#rlg-dialog::backdrop { background: rgb(0 0 0 / 62%); }
#rlg-dialog .rlg-header {
    display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 20px; border-bottom: 1px solid #e6e9ed;
    background: #fff;
}
#rlg-dialog #rlg-heading { margin: 0; padding: 0; font-size: 18px; font-weight: 600; line-height: 1.4; color: #20252b; }
#rlg-dialog .rlg-close {
    display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 6px;
    background: #f0f3f5; color: #20252b; box-shadow: none; cursor: pointer;
    font-family: Arial, sans-serif; font-size: 30px; font-weight: 400; line-height: 1;
}
#rlg-dialog .rlg-close:hover { background: #e2e8ed; }
#rlg-dialog .rlg-image-wrap { flex: 1 1 auto; min-height: 0; padding: 16px; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#rlg-dialog #rlg-image { display: block; width: 100%; max-width: 897px; height: auto; margin: 0 auto; padding: 0; border: 0; }
#rlg-dialog #rlg-image[hidden], #rlg-dialog [hidden] { display: none !important; }
#rlg-dialog .rlg-image-fallback { margin: 12px; font-size: 14px; }
#rlg-dialog .rlg-footer {
    display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 8px 20px; padding: 14px 20px; border-top: 1px solid #e6e9ed; background: #fff;
    font-size: 14px; line-height: 1.5; text-align: center;
}
#rlg-dialog .rlg-footer a { color: #007bc3; text-decoration: underline; overflow-wrap: anywhere; }
#rlg-dialog .rlg-footer .rlg-pdf { font-size: 12px; color: #536272; }
@media (max-width: 600px) {
    #rlg-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 8px; }
    #rlg-dialog .rlg-header { gap: 8px; padding: 10px 12px; }
    #rlg-dialog #rlg-heading { font-size: 16px; }
    #rlg-dialog .rlg-image-wrap { padding: 8px; }
    #rlg-dialog .rlg-footer { padding: 12px; font-size: 13px; }
}
