.magik-privacy-links {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    padding: 18px 20px;
    font: 13px/1.5 Arial, sans-serif;
    background: #f5f5f5
}

.magik-privacy-links a, .magik-privacy-links button {
    color: #701923;
    text-decoration: underline;
    text-underline-offset: 3px
}

.magik-privacy-links button {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    cursor: pointer
}

.magik-privacy-panel[hidden], .magik-privacy-panel [hidden] {
    display: none !important
}

.magik-privacy-panel, .magik-privacy-panel * {
    box-sizing: border-box
}

.magik-privacy-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10000;
    width: 480px;
    max-width: calc(100% - 40px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 16px;
    background: #fff;
    color: #252a31;
    border: 1px solid #e2e3e6;
    border-radius: 10px;
    box-shadow: 0 12px 48px #17212f24;
    font: 14px/1.55 Arial, sans-serif;
    text-align: left;
    overscroll-behavior: contain;
    scrollbar-width: thin
}

.magik-privacy-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px
}

.magik-privacy-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font: 600 11px/1.4 Arial, sans-serif;
    letter-spacing: .35px;
    color: #686c73
}

.magik-privacy-brand-divider {
    margin: 0 5px;
    color: #c6c8cd
}

.magik-privacy-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: #ad1d2c;
    background: #faecee;
    border-radius: 11px
}

.magik-privacy-panel h2 {
    margin: 0;
    font: 700 19px/1.3 Arial, sans-serif;
    letter-spacing: -.5px;
    color: #23272e
}

.magik-privacy-panel p {
    margin: 0 0 8px
}

#magik-privacy-description {
    font-size: 14px;
    line-height: 1.45;
    color: #5a606a
}

.magik-privacy-panel a {
    color: #941e2b;
    text-decoration: underline;
    text-underline-offset: 3px
}

.magik-privacy-consent-line {
    font-size: 12px;
    line-height: 1.6;
    color: #686d75
}

.magik-privacy-panel button {
    font: 600 13px/1.4 Arial, sans-serif;
    white-space: normal;
    min-height: 40px;
    cursor: pointer;
    transition: background-color .15s, border-color .15s
}

.magik-privacy-heading button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    width: 32px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #747981;
    font: 400 26px/1 Arial, sans-serif;
    margin: -4px -4px 0 0
}

.magik-privacy-heading button:hover {
    background: #f2f3f5;
    color: #23272e
}

.magik-privacy-actions {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 8px;
    margin: 10px 0 8px
}

.magik-privacy-actions button {
    padding: 8px 10px;
    border: 1px solid #d6d9de;
    border-radius: 8px;
    background: #fff;
    color: #343b44
}

.magik-privacy-actions button:hover {
    background: #f5f6f7;
    border-color: #a8afb8
}

.magik-privacy-actions .magik-privacy-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: #af1d2c;
    border-color: #af1d2c;
    color: #fff
}

.magik-privacy-actions .magik-privacy-primary:hover {
    background: #911625;
    border-color: #911625
}

.magik-privacy-primary span {
    font-size: 19px;
    line-height: 1
}

.magik-privacy-panel details {
    margin: 0 0 8px;
    border: 1px solid #e7e8eb;
    border-radius: 9px;
    background: #fafafb
}

.magik-privacy-panel summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    padding: 7px 10px;
    color: #414852;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    list-style: none;
    border-radius: 9px
}

.magik-privacy-panel summary::-webkit-details-marker {
    display: none
}

.magik-privacy-panel summary:hover {
    background: #f0f1f3
}

.magik-privacy-chevron {
    width: 7px;
    height: 7px;
    margin-right: 3px;
    border-right: 1.5px solid #7b828b;
    border-bottom: 1.5px solid #7b828b;
    transform: rotate(45deg)
}

.magik-privacy-panel details[open] .magik-privacy-chevron {
    transform: rotate(225deg)
}

.magik-privacy-options {
    padding: 0 10px 10px
}

.magik-privacy-choice {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #e4e6e9;
    cursor: pointer;
    font-weight: 400
}

.magik-privacy-choice > span {
    order: 0;
    flex: 1;
    min-width: 0
}

.magik-privacy-choice strong {
    display: block;
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: #303640
}

.magik-privacy-choice strong small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 400;
    color: #777f88
}

