/*
 * Croator — custom cookie banner (CWS Suite cookie module, Banner layout: Custom).
 * Pairs with cws-suite/cookie-banner.php.
 *
 * Every rule is scoped to [data-cws-tpl-style="custom"] so it can never leak onto
 * the built-in banner, and button rules sit at (0,3,0)+ so an Elementor kit
 * `.elementor-kit-6 button` rule (0,1,1), should one ever be set in Theme Style,
 * cannot repaint them. The plugin's opacity/visibility + .active mechanism is
 * left untouched.
 *
 * Colours are the site's own kit globals (Site Settings → Global Colors), with
 * their current values as literal fallbacks.
 */

.cws-cookie-floating-wrap[data-cws-tpl-style="custom"],
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"],
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] {
    --cck-red: var(--e-global-color-primary, #DB4437);
    --cck-red-hover: var(--e-global-color-e7e7d44, #B8352A);    /* Brand Hover */
    --cck-dark: var(--e-global-color-secondary, #0E1116);
    --cck-body: var(--e-global-color-40b9c37b, #9AA4B0);        /* Footer Muted — text on dark */
    --cck-muted: var(--e-global-color-71a5efd, #8A94A0);        /* Muted Text */
    --cck-border: var(--e-global-color-58a914ce, #EAEDF1);      /* Border */
    --cck-line: rgba(255, 255, 255, .08);
    --cck-line-strong: rgba(255, 255, 255, .18);
    --cck-font-head: var(--e-global-typography-secondary-font-family, "Space Grotesk"), sans-serif;
    --cck-font: var(--e-global-typography-text-font-family, "Manrope"), sans-serif;
    --cck-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ------------------------------------------------------------------ */
/* Notice — dark full-width bar docked to the bottom                   */
/* ------------------------------------------------------------------ */

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0;
    border-radius: 0;
    box-sizing: border-box;
    overflow: hidden;
    background: var(--cck-dark);
    color: #fff;
    box-shadow: 0 -18px 50px -12px rgba(14, 17, 22, .35);
    z-index: 99990;
    transform: translateY(100%);
    transition: opacity .4s ease, transform .5s var(--cck-ease), visibility .5s;
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"].active {
    transform: translateY(0);
}

/* The red line across the top edge of the bar and the sheet */
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-accent,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-accent {
    height: 3px;
    flex: none;
    background: var(--cck-red);
    background: linear-gradient(90deg, var(--cck-red), color-mix(in srgb, var(--cck-red) 55%, transparent) 60%, transparent);
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 48px;
    box-sizing: border-box;
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-bar__copy {
    flex: 1 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Icon + title + site (shared by the bar and the sheet) */
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-head,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-head {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-head__icon,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-head__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(219, 68, 55, .14);
    background: color-mix(in srgb, var(--cck-red) 14%, transparent);
    color: #fff;
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-cookie,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cookie {
    display: block;
    width: 22px;
    height: 22px;
}

.cws-cookie-floating-wrap[data-cws-tpl-style="custom"] .croator-ck-cookie__crumbs,
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-cookie__crumbs,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cookie__crumbs {
    fill: var(--cck-red);
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-head__text,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-head__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-head__title,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-head__title {
    margin: 0;
    padding: 0;
    font-family: var(--cck-font-head);
    font-size: 17px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.25;
    letter-spacing: -.2px;
    text-transform: none;
    color: #fff;
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-head__site,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-head__site {
    font-family: var(--cck-font);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--cck-muted);
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-bar__text,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__intro {
    margin: 0;
    font-family: var(--cck-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--cck-body);
    text-wrap: pretty;
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-actions {
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-actions__main,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-actions__main {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ------------------------------------------------------------------ */
/* Buttons + links (notice and modal)                                  */
/* ------------------------------------------------------------------ */

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-btn,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    min-width: 0;
    margin: 0;
    padding: 0 22px;
    background: transparent;
    color: #fff;
    border: 1px solid var(--cck-line-strong);
    border-radius: 10px;
    font-family: var(--cck-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: border-color .2s, background-color .2s, color .2s;
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-btn:hover,
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-btn:focus,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-btn:hover,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-btn:focus {
    background: rgba(255, 255, 255, .04);
    color: #fff;
    border-color: rgba(255, 255, 255, .45);
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-btn--primary,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-btn--primary {
    padding: 0 26px;
    background: var(--cck-red);
    color: #fff;
    border-color: var(--cck-red);
    box-shadow: 0 8px 20px -8px rgba(219, 68, 55, .7);
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--cck-red) 70%, transparent);
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-btn--primary:hover,
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-btn--primary:focus,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-btn--primary:hover,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-btn--primary:focus {
    background: var(--cck-red-hover);
    color: #fff;
    border-color: var(--cck-red-hover);
}

/* Text button with a chevron: "Cookie settings" in the bar, "Back" in the sheet.
   The position/size resets undo the plugin's .close-consent-modal rule, which
   the "Back" button also carries. */
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-linkbtn,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-linkbtn {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    height: 46px;
    margin: 0;
    padding: 0 12px;
    background: transparent;
    color: var(--cck-body);
    border: 0;
    border-radius: 10px;
    font-family: var(--cck-font);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: color .2s;
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-linkbtn:hover,
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-linkbtn:focus,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-linkbtn:hover,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-linkbtn:focus {
    background: transparent;
    color: #fff;
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-chev,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-linkbtn .croator-ck-chev {
    flex: none;
    width: 12px;
    height: 12px;
    padding: 0;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-linkbtn .croator-ck-chev path {
    stroke: currentColor;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-linkbtn--back .croator-ck-chev {
    transform: rotate(180deg);
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-btn:focus-visible,
.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-linkbtn:focus-visible,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-btn:focus-visible,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-linkbtn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-link,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    transition: color .2s;
}

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-link:hover,
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-link:hover {
    color: var(--cck-red);
}

/* ------------------------------------------------------------------ */
/* Floating button — white circle, reopens the preferences             */
/* ------------------------------------------------------------------ */

/* The plugin pins left/right at 12px inline; the 12px margin lands it at 24px. */
.cws-cookie-floating-wrap[data-cws-tpl-style="custom"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    bottom: 24px;
    margin: 0 12px;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid var(--cck-border);
    border-radius: 50%;
    background: #fff;
    color: var(--cck-dark);
    box-shadow: 0 10px 28px -8px rgba(14, 17, 22, .28), 0 1px 3px rgba(14, 17, 22, .08);
    z-index: 9998;
}

.cws-cookie-floating-wrap[data-cws-tpl-style="custom"]:hover {
    background: #fff;
    box-shadow: 0 14px 34px -8px rgba(219, 68, 55, .4), 0 1px 3px rgba(14, 17, 22, .08);
    box-shadow: 0 14px 34px -8px color-mix(in srgb, var(--cck-red) 40%, transparent), 0 1px 3px rgba(14, 17, 22, .08);
}

/* Circle only: it spins in as it appears. The peek tab keeps the plugin's own
   slide-up transform. */
.cws-cookie-floating-wrap[data-cws-tpl-style="custom"]:not(.cws-cookie-floating-wrap--peek) {
    transform: scale(.6) rotate(-30deg);
    transition: opacity .35s ease, transform .45s var(--cck-ease), box-shadow .25s, visibility .45s;
}

.cws-cookie-floating-wrap[data-cws-tpl-style="custom"]:not(.cws-cookie-floating-wrap--peek).active {
    transform: scale(1) rotate(0);
}

.cws-cookie-floating-wrap[data-cws-tpl-style="custom"] .croator-ck-fab {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cws-cookie-floating-wrap[data-cws-tpl-style="custom"] .croator-ck-fab__icon,
.cws-cookie-floating-wrap[data-cws-tpl-style="custom"] .croator-ck-cookie {
    display: block;
    width: 26px;
    height: 26px;
}

.cws-cookie-floating-wrap[data-cws-tpl-style="custom"] .croator-ck-cookie {
    stroke-width: 1.4;
}

.cws-cookie-floating-wrap[data-cws-tpl-style="custom"] svg path {
    stroke: var(--cck-dark);
}

.cws-cookie-floating-wrap[data-cws-tpl-style="custom"] .croator-ck-cookie__bits {
    fill: var(--cck-dark);
}

.cws-cookie-floating-wrap[data-cws-tpl-style="custom"] .croator-ck-fab__label {
    font-family: var(--cck-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: var(--cck-dark);
    white-space: nowrap;
}

/* Peek style (module setting): a tab glued to the bottom edge */
.cws-cookie-floating-wrap[data-cws-tpl-style="custom"].cws-cookie-floating-wrap--peek {
    width: auto;
    height: auto;
    bottom: 0;
    padding: 10px 16px 14px;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
}

/* ------------------------------------------------------------------ */
/* Modal — preferences as a bottom sheet in the same dark bar          */
/* ------------------------------------------------------------------ */

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] {
    align-items: flex-end;
    padding: 0;
    box-sizing: border-box;
    background: rgba(14, 17, 22, .5);
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: min(88vh, 860px);
    overflow: hidden;
    background: var(--cck-dark);
    color: #fff;
    font-family: var(--cck-font);
    box-shadow: 0 -18px 50px -12px rgba(14, 17, 22, .45);
    transform: translateY(40px);
    transition: transform .5s var(--cck-ease);
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"].active .croator-ck-sheet {
    transform: translateY(0);
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__inner {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 16px;
}

/* The plugin's close icon (cws_cookie_part('close')) in the sheet header */
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__head .close-consent-modal {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--cck-line-strong);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__head .close-consent-modal:hover {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .45);
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__head .close-consent-modal svg {
    width: 22px;
    height: 22px;
    padding: 0;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__head .close-consent-modal svg path {
    stroke: #fff;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0 0 20px;
}

/* Firefox only — in Chrome these standard properties would switch off the
   ::-webkit-scrollbar rules below, so they are kept out of its way. */
@supports not selector(::-webkit-scrollbar) {
    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__body {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, .25) transparent;
    }
}

/* Chrome / Edge / Safari — slim rounded thumb, no arrows, red on hover */
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__body::-webkit-scrollbar {
    width: 6px;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__body::-webkit-scrollbar-track {
    background: transparent;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .25);
    border-radius: 999px;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__body::-webkit-scrollbar-thumb:hover {
    background: var(--cck-red);
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__body::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__intro {
    margin: 0 0 16px;
    max-width: 880px;
}

/* Category cards */
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cat {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--cck-line);
    border-radius: 12px;
    box-sizing: border-box;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cat__name {
    margin: 0;
    padding: 0;
    min-width: 0;
    font-family: var(--cck-font);
    font-size: 14.5px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cat__desc {
    margin: 6px 0 0;
    font-family: var(--cck-font);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--cck-muted);
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .always-active {
    flex: none;
    font-family: var(--cck-font);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cck-red);
    white-space: nowrap;
}

/* The plugin's switch (cws_cookie_part('toggle')) — pill, red when on.
   50px wide so the knob travels the 26px the base stylesheet forces. */
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .enable-single-cookie {
    flex: none;
    display: flex;
    align-items: center;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .enable-single-cookie .switch {
    width: 50px;
    height: 24px;
    margin: 0;
    flex-shrink: 0;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .enable-single-cookie .slider.round {
    border-radius: 999px;
    background-color: rgba(255, 255, 255, .16);
    box-shadow: none;
    transition: background-color .25s;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .enable-single-cookie .slider.round:before {
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    border-radius: 50%;
    background-color: #fff;
    transition: transform .25s var(--cck-ease);
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .enable-single-cookie input:checked + .slider.round {
    background-color: var(--cck-red);
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .enable-single-cookie input:focus-visible + .slider.round {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Cookie list (native <details>, no script needed) */
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cookies {
    margin-top: 10px;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cookies summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    list-style: none;
    font-family: var(--cck-font);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cookies summary::-webkit-details-marker {
    display: none;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cookies summary::after {
    content: "+";
    font-size: 15px;
    line-height: 1;
    color: var(--cck-red);
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cookies[open] summary::after {
    content: "\2212";
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cookies__list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cookie-row {
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--cck-line);
    font-family: var(--cck-font);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--cck-body);
    overflow-wrap: anywhere;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cookie-row:last-child {
    border-bottom: 0;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cookie-row__line {
    display: block;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cookie-row__label {
    font-weight: 700;
    color: #fff;
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__foot {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 0 24px;
    border-top: 1px solid var(--cck-line);
}

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__foot .croator-ck-actions__main {
    flex: 0 1 auto;
    justify-content: flex-end;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 768px) {
    .cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-bar__inner {
        padding: 20px 16px;
        gap: 16px;
    }

    .cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-bar__copy {
        flex-basis: 100%;
        gap: 12px;
    }

    .cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-actions,
    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__foot {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 8px;
        box-sizing: border-box;
    }

    .cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-actions__main,
    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__foot .croator-ck-actions__main {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    /* Sheet: accept spans the first row, decline and save share the second */
    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-btn--primary {
        grid-column: 1 / -1;
        order: -1;
    }

    .cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-btn,
    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-btn {
        width: 100%;
        height: auto;
        min-height: 46px;
        padding: 8px 12px;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
    }

    /* The text button drops below the main actions */
    .cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] .croator-ck-linkbtn,
    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-linkbtn {
        order: 2;
        height: 40px;
    }

    .cws-cookie-floating-wrap[data-cws-tpl-style="custom"] {
        bottom: 16px;
        margin: 0 4px;
    }

    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet {
        max-height: 100%;
    }

    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__inner {
        padding: 0 16px;
    }

    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__head {
        padding: 20px 0 14px;
    }

    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-cats {
        grid-template-columns: minmax(0, 1fr);
    }

    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet__foot {
        padding: 14px 0 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"],
    .cws-cookie-consent-modal[data-cws-tpl-style="custom"] .croator-ck-sheet,
    .cws-cookie-floating-wrap[data-cws-tpl-style="custom"]:not(.cws-cookie-floating-wrap--peek) {
        transform: none;
    }
}
