/* Regulus custom cookie banner (CWS Suite, Banner layout = Custom).
   Every rule is scoped to [data-cws-tpl-style="custom"] so it never touches the default banner,
   and button rules sit at (0,3,0)+ to beat the Elementor kit's (0,1,1) button rule. */

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"],
.cws-cookie-consent-modal[data-cws-tpl-style="custom"],
.cws-cookie-floating-wrap[data-cws-tpl-style="custom"] {
    --rg-panel: #171a21;
    --rg-line: rgba(255, 255, 255, .08);
    --rg-txt: #e9e9ec;
    --rg-mut: #a3a6ae;
    --rg-goldc: #f8c62a;
    --rg-gold: linear-gradient(90deg, #f8c62a 0%, #fde58a 70%, #fff4c4 100%);
    font-family: Poppins, sans-serif;
    color: var(--rg-txt);
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] *,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] * { box-sizing: border-box; }

/* ---------- shared: buttons ---------- */
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .rg-ck-btn,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-btn {
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;
    padding: 12px 8px;
    margin: 0;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s;
    box-shadow: none;
    min-height: 0;
    width: auto;
}
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .rg-ck-btn--gold,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-btn--gold {
    background: var(--rg-gold);
    color: #111;
    border-color: transparent;
    box-shadow: 0 6px 20px -8px rgba(248, 198, 42, .6);
}
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .rg-ck-btn--gold:hover,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-btn--gold:hover {
    background: var(--rg-gold);
    color: #111;
    filter: brightness(1.05);
    transform: translateY(-1px);
}
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .rg-ck-btn--out,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-btn--out {
    background: transparent;
    color: var(--rg-txt);
    border-color: rgba(255, 255, 255, .22);
}
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .rg-ck-btn--out:hover,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-btn--out:hover {
    background: transparent;
    border-color: var(--rg-goldc);
    color: var(--rg-goldc);
}
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .rg-ck-btn:focus-visible,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-btn:focus-visible {
    outline: 2px solid var(--rg-goldc);
    outline-offset: 2px;
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] a,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] a {
    color: var(--rg-goldc);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] a:hover,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] a:hover { color: #fde58a; }

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .rg-ck-logo,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: none;
    margin: 0;
}

/* ---------- notice (banner) ---------- */
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] {
    left: 24px;
    bottom: 24px;
    width: min(460px, calc(100vw - 48px));
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    z-index: 99999;
}
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .rg-ck-banner {
    background: var(--rg-panel);
    border: 1px solid var(--rg-line);
    border-radius: 8px;
    padding: 26px 26px 22px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
    transform: translateY(12px);
    transition: transform .25s;
}
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"].active .rg-ck-banner { transform: none; }

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .rg-ck-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .rg-ck-tag {
    display: inline-block;
    background: var(--rg-gold);
    color: #111;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .32em;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
}
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .rg-ck-title {
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    color: var(--rg-txt);
    margin: 6px 0 0;
    padding: 0;
}
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .rg-ck-text {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--rg-mut);
    margin: 0 0 22px;
    padding: 0;
}
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .rg-ck-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

@media (max-width: 768px) {
    .cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] {
        left: 16px;
        bottom: 16px;
        width: calc(100vw - 32px);
    }
}
@media (max-width: 420px) {
    .cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .rg-ck-banner { padding: 22px 18px 18px; }
    .cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .rg-ck-actions { grid-template-columns: 1fr 1fr; }
    .cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .rg-ck-btn--gold { grid-column: 1 / -1; }
}

/* ---------- floating button ---------- */
.cws-cookie-floating-wrap[data-cws-tpl-style="custom"] {
    width: 44px;
    height: 44px;
    bottom: 24px;
    padding: 0;
    border-radius: 6px;
    background: var(--rg-panel);
    border: 1px solid rgba(248, 198, 42, .4);
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8);
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.cws-cookie-floating-wrap[data-cws-tpl-style="custom"]:hover {
    background: var(--rg-panel);
    border-color: var(--rg-goldc);
}
.cws-cookie-floating-wrap[data-cws-tpl-style="custom"] .rg-ck-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.cws-cookie-floating-wrap[data-cws-tpl-style="custom"] .rg-ck-fab svg {
    width: 22px;
    height: 22px;
}
.cws-cookie-floating-wrap[data-cws-tpl-style="custom"] .rg-ck-fab svg path { stroke: var(--rg-goldc); }