.magik-privacy-choice > span > span {
    display: block;
    font-size: 12px;
    line-height: 1.6;
    color: #686e78
}

.magik-privacy-choice a {
    display: inline-block;
    margin-top: 3px;
    font-size: 11px
}

.magik-privacy-choice input {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    order: 1;
    flex: 0 0 38px;
    width: 38px;
    height: 22px;
    padding: 0;
    margin: 2px 0 0;
    border: 1px solid #c4c9d0;
    border-radius: 12px;
    background: #d6dae0;
    cursor: pointer;
    transition: background .15s
}

.magik-privacy-choice input:before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 3px #0002;
    transition: transform .15s
}

.magik-privacy-choice input:checked {
    background: #af1d2c;
    border-color: #af1d2c
}

.magik-privacy-choice input:checked:before {
    transform: translateX(16px)
}

.magik-privacy-choice input:disabled {
    background: #aeb7b4;
    border-color: #aeb7b4;
    cursor: default;
    opacity: .7
}

.magik-privacy-panel .magik-privacy-custom {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #b61f30;
    border-radius: 7px;
    background: white;
    color: #9b1b2a
}

.magik-privacy-custom:hover {
    background: #fcf0f2
}

.magik-privacy-bottom {
    padding-top: 1px;
    font-size: 11px;
    line-height: 1.6;
    color: #737983
}

.magik-privacy-bottom .magik-privacy-note {
    margin-bottom: 6px
}

.magik-privacy-panel .magik-privacy-withdraw {
    margin: 6px 0 0;
    min-height: 32px;
    border: 0;
    padding: 4px 0;
    background: none;
    color: #8a3540;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 11px;
    font-weight: 400
}

.magik-privacy-panel button:disabled {
    opacity: .55;
    cursor: wait
}

.magik-privacy-panel :focus-visible, .magik-privacy-links :focus-visible, .magik-map-placeholder button:focus-visible {
    outline: 3px solid #1767a0;
    outline-offset: 3px
}

#magik-privacy-status {
    font-size: 12px;
    margin: 8px 0 0;
    color: #9a1b2b;
    overflow-wrap: anywhere
}

#magik-privacy-status:empty {
    display: none
}

.magik-map-placeholder {
    display: flex;
    min-height: 180px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    text-align: center
}

.magik-map-placeholder p {
    margin: 0;
    max-width: 480px
}

.magik-map-placeholder[hidden] {
    display: none !important
}

.magik-map-placeholder button {
    background: #fff;
    border: 1px solid #8c1623;
    border-radius: 4px;
    color: #8c1623;
    padding: 10px 16px;
    min-height: 44px;
    cursor: pointer
}

.magik-policy {
    box-sizing: border-box;
    max-width: calc(100vw - 20px);
    color: #222;
    font: 16px/1.65 Arial, sans-serif;
    overflow-wrap: anywhere;
    padding-bottom: 30px
}

.magik-policy h1 {
    font-size: 28px;
    line-height: 1.3
}

.magik-policy h2 {
    font-size: 21px;
    margin: 28px 0 12px
}

.magik-policy a {
    color: #8c1623;
    text-decoration: underline
}

.magik-policy li {
    margin-bottom: 8px
}

@media (max-width: 600px) {
    .magik-privacy-panel {
        padding: 14px;
        border-radius: 10px
    }

    .magik-privacy-panel h2 {
        font-size: 19px
    }

    .magik-privacy-brand {
        font-size: 10px
    }

    .magik-privacy-actions {
        gap: 8px
    }

    .magik-privacy-actions button {
        font-size: 12px
    }

    .magik-privacy-actions .magik-privacy-primary {
        gap: 8px
    }

    .magik-privacy-links {
        align-items: center;
        text-align: center;
        flex-direction: column
    }

    .magik-policy h1 {
        font-size: 24px
    }
}

@media (max-width: 350px) {
    .magik-privacy-actions {
        grid-template-columns:1fr
    }

    .magik-privacy-brand-divider {
        margin: 0 2px
    }
}

@media (prefers-reduced-motion: reduce) {
    .magik-privacy-panel * {
        transition: none !important
    }
}

@media (max-width: 600px) {
    .magik-privacy-actions button, .magik-privacy-panel summary, .magik-privacy-panel .magik-privacy-custom {
        min-height: 44px
    }
}
