.sm-cookie-banner, .sm-cookie-dialog {
    box-sizing: border-box;
    font: 14px/1.45 Roboto, Arial, sans-serif;
    color: #263446;
    background: #fff;
    border: 1px solid #dce2e9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 30px #17263d26;
}
.sm-cookie-banner {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
    max-width: 480px;
    z-index: 10000;
}
.sm-cookie-banner h2, .sm-cookie-dialog h2 {
    font: 600 18px/1.3 Roboto, Arial, sans-serif;
    color: #263446;
    text-transform: none;
    margin: 0 0 8px;
    padding: 0;
    float: none;
    width: auto;
}
.sm-cookie-description { margin: 0 0 14px; }
.sm-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sm-cookie-banner .sm-cookie-button, .sm-cookie-dialog .sm-cookie-button, .sm-cookie-reopen {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    line-height: 1.3;
    text-transform: none;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid #c4cdd7;
    border-radius: 6px;
    background: #fff !important;
    color: #263446 !important;
    box-shadow: none;
    cursor: pointer;
    margin: 0;
    text-decoration: none;
}
.sm-cookie-banner .sm-cookie-primary, .sm-cookie-dialog .sm-cookie-primary { background: #cc4143 !important; border-color: #cc4143; color: #fff !important; }
.sm-cookie-banner .sm-cookie-settings-link { min-height: 32px; padding: 8px 0 0; border: 0; color: #405f98 !important; background: transparent !important; }
.sm-cookie-button:focus-visible, .sm-cookie-option input:focus-visible, .sm-cookie-reopen:focus-visible { outline: 3px solid #405f98; outline-offset: 3px; }
.sm-cookie-dialog { width: 540px; max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow: auto; margin: auto; }
.sm-cookie-dialog::backdrop { background: #17263d80; }
.sm-cookie-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 12px; }
.sm-cookie-dialog .sm-cookie-close { min-height: 32px; padding: 4px 8px; }
.sm-cookie-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid #e6eaf0; cursor: pointer; }
.sm-cookie-option input { appearance: auto; display: inline-block; position: static; opacity: 1; width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; accent-color: #cc4143; }
.sm-cookie-option-copy { display: flex; flex-direction: column; gap: 4px; }
.sm-cookie-option-copy > span { color: #596777; }
.sm-cookie-dialog .sm-cookie-actions { margin-top: 16px; }
.sm-cookie-reopen { font: 13px/1.3 Roboto, Arial, sans-serif; min-height: 36px; margin: 12px 20px; background: transparent !important; color: inherit !important; border-color: currentColor; }
/* The current mobile layout is scaled from 640px. Keep controls readable until its separate redesign. */
@media only screen and (max-device-width: 760px) {
    .sm-cookie-banner, .sm-cookie-dialog { font-size: 23px; padding: 22px; }
    .sm-cookie-banner { max-width: none; }
    .sm-cookie-banner h2, .sm-cookie-dialog h2 { font-size: 27px; }
    .sm-cookie-banner .sm-cookie-button, .sm-cookie-dialog .sm-cookie-button { min-height: 64px; padding: 14px 18px; }
    .sm-cookie-banner .sm-cookie-settings-link { min-height: 52px; padding: 12px 0 0; }
    .sm-cookie-banner .sm-cookie-actions > button { flex: 1; }
    .sm-cookie-option input { width: 30px; height: 30px; flex-basis: 30px; }
    .sm-cookie-option { padding: 20px 0; }
    .sm-cookie-reopen { font-size: 22px; min-height: 64px; }
}
