/* Persistent storefront warnings and errors. Success can remain a toast. */
.rb-notice-dialog {
    width: min(460px, calc(100vw - 32px));
    max-height: min(80vh, 620px);
    margin: auto;
    padding: 28px;
    border: 1px solid #e6e8ec;
    border-radius: 20px;
    background: #fff;
    color: #19202b;
    box-shadow: 0 28px 80px rgba(17, 24, 39, .24);
    overflow-y: auto;
}
.rb-notice-dialog::backdrop {
    background: rgba(20, 29, 41, .53);
}
.rb-notice-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}
.rb-notice-dialog__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #fff3e5;
    color: #b65300;
    font-size: 23px;
}
.rb-notice-dialog[data-type="danger"] .rb-notice-dialog__icon {
    background: #fef0ed;
    color: #b42318;
}
.rb-notice-dialog__close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #687484;
    font-size: 27px;
    line-height: 1;
}
.rb-notice-dialog__close:hover,
.rb-notice-dialog__close:focus-visible {
    background: #f2f4f7;
    color: #19202b;
}
.rb-notice-dialog h2 {
    margin: 0 0 13px;
    color: #19202b;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.4;
}
.rb-notice-dialog__messages {
    display: grid;
    gap: 10px;
    margin: 0 0 25px;
    padding: 0;
    list-style: none;
}
.rb-notice-dialog__messages li {
    position: relative;
    padding-left: 19px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.65;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.rb-notice-dialog__messages li::before {
    position: absolute;
    top: .72em;
    left: 1px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ed6b00;
    content: '';
}
.rb-notice-dialog__messages a {
    color: #ac4300;
    font-weight: 700;
    text-decoration: underline;
}
.rb-notice-dialog__action {
    width: 100%;
    min-height: 48px;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: #ed6b00;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.rb-notice-dialog__action:hover {
    background: #c95100;
}
.rb-notice-dialog button:focus-visible,
#back2top:focus-visible {
    outline: 3px solid #244fa7;
    outline-offset: 3px;
}
@media (max-width: 479px) {
    .rb-notice-dialog { padding: 23px; border-radius: 16px; }
    .rb-notice-dialog h2 { font-size: 21px; }
}
