.bmkcc-root,
.bmkcc-root * {
    box-sizing: border-box;
}

html.bmkcc-open {
    overflow: hidden;
}

.bmkcc-banner {
    position: fixed;
    z-index: 2147483000;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    width: min(980px, calc(100% - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 20px;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 20px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 18px 60px rgba(17, 24, 39, .18);
    font-family: inherit;
}

.bmkcc-banner[hidden],
.bmkcc-modal[hidden],
.bmkcc-manage[hidden] {
    display: none !important;
}

.bmkcc-banner h2,
.bmkcc-dialog h2 {
    margin: 0 0 7px;
    color: #111827;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
}

.bmkcc-banner p,
.bmkcc-dialog p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
}

.bmkcc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 9px;
}

.bmkcc-links a {
    color: #4b5563;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bmkcc-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 310px;
    gap: 8px;
}

.bmkcc-btn {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 18px;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}

.bmkcc-btn:hover {
    transform: translateY(-1px);
}

.bmkcc-btn:active {
    transform: translateY(0) scale(.99);
}

.bmkcc-btn:focus-visible,
.bmkcc-dialog__close:focus-visible,
.bmkcc-manage:focus-visible,
.bmkcc-inline-settings:focus-visible,
.bmkcc-switch input:focus-visible + span {
    outline: 3px solid rgba(131, 183, 53, .28);
    outline-offset: 2px;
}

.bmkcc-btn--primary {
    background: #83b735;
    border-color: #83b735;
    color: #fff;
    box-shadow: 0 8px 20px rgba(131, 183, 53, .26);
}

.bmkcc-btn--primary:hover {
    background: #76a62f;
    border-color: #76a62f;
    box-shadow: 0 10px 24px rgba(131, 183, 53, .32);
}

.bmkcc-btn--secondary {
    background: #eef7df;
    border-color: #d7eab8;
    color: #557b1f;
    box-shadow: 0 6px 16px rgba(131, 183, 53, .12);
}

.bmkcc-btn--secondary:hover {
    background: #e4f2cf;
    border-color: #c8e39e;
    color: #46691a;
    box-shadow: 0 8px 20px rgba(131, 183, 53, .18);
}

.bmkcc-btn--text {
    grid-column: 1 / -1;
    min-height: 40px;
    padding: 8px 14px;
    background: #f5faed;
    border-color: #e1efca;
    color: #557b1f;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(131, 183, 53, .10);
}

.bmkcc-btn--text:hover {
    background: #eef7df;
    border-color: #d4e8b4;
    color: #46691a;
}

.bmkcc-modal {
    position: fixed;
    z-index: 2147483100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.bmkcc-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(17, 24, 39, .52);
    cursor: default;
}

.bmkcc-dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    border-radius: 22px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .26);
}

.bmkcc-dialog__close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #4b5563;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color .15s ease, transform .15s ease;
}

.bmkcc-dialog__close:hover {
    background: transparent;
    color: #83b735;
    transform: scale(1.08);
}

.bmkcc-dialog__close:active {
    transform: scale(.98);
}

.bmkcc-dialog__intro {
    padding-right: 28px;
}

.bmkcc-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.bmkcc-category strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    font-size: 15px;
}

.bmkcc-category p {
    font-size: 13px;
}

.bmkcc-required {
    white-space: nowrap;
    border-radius: 999px;
    padding: 7px 10px;
    background: #eef7df;
    color: #557b1f;
    font-size: 11px;
    font-weight: 700;
}

.bmkcc-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.bmkcc-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.bmkcc-switch span {
    position: relative;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: #d1d5db;
    transition: background .2s ease;
    cursor: pointer;
}

.bmkcc-switch span::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    transition: transform .2s ease;
}

.bmkcc-switch input:checked + span {
    background: #83b735;
}

.bmkcc-switch input:checked + span::after {
    transform: translateX(20px);
}

