:root {
    --adyweb-bg: #f8f4ee;
    --adyweb-text: #1e1d1a;
    --adyweb-accent: #1f7a5a;
    --adyweb-accent-dark: #14543f;
    --adyweb-border: rgba(30, 29, 26, 0.15);
    --adyweb-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    --adyweb-card: #ffffff;
}

.adyweb-cmp-banner,
.adyweb-cmp-preferences,
.adyweb-cmp-settings-link {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    color: var(--adyweb-text);
}

.adyweb-label {
    display: inline-block;
}

.adyweb-cmp-banner {
    position: fixed;
    z-index: 9999;
    inset: auto 0 0 0;
    background: radial-gradient(circle at top left, #fff7ec, var(--adyweb-bg));
    border-top: 1px solid var(--adyweb-border);
    box-shadow: var(--adyweb-shadow);
    padding: 18px 24px;
}

.adyweb-cmp-banner[hidden] {
    display: none;
}

.adyweb-cmp-banner.adyweb-animate {
    animation: adyweb-slide-up 0.25s ease;
}

.adyweb-cmp-banner.adyweb-theme-dark {
    --adyweb-bg: #191816;
    --adyweb-text: #f5f3ef;
    --adyweb-border: rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, #191816, #24221f);
}

.adyweb-cmp-banner.adyweb-pos-top {
    inset: 0 0 auto 0;
    border-top: none;
    border-bottom: 1px solid var(--adyweb-border);
}

.adyweb-cmp-banner.adyweb-pos-corner {
    inset: auto 24px 24px auto;
    max-width: 380px;
    border-radius: 16px;
    border: 1px solid var(--adyweb-border);
}

.adyweb-cmp-banner.adyweb-layout-box .adyweb-cmp-banner-inner,
.adyweb-cmp-banner.adyweb-layout-bar .adyweb-cmp-banner-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.adyweb-cmp-banner.adyweb-layout-modal {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 24px;
}

.adyweb-cmp-banner.adyweb-layout-modal .adyweb-cmp-banner-inner {
    background: var(--adyweb-card);
    border-radius: 20px;
    padding: 24px;
    max-width: 640px;
    box-shadow: var(--adyweb-shadow);
}

.adyweb-cmp-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.adyweb-cmp-icon {
    width: 28px;
    height: 28px;
    display: inline-block;
}

.adyweb-cmp-icon-sm {
    width: 18px;
    height: 18px;
}

.adyweb-cmp-text h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.adyweb-cmp-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.adyweb-cmp-links a {
    margin-right: 10px;
    color: var(--adyweb-accent);
    text-decoration: none;
    font-weight: 600;
}

.adyweb-cmp-link:hover,
.adyweb-cmp-link:focus {
    text-decoration: underline;
}

.adyweb-cmp-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.adyweb-btn {
    border: 1px solid var(--adyweb-border);
    background: #fff;
    color: var(--adyweb-text);
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.adyweb-btn:hover,
.adyweb-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.adyweb-btn-accept,
.adyweb-btn-reject,
.adyweb-btn-customize {
    background: #fff;
    border-color: rgba(31, 122, 90, 0.5);
    color: var(--adyweb-accent-dark);
}

.adyweb-equal-buttons .adyweb-btn {
    flex: 1 1 120px;
}

.adyweb-cmp-preferences {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.adyweb-cmp-preferences[hidden] {
    display: none;
}

.adyweb-cmp-preferences.adyweb-animate {
    animation: adyweb-fade-in 0.2s ease;
}

.adyweb-cmp-preferences-inner {
    background: var(--adyweb-card);
    color: var(--adyweb-text);
    border-radius: 20px;
    max-width: 620px;
    width: 100%;
    box-shadow: var(--adyweb-shadow);
    padding: 24px;
}

.adyweb-cmp-preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.adyweb-cmp-preferences-body {
    display: grid;
    gap: 12px;
}

.adyweb-cmp-category {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--adyweb-border);
    border-radius: 16px;
    padding: 14px;
}

.adyweb-cmp-preferences-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.adyweb-cmp-settings-link {
    position: fixed;
    inset: auto 18px 18px auto;
    z-index: 9998;
    background: #fff;
    border: 1px solid rgba(31, 122, 90, 0.5);
    border-radius: 999px;
    padding: 8px 14px;
    box-shadow: var(--adyweb-shadow);
    font-size: 13px;
    font-weight: 600;
    color: var(--adyweb-accent-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 44px;
    overflow: hidden;
    transition: max-width 0.2s ease, background 0.2s ease;
}

.adyweb-cmp-settings-link .adyweb-label {
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.adyweb-cmp-settings-link:hover,
.adyweb-cmp-settings-link:focus {
    max-width: 200px;
    background: #fffaf3;
}

.adyweb-cmp-settings-link:hover .adyweb-label,
.adyweb-cmp-settings-link:focus .adyweb-label {
    opacity: 1;
}

.adyweb-cmp-embed {
    border: 1px dashed var(--adyweb-border);
    padding: 16px;
    text-align: center;
    background: #fffaf3;
    border-radius: 10px;
}

.adyweb-cmp-embed p {
    margin: 0 0 10px;
}

.adyweb-cmp-cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.adyweb-cmp-cookie-table th,
.adyweb-cmp-cookie-table td {
    border: 1px solid var(--adyweb-border);
    padding: 8px 10px;
    text-align: left;
}

@media (max-width: 720px) {
    .adyweb-cmp-banner {
        padding: 14px 16px;
    }

    .adyweb-cmp-actions {
        width: 100%;
    }

    .adyweb-cmp-banner.adyweb-pos-corner {
        inset: auto 12px 12px 12px;
        max-width: none;
    }

    .adyweb-cmp-settings-link {
        inset: auto 12px 12px 12px;
        width: calc(100% - 24px);
        max-width: none;
    }
}

@keyframes adyweb-slide-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes adyweb-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