/* ---------- modal ---------- */
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] {
    background: rgba(5, 6, 9, .72);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    padding: 24px;
    transition: opacity .25s, visibility .25s;
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-dialog {
    width: min(860px, 100%);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: var(--rg-panel);
    border: 1px solid var(--rg-line);
    border-radius: 8px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-dialog__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--rg-line);
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-dialog__head .rg-ck-logo { width: 36px; height: 36px; }
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-dialog__head h2 {
    flex: 1;
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    color: var(--rg-txt);
    margin: 0;
    padding: 0;
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-x {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    background: none;
    border: 1px solid var(--rg-line);
    border-radius: 4px;
    color: var(--rg-txt);
    font-family: Poppins, sans-serif;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all .2s;
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-x:hover {
    background: none;
    border-color: var(--rg-goldc);
    color: var(--rg-goldc);
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-dialog__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 8px 28px;
    scrollbar-color: #3a3f4a transparent;
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-intro {
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--rg-mut);
    margin: 0;
    padding: 18px 0 22px;
    border-bottom: 1px solid var(--rg-line);
}

/* category: [trigger | control] over a full-width expander */
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-cat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    border-bottom: 1px solid var(--rg-line);
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-cat:last-child { border-bottom: 0; }
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-crow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    cursor: pointer;
    user-select: none;
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-chev {
    width: 9px;
    height: 9px;
    flex: none;
    border-right: 2px solid var(--rg-goldc);
    border-bottom: 2px solid var(--rg-goldc);
    transform: rotate(-45deg);
    transition: transform .2s;
    margin-right: 4px;
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-crow.active .rg-ck-chev { transform: rotate(45deg); }
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-crow h4 {
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    color: var(--rg-txt);
    margin: 0;
    padding: 0;
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-always {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--rg-goldc);
    border: 1px solid rgba(248, 198, 42, .4);
    padding: 5px 10px;
    border-radius: 3px;
    white-space: nowrap;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-cdesc {
    grid-column: 1 / -1;
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows .3s;
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-cdesc.expanded { grid-template-rows: 1fr; }
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-cdesc__inner {
    min-height: 0;
    visibility: hidden;
    transition: visibility .3s;
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-cdesc.expanded .rg-ck-cdesc__inner { visibility: visible; }
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-cdesc p {
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--rg-mut);
    margin: 0;
    padding: 0 0 20px 25px;
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-cookies {
    list-style: none;
    margin: 0 0 20px 25px;
    padding: 0;
    border-left: 1px solid var(--rg-line);
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-cookies li {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--rg-mut);
    padding: 6px 0 6px 14px;
    margin: 0;
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-cookies strong { color: var(--rg-txt); font-weight: 600; }
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-dur { color: var(--rg-goldc); margin-left: 8px; font-size: 11px; }

/* the plugin's toggle part, restyled */
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .enable-single-cookie .switch {
    position: relative;
    display: block;
    width: 44px;
    height: 24px;
    margin: 0;
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .enable-single-cookie .slider {
    background: #2c313b;
    border-radius: 24px;
    transition: .2s;
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .enable-single-cookie .slider:before {
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #8a8f99;
    border-radius: 50%;
    transition: .2s;
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .enable-single-cookie input:checked + .slider { background: var(--rg-gold); }
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .enable-single-cookie input:checked + .slider:before {
    background: #111;
    transform: translateX(20px) !important;
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .enable-single-cookie input:focus-visible + .slider {
    box-shadow: 0 0 0 2px var(--rg-goldc);
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-dialog__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 28px;
    border-top: 1px solid var(--rg-line);
}
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-dialog__foot .rg-ck-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 12px;
    letter-spacing: .12em;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] { padding: 12px; }
    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-dialog { max-height: calc(100vh - 24px); }
    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-dialog__head,
    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-dialog__foot { padding: 16px 18px; }
    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-dialog__body { padding: 4px 18px; }
    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .rg-ck-dialog__foot .rg-ck-btn { flex: 1 1 100%; white-space: normal; }
}
