.dryuu-analytics-consent {
    position: fixed;
    z-index: 100000;
    right: 24px;
    bottom: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    width: min(720px, calc(100vw - 48px));
    padding: 20px 22px;
    border: 1px solid rgba(17, 20, 28, 0.14);
    border-radius: 8px;
    background: #ffffff;
    color: #171820;
    box-shadow: 0 18px 48px rgba(17, 20, 28, 0.18);
    font-family: "Source Sans Pro", Arial, sans-serif;
}

.dryuu-analytics-consent[hidden],
.dryuu-analytics-consent-manage[hidden] {
    display: none;
}

.dryuu-analytics-consent-copy strong {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 1.2;
}

.dryuu-analytics-consent-copy p {
    margin: 0;
    color: #555866;
    font-size: 14px;
    line-height: 1.45;
}

.dryuu-analytics-consent-actions {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.dryuu-analytics-consent-actions button,
.dryuu-analytics-consent-manage {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #1b1d27;
    border-radius: 6px;
    background: #ffffff;
    color: #1b1d27;
    font: 700 13px/1 "Source Sans Pro", Arial, sans-serif;
    cursor: pointer;
}

.dryuu-analytics-consent-actions [data-consent="granted"] {
    border-color: #e64082;
    background: #e64082;
    color: #ffffff;
}

.dryuu-analytics-consent-manage {
    position: fixed;
    z-index: 99999;
    left: 14px;
    bottom: 14px;
    min-height: 32px;
    padding: 0 10px;
    border-color: rgba(17, 20, 28, 0.18);
    background: rgba(255, 255, 255, 0.94);
    color: #4c4f5b;
    box-shadow: 0 7px 20px rgba(17, 20, 28, 0.1);
    font-size: 12px;
}

/* Match the compact privacy icon on desktop and keep it clear of support. */
@media (min-width: 769px) {
    .dryuu-analytics-consent-manage {
        display: inline-grid;
        left: 24px;
        bottom: 104px;
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
        place-items: center;
        border-radius: 50%;
        border-color: rgba(17, 20, 28, 0.14);
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 7px 20px rgba(17, 20, 28, 0.14);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .dryuu-analytics-consent-manage:hover,
    .dryuu-analytics-consent-manage:focus-visible {
        border-color: rgba(230, 64, 130, 0.58);
        color: #e64082;
        outline: none;
        box-shadow: 0 9px 24px rgba(17, 20, 28, 0.18), 0 0 0 4px rgba(230, 64, 130, 0.1);
    }

    .dryuu-analytics-consent-manage-icon {
        display: block;
    }

    .dryuu-analytics-consent-manage-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

.dryuu-analytics-consent-manage-icon {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    .dryuu-analytics-consent {
        right: 12px;
        bottom: calc(112px + env(safe-area-inset-bottom, 0px));
        grid-template-columns: 1fr;
        gap: 14px;
        width: calc(100vw - 24px);
        max-height: min(58vh, 360px);
        overflow: auto;
        padding: 17px;
    }

    .dryuu-analytics-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .dryuu-analytics-consent-actions button {
        width: 100%;
    }

    .dryuu-analytics-consent-manage {
        left: 12px;
        bottom: calc(92px + env(safe-area-inset-bottom, 0px));
        display: inline-grid;
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
        place-items: center;
        border-radius: 50%;
        border-color: rgba(17, 20, 28, 0.14);
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 5px 14px rgba(17, 20, 28, 0.12);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .dryuu-analytics-consent-manage-icon {
        display: block;
    }

    .dryuu-analytics-consent-manage-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

.dryuu-analytics-consent-manage.is-inline:not([hidden]) {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    height: auto;
    min-height: 32px;
    margin-top: 12px;
    padding: 7px 10px;
    border-radius: 4px;
    box-shadow: none;
}

.dryuu-analytics-consent-manage.is-inline .dryuu-analytics-consent-manage-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

@media print {
    .dryuu-analytics-consent,
    .dryuu-analytics-consent-manage {
        display: none !important;
    }
}
