.cookie-scout-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-scout-banner--bottom { bottom: 0; }
.cookie-scout-banner--top { top: 0; }
.cookie-scout-banner--center {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
}

.cookie-scout-banner__container {
    padding: 24px 32px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.cookie-scout-banner--center .cookie-scout-banner__container {
    border-radius: 12px;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cookie-scout-banner__logo img {
    max-height: 32px;
    width: auto;
}

.cookie-scout-banner__content {
    flex: 1;
    min-width: 280px;
}

.cookie-scout-banner__heading {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.cookie-scout-banner__text {
    margin: 0;
    opacity: 0.85;
}

.cookie-scout-banner__policy-link {
    display: inline-block;
    margin-top: 6px;
    text-decoration: underline;
    opacity: 0.7;
    font-size: 13px;
}

.cookie-scout-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-scout-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
}

.cookie-scout-btn:hover {
    opacity: 0.9;
}

.cookie-scout-btn:active {
    transform: scale(0.98);
}

.cookie-scout-btn--primary {
    color: #fff;
}

.cookie-scout-btn--secondary {
    background: #e5e7eb;
    color: #374151;
}

.cookie-scout-btn--outline {
    background: transparent;
    border: 1px solid currentColor;
    opacity: 0.7;
}

/* Settings panel */
.cookie-scout-banner__settings {
    padding: 24px 32px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-scout-banner__settings h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
}

.cookie-scout-banner__settings-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cookie-scout-category {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-scout-category:last-child {
    border-bottom: none;
}

.cookie-scout-category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cookie-scout-category__label {
    font-weight: 500;
    font-size: 14px;
}

.cookie-scout-category__count {
    font-size: 12px;
    opacity: 0.6;
    margin-left: 6px;
}

.cookie-scout-category__info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.cookie-scout-category__description {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 4px;
    margin-bottom: 0;
}

.cookie-scout-category__show-details {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
    font-size: 12px;
    font-family: inherit;
    color: #2563eb;
    opacity: 0.85;
    transition: opacity 0.15s;
}

.cookie-scout-category__show-details:hover {
    opacity: 1;
}

.cookie-scout-category__chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.cookie-scout-category__show-details--open .cookie-scout-category__chevron {
    transform: rotate(180deg);
}

.cookie-scout-category__details {
    margin-top: 10px;
    padding: 0 0 4px;
}

.cookie-scout-category__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.cookie-scout-category__table th {
    text-align: left;
    font-weight: 600;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.7;
}

.cookie-scout-category__table td {
    padding: 5px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: top;
}

.cookie-scout-category__table tr:last-child td {
    border-bottom: none;
}

.cookie-scout-detail__name {
    font-family: Menlo, Consolas, Monaco, 'Courier New', monospace;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

/* Toggle switch */
.cookie-scout-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-scout-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-scout-toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    border-radius: 24px;
    transition: 0.3s;
}

.cookie-scout-toggle__slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-scout-toggle input:checked + .cookie-scout-toggle__slider {
    background-color: #2563eb;
}

.cookie-scout-toggle input:checked + .cookie-scout-toggle__slider::before {
    transform: translateX(20px);
}

.cookie-scout-toggle input:disabled + .cookie-scout-toggle__slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Reopen button */
.cookie-scout-reopen {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999998;
    width: 48px;
    height: 48px;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
    transition: transform 0.2s;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12,2a1,1,0,0,0-1,1A2,2,0,0,1,9.52,4.92a1,1,0,0,0-.64.52,1.06,1.06,0,0,0,0,.82A1.92,1.92,0,0,1,9,7,2,2,0,0,1,7,9a1.92,1.92,0,0,1-.74-.15,1.06,1.06,0,0,0-.82,0,1,1,0,0,0-.52.64A2,2,0,0,1,3,11a1,1,0,0,0-1,1A10,10,0,1,0,12,2Z' fill='%23000'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12,2a1,1,0,0,0-1,1A2,2,0,0,1,9.52,4.92a1,1,0,0,0-.64.52,1.06,1.06,0,0,0,0,.82A1.92,1.92,0,0,1,9,7,2,2,0,0,1,7,9a1.92,1.92,0,0,1-.74-.15,1.06,1.06,0,0,0-.82,0,1,1,0,0,0-.52.64A2,2,0,0,1,3,11a1,1,0,0,0-1,1A10,10,0,1,0,12,2Z' fill='%23000'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.cookie-scout-reopen:hover {
    transform: scale(1.1);
}

/* Cookie list */
.cookie-scout-list__category {
    margin-bottom: 32px;
}

.cookie-scout-list__category h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.cookie-scout-list__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cookie-scout-list__table th,
.cookie-scout-list__table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-scout-list__table th {
    font-weight: 600;
    background: #f9fafb;
}

/* Policy */
.cookie-scout-policy table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 32px;
    font-size: 14px;
}

.cookie-scout-policy th,
.cookie-scout-policy td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-scout-policy th {
    background: #f9fafb;
    font-weight: 600;
}

/* Iframe placeholders */
.cookie-scout-iframe-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #6b7280;
    text-align: center;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.cookie-scout-iframe-placeholder__content {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cookie-scout-iframe-placeholder__content svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.cookie-scout-iframe-placeholder__content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    max-width: 320px;
}

.cookie-scout-iframe-placeholder .cookie-scout-btn {
    margin-top: 4px;
    font-size: 13px;
    padding: 8px 18px;
}

/* Consent trigger (shortcode) */
.cookie-scout-consent-trigger {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: inherit;
    opacity: 0.7;
    font-size: inherit;
    transition: opacity 0.15s;
}

.cookie-scout-consent-trigger:hover {
    opacity: 1;
}

.cookie-scout-consent-trigger--button {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    text-decoration: none;
    opacity: 0.8;
}

.cookie-scout-consent-trigger--button:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-scout-banner__container {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .cookie-scout-banner__actions {
        justify-content: center;
        width: 100%;
    }

    .cookie-scout-btn {
        flex: 1;
        min-width: 0;
    }

    .cookie-scout-banner__settings {
        padding: 20px;
    }
}
