/* HB Cookie Consent */

/* Overlay */
.hb-cc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hb-cc-banner.show .hb-cc-overlay {
    opacity: 1;
}

/* Banner Container */
.hb-cc-banner {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* Dialog Box */
.hb-cc-dialog {
    background: var(--hb-cc-bg, #ffffff);
    color: var(--hb-cc-text, #333333);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: calc(100% - 40px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.hb-cc-banner.show .hb-cc-dialog {
    transform: translateY(0);
    opacity: 1;
}

/* Position Variants */
.hb-cc-banner[data-position="bottom-left"] {
    bottom: 20px;
    left: 20px;
}

.hb-cc-banner[data-position="bottom-center"] {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.hb-cc-banner[data-position="bottom-right"] {
    bottom: 20px;
    right: 20px;
}

.hb-cc-banner[data-position="center"] {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hb-cc-banner[data-position="center"] .hb-cc-dialog {
    transform: scale(0.9);
}

.hb-cc-banner[data-position="center"].show .hb-cc-dialog {
    transform: scale(1);
}

/* Animation: Fade */
.hb-cc-banner[data-animation="fade"] .hb-cc-dialog {
    transform: none;
}

.hb-cc-banner[data-animation="fade"].show .hb-cc-dialog {
    transform: none;
}

/* Logo */
.hb-cc-logo {
    text-align: center;
    margin-bottom: 20px;
}

.hb-cc-logo img {
    /* max-width: 150px; */
    height: auto;
}

/* Heading */
.hb-cc-heading {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--hb-cc-text, #333333);
}

/* Description */
.hb-cc-description {
    margin-bottom: 20px;
    color: var(--hb-cc-text, #333333);
    line-height: 1.6;
}

/* Cookie Groups */
.hb-cc-groups {
    margin: 20px 0;
    border-top: 1px solid #e5e5e5;
    padding-top: 20px;
}

.hb-cc-group {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.hb-cc-group-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 8px;
}

.hb-cc-group-checkbox {
    margin: 0 10px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.hb-cc-group-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.hb-cc-group-name {
    flex: 1;
}

.hb-cc-required {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.hb-cc-group-description {
    margin: 0 0 0 28px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Buttons */
.hb-cc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.hb-cc-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    white-space: nowrap;
}

.hb-cc-btn-primary {
    background: var(--hb-cc-primary, #0066cc);
    color: #ffffff;
    flex: 1;
    min-width: 140px;
}

.hb-cc-btn-primary:hover {
    background: color-mix(in srgb, var(--hb-cc-primary, #0066cc) 90%, black);
    transform: translateY(-1px);
}

.hb-cc-btn-secondary {
    background: var(--hb-cc-secondary, #6c757d);
    color: #ffffff;
    flex: 1;
    min-width: 140px;
}

.hb-cc-btn-secondary:hover {
    background: color-mix(in srgb, var(--hb-cc-secondary, #6c757d) 90%, black);
    transform: translateY(-1px);
}

.hb-cc-btn-outline {
    background: transparent;
    border: 2px solid var(--hb-cc-primary, #0066cc);
    color: var(--hb-cc-primary, #0066cc);
    flex: 1;
    min-width: 140px;
}

.hb-cc-btn-outline:hover {
    background: var(--hb-cc-primary, #0066cc);
    color: #ffffff;
}

.hb-cc-btn-link {
    background: transparent;
    color: var(--hb-cc-primary, #0066cc);
    padding: 12px 16px;
    text-decoration: underline;
}

.hb-cc-btn-link:hover {
    color: color-mix(in srgb, var(--hb-cc-primary, #0066cc) 80%, black);
}

/* Footer Links */
.hb-cc-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
    font-size: 13px;
}

.hb-cc-link {
    color: var(--hb-cc-primary, #0066cc);
    text-decoration: none;
}

.hb-cc-link:hover {
    text-decoration: underline;
}

/* Blocked Content Placeholder */
.hb-cc-blocked-content {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
}

.hb-cc-blocked-content-inner {
    max-width: 400px;
    margin: 0 auto;
}

.hb-cc-blocked-icon {
    color: #6c757d;
    margin-bottom: 15px;
}

.hb-cc-blocked-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
}

.hb-cc-blocked-text {
    color: #666;
    margin: 0 0 20px;
    line-height: 1.6;
}

.hb-cc-unblock-btn {
    background: var(--hb-cc-primary, #0066cc);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hb-cc-unblock-btn:hover {
    background: color-mix(in srgb, var(--hb-cc-primary, #0066cc) 90%, black);
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .hb-cc-banner {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;
    }

    .hb-cc-banner[data-position="center"] {
        top: 50% !important;
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
    }

    .hb-cc-dialog {
        width: 100%;
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
        padding: 20px;
    }

    .hb-cc-banner[data-position="center"] .hb-cc-dialog {
        /* width: calc(100% - 40px); */
        max-height: calc(100vh - 40px);
        border-radius: 8px;
    }

    .hb-cc-buttons {
        flex-direction: column;
    }

    .hb-cc-btn {
        width: 100%;
    }

    .hb-cc-heading {
        font-size: 18px;
    }
}

/* Scrollbar Styling */
.hb-cc-dialog::-webkit-scrollbar {
    width: 8px;
}

.hb-cc-dialog::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.hb-cc-dialog::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.hb-cc-dialog::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Accessibility */
.hb-cc-btn:focus,
.hb-cc-group-checkbox:focus,
.hb-cc-link:focus,
.hb-cc-unblock-btn:focus {
    outline: 2px solid var(--hb-cc-primary, #0066cc);
    outline-offset: 2px;
}