.bmkcc-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.bmkcc-manage {
    position: fixed;
    z-index: 2147482900;
    left: 14px;
    bottom: 14px;
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, .96);
    color: #4b5563;
    box-shadow: 0 5px 18px rgba(17, 24, 39, .12);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.bmkcc-inline-settings {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

@media (max-width: 767px) {
    .bmkcc-banner {
        bottom: 74px;
        width: calc(100% - 20px);
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
        border-radius: 18px;
    }

    .bmkcc-banner h2,
    .bmkcc-dialog h2 {
        font-size: 17px;
    }

    .bmkcc-banner p {
        font-size: 13px;
    }

    .bmkcc-banner__actions {
        min-width: 0;
        width: 100%;
    }

    .bmkcc-btn {
        min-height: 44px;
        padding: 10px 11px;
        font-size: 12px;
    }

    .bmkcc-modal {
        place-items: end center;
        padding: 0;
    }

    .bmkcc-dialog {
        width: 100%;
        max-height: 86vh;
        border-radius: 22px 22px 0 0;
        padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    }

    .bmkcc-dialog__close {
        top: 10px;
        right: 12px;
    }

    .bmkcc-category {
        padding: 14px;
    }

    .bmkcc-required {
        white-space: normal;
        max-width: 96px;
        text-align: center;
    }

    .bmkcc-manage {
        bottom: 72px;
    }
}

/* === BMK Cookie Consent 1.0.2 — Woodmart-safe visual overrides === */
/* Intentionally scoped and !important: Woodmart and page builders often style all buttons globally. */
.bmkcc-root button.bmkcc-btn,
.bmkcc-root .bmkcc-banner button.bmkcc-btn,
.bmkcc-root .bmkcc-dialog button.bmkcc-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 11px 18px !important;
    border: 1px solid #83b735 !important;
    border-radius: 999px !important;
    background: #83b735 !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(131, 183, 53, .24) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.bmkcc-root button.bmkcc-btn:hover,
.bmkcc-root .bmkcc-banner button.bmkcc-btn:hover,
.bmkcc-root .bmkcc-dialog button.bmkcc-btn:hover {
    border-color: #75a62e !important;
    background: #75a62e !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: 0 10px 26px rgba(131, 183, 53, .32) !important;
    transform: translateY(-1px) !important;
}

.bmkcc-root button.bmkcc-btn:active {
    transform: translateY(0) scale(.985) !important;
}

/* Slight differentiation, but every action stays visibly green. */
.bmkcc-root button.bmkcc-btn--secondary {
    background: #6fa12a !important;
    border-color: #6fa12a !important;
    color: #fff !important;
}

.bmkcc-root button.bmkcc-btn--text {
    grid-column: 1 / -1 !important;
    background: #5f9122 !important;
    border-color: #5f9122 !important;
    color: #fff !important;
    box-shadow: 0 7px 18px rgba(95, 145, 34, .22) !important;
}

/* Close button: fixed in the visual top-right corner, absolutely no pill/circle/background. */
.bmkcc-root .bmkcc-dialog button.bmkcc-dialog__close {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: absolute !important;
    z-index: 20 !important;
    top: 10px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #4b5563 !important;
    font-family: Arial, sans-serif !important;
    font-size: 31px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    text-transform: none !important;
    cursor: pointer !important;
}

.bmkcc-root .bmkcc-dialog button.bmkcc-dialog__close:hover,
.bmkcc-root .bmkcc-dialog button.bmkcc-dialog__close:focus {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #83b735 !important;
}

.bmkcc-root .bmkcc-dialog__intro,
.bmkcc-root .bmkcc-dialog h2 {
    padding-right: 44px !important;
}

@media (max-width: 767px) {
    .bmkcc-root button.bmkcc-btn,
    .bmkcc-root .bmkcc-banner button.bmkcc-btn,
    .bmkcc-root .bmkcc-dialog button.bmkcc-btn {
        min-height: 46px !important;
        padding: 11px 12px !important;
        font-size: 12px !important;
    }

    .bmkcc-root .bmkcc-dialog button.bmkcc-dialog__close {
        top: 8px !important;
        right: 10px !important;
    }
}

/* === BMK Cookie Consent 1.0.3 — compact floating privacy icon === */
.bmkcc-root .bmkcc-manage {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: fixed !important;
    z-index: 2147482900 !important;
    left: 18px !important;
    right: auto !important;
    bottom: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #83b735 !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(131, 183, 53, .34) !important;
    font-size: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    opacity: .96 !important;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, opacity .16s ease !important;
}

.bmkcc-root .bmkcc-manage:hover,
.bmkcc-root .bmkcc-manage:focus-visible {
    background: #75a62e !important;
    color: #fff !important;
    box-shadow: 0 10px 28px rgba(131, 183, 53, .42) !important;
    opacity: 1 !important;
    transform: translateY(-1px) !important;
}

.bmkcc-root .bmkcc-manage:active {
    transform: scale(.96) !important;
}

.bmkcc-root .bmkcc-manage__icon {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
}

@media (max-width: 767px) {
    .bmkcc-root .bmkcc-manage {
        left: 12px !important;
        bottom: calc(76px + env(safe-area-inset-bottom)) !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    .bmkcc-root .bmkcc-manage__icon {
        width: 21px !important;
        height: 21px !important;
    }
}
