/* Cookie consent — public site only */
html.cc-modal-open,
html.cc-modal-open body {
    overflow: hidden;
}

html:not(.cc-prefs-saved) main {
    padding-bottom: 9.5rem;
}

@media (min-width: 768px) {
    html:not(.cc-prefs-saved) main {
        padding-bottom: 7rem;
    }
}

.cc-prefs-saved .cc-banner {
    display: none !important;
}

.cc-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 10040;
    max-width: 960px;
    margin: 0 auto;
    box-sizing: border-box;
    background: #1a1a1a;
    color: #fff;
    border-radius: 14px;
    padding: 18px 20px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    font-size: 14px;
    line-height: 1.5;
}

.cc-banner p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.92);
}

.cc-banner a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.cc-banner a:hover {
    color: #f0d0d6;
}

.cc-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cc-btn {
    cursor: pointer;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.cc-btn:active {
    transform: scale(0.98);
}

.cc-btn-primary {
    background: #6d0019;
    color: #fff;
}

.cc-btn-primary:hover {
    background: #8a0020;
}

.cc-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.cc-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cc-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.cc-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.cc-overlay.cc-open {
    display: flex;
}

.cc-modal {
    width: 100%;
    max-width: 480px;
    max-height: min(90vh, 640px);
    overflow: auto;
    background: #fff;
    color: #1a1a1a;
    border-radius: 14px;
    padding: 22px 22px 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.cc-modal h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.cc-modal > p {
    margin: 0 0 18px;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.cc-cat {
    border: 1px solid #e8e4e6;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.cc-cat label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.cc-cat input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #6d0019;
    flex-shrink: 0;
}

.cc-cat-desc {
    margin: 6px 0 0 28px;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    line-height: 1.45;
}

.cc-cat.cc-disabled label {
    cursor: default;
    color: #333;
}

.cc-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

.cc-modal-actions .cc-btn-primary {
    flex: 1 1 auto;
    min-width: 120px;
}

.cc-modal-actions .cc-btn-secondary,
.cc-modal-actions .cc-btn-ghost {
    flex: 1 1 auto;
    min-width: 100px;
    color: #1a1a1a;
    border-color: #ccc;
}

.cc-modal-actions .cc-btn-secondary {
    background: #f4f1f2;
}

.cc-modal-actions .cc-btn-secondary:hover {
    background: #e8e4e6;
}

.cc-modal-actions .cc-btn-ghost:hover {
    background: #f9f7f8;
}
