.srnct-floating-notice,
.srnct-floating-notice *,
.srnct-inline-notice,
.srnct-inline-notice *,
.srnct-simple-modal,
.srnct-simple-modal * {
    box-sizing: border-box;
}

.srnct-floating-notice,
.srnct-inline-notice {
    --sn-green: #0b4a38;
    --sn-green-dark: #063528;
    --sn-gold: #c89a55;
    --sn-gold-light: #f2ddb7;
    --sn-cream: #fffaf0;
    --sn-border: #e5d7bf;
    font-family: Arial, Helvetica, sans-serif;
}

.srnct-floating-notice {
    --sn-width: 340px;
    position: fixed;
    z-index: 99980;
    top: 52%;
    right: 0;
    width: var(--sn-width);
    max-width: calc(100vw - 54px);
    transform: translate3d(0,-50%,0);
    transition: transform .3s ease;
}

.srnct-floating-notice.is-collapsed {
    transform: translate3d(var(--sn-width),-50%,0);
}

.srnct-floating-tab {
    position: absolute;
    top: 50%;
    left: -48px;
    width: 48px;
    min-height: 156px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 5px;
    border: 1px solid rgba(200,154,85,.82);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    color: #fff;
    background: linear-gradient(180deg,var(--sn-green),var(--sn-green-dark));
    box-shadow: -8px 9px 24px rgba(6,53,40,.23);
    transform: translateY(-50%);
    cursor: pointer;
}

.srnct-floating-tab:hover,
.srnct-floating-tab:focus-visible {
    outline: none;
    color: var(--sn-green-dark);
    background: linear-gradient(180deg,var(--sn-gold-light),var(--sn-gold));
}

.srnct-floating-tab-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sn-gold-light);
    font-size: 14px;
}

.srnct-floating-tab-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.srnct-floating-count,
.srnct-notice-count-badge {
    min-width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border: 2px solid rgba(255,255,255,.75);
    border-radius: 30px;
    color: #fff;
    background: #b42318;
    font-size: 10px;
    font-weight: 800;
}

.srnct-floating-panel,
.srnct-inline-notice {
    overflow: hidden;
    border: 1px solid rgba(200,154,85,.56);
    background: #fff;
    box-shadow: -13px 17px 40px rgba(6,53,40,.20);
}

.srnct-floating-panel {
    border-right: 0;
    border-radius: 17px 0 0 17px;
}

.srnct-floating-head,
.srnct-inline-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 15px;
    color: #fff;
    background: linear-gradient(135deg,var(--sn-green-dark),var(--sn-green));
    border-bottom: 3px solid var(--sn-gold);
}

.srnct-floating-head {
    justify-content: space-between;
}

.srnct-floating-head small,
.srnct-floating-head strong,
.srnct-inline-head small,
.srnct-inline-head strong {
    display: block;
}

.srnct-floating-head small,
.srnct-inline-head small {
    margin-bottom: 2px;
    color: rgba(255,255,255,.74);
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.srnct-floating-head strong,
.srnct-inline-head strong {
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
}

.srnct-floating-close {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.30);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.08);
    font-size: 20px;
    cursor: pointer;
}

.srnct-floating-close:hover,
.srnct-floating-close:focus-visible {
    outline: none;
    color: var(--sn-green-dark);
    background: var(--sn-gold-light);
}

.srnct-notice-viewport {
    height: min(var(--srnct-notice-height,330px),56vh);
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg,var(--sn-cream),#fff 35%);
    scrollbar-width: thin;
    scrollbar-color: var(--sn-gold) #f6efe4;
}

.srnct-notice-viewport::-webkit-scrollbar { width: 5px; }
.srnct-notice-viewport::-webkit-scrollbar-thumb { border-radius: 20px; background: var(--sn-gold); }

.srnct-simple-list {
    width: 100%;
}

.srnct-simple-item {
    border-bottom: 1px solid #eee4d6;
}

.srnct-simple-open {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 12px 12px;
    border: 0;
    color: #26352f;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease;
}

.srnct-simple-open:hover,
.srnct-simple-open:focus-visible {
    outline: none;
    background: var(--sn-cream);
}

.srnct-simple-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    border-radius: 30px;
    color: #fff;
    background: var(--sn-green);
    font-size: 8px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.srnct-type-important .srnct-simple-badge { color:#38270d; background:#efbd5f; }
.srnct-type-urgent .srnct-simple-badge { background:#b42318; }

.srnct-simple-title {
    min-width: 0;
    color: var(--sn-green-dark);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
}

.srnct-simple-date {
    color: #7b817e;
    font-size: 9px;
    white-space: nowrap;
}

.srnct-simple-empty {
    padding: 30px 14px;
    color: #68736e;
    text-align: center;
    font-size: 12px;
}

.srnct-floating-foot {
    padding: 9px 12px;
    border-top: 1px solid #eadfce;
    color: #69736f;
    background: #fffaf1;
    font-size: 9px;
    line-height: 1.4;
    text-align: center;
}

.srnct-inline-notice {
    width: min(760px,100%);
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(6,53,40,.14);
}

.srnct-modal-store {
    height: 0;
    overflow: hidden;
}

.srnct-simple-modal[hidden] { display:none !important; }

.srnct-simple-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3,29,21,.76);
    backdrop-filter: blur(3px);
}

.srnct-simple-dialog {
    position: relative;
    width: min(720px,100%);
    max-height: min(84vh,760px);
    overflow-y: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.30);
}

.srnct-simple-modal-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0,0,0,.25);
    font-size: 24px;
    cursor: pointer;
}

.srnct-simple-dialog-head {
    padding: 28px 58px 22px 25px;
    color: #fff;
    background: linear-gradient(135deg,var(--sn-green-dark,#063528),var(--sn-green,#0b4a38));
    border-bottom: 4px solid var(--sn-gold,#c89a55);
}

.srnct-simple-dialog-head h3 {
    margin: 10px 0 6px;
    color: #fff;
    font-size: clamp(21px,3vw,29px);
    line-height: 1.25;
}

.srnct-simple-dialog-head p {
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 12px;
}

.srnct-simple-dialog-content {
    padding: 24px 25px 11px;
    color: #303b37;
    font-size: 14px;
    line-height: 1.75;
}

.srnct-simple-dialog-content img { max-width:100%; height:auto; }

.srnct-simple-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 8px 25px 25px;
    padding: 11px 16px;
    border-radius: 8px;
    color: #fff !important;
    background: #0b4a38;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
}

html.srnct-notice-modal-open,
html.srnct-notice-modal-open body { overflow:hidden; }

@media (max-width:820px) {
    .srnct-floating-notice {
        --sn-width: calc(100vw - 58px);
        top: auto;
        bottom: 14px;
        transform: translate3d(0,0,0);
    }
    .srnct-floating-notice.is-collapsed { transform: translate3d(var(--sn-width),0,0); }
    .srnct-floating-tab { top:auto; bottom:14px; min-height:138px; transform:none; }
    .srnct-notice-viewport { height:min(var(--srnct-notice-height,330px),50vh); }
}

@media (max-width:560px) {
    .srnct-simple-open { grid-template-columns:auto minmax(0,1fr); }
    .srnct-simple-date { grid-column:2; }
    .srnct-simple-dialog-content { padding:20px 18px 8px; }
    .srnct-simple-link { width:calc(100% - 36px); margin:8px 18px 20px; }
}

@media (prefers-reduced-motion:reduce) {
    .srnct-floating-notice { transition:none; }
}
