/**
 * PrestaPremium Google Consent Mode v2 – front-office styles.
 */

.ppgc-hidden {
    display: none !important;
}

.ppgc-root {
    --ppgc-bg: #ffffff;
    --ppgc-text: #1a1a1a;
    --ppgc-muted: #777;
    --ppgc-border: #e4e4e4;
    --ppgc-primary: #1a73e8;
    --ppgc-primary-hover: #1558b0;
    --ppgc-secondary-bg: #f3f4f6;
    --ppgc-secondary-hover: #e5e7eb;
    --ppgc-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    --ppgc-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#ppgc-consent-root .ppgc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99990;
    padding: 16px;
    box-sizing: border-box;
}

#ppgc-consent-root .ppgc-banner__inner {
    max-width: 960px;
    margin: 0 auto;
    background: var(--ppgc-bg);
    color: var(--ppgc-text);
    border: 1px solid var(--ppgc-border);
    border-radius: var(--ppgc-radius);
    box-shadow: var(--ppgc-shadow);
    padding: 20px 24px;
}

#ppgc-consent-root .ppgc-banner__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

#ppgc-consent-root .ppgc-banner__text {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ppgc-muted);
}

#ppgc-consent-root .ppgc-banner__text p {
    margin: 0 0 8px;
}

#ppgc-consent-root .ppgc-banner__text p:last-child {
    margin-bottom: 0;
}

#ppgc-consent-root .ppgc-banner__text a {
    color: var(--ppgc-primary);
    text-decoration: underline;
}

#ppgc-consent-root .ppgc-banner__text ul,
#ppgc-consent-root .ppgc-banner__text ol {
    margin: 0 0 8px;
    padding-left: 20px;
}

#ppgc-consent-root .ppgc-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

#ppgc-consent-root .ppgc-banner__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#ppgc-consent-root .ppgc-btn {
    flex: 1 1 160px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#ppgc-consent-root .ppgc-btn--primary {
    background: var(--ppgc-primary);
    color: #ffffff;
}

#ppgc-consent-root .ppgc-btn--primary:hover,
#ppgc-consent-root .ppgc-btn--primary:focus {
    background: var(--ppgc-primary-hover);
}

#ppgc-consent-root .ppgc-btn--secondary {
    background: var(--ppgc-secondary-bg);
    color: var(--ppgc-text);
    border-color: var(--ppgc-border);
}

#ppgc-consent-root .ppgc-btn--secondary:hover,
#ppgc-consent-root .ppgc-btn--secondary:focus {
    background: var(--ppgc-secondary-hover);
}

#ppgc-consent-root .ppgc-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--ppgc-primary);
    font-size: 16px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

#ppgc-consent-root .ppgc-powered {
    color: var(--ppgc-muted);
    font-size: 12px;
    text-decoration: none;
    opacity: 0.9;
}

#ppgc-consent-root .ppgc-powered:hover,
#ppgc-consent-root .ppgc-powered:focus {
    color: var(--ppgc-text);
    text-decoration: underline;
}

#ppgc-consent-root .ppgc-settings {
    position: fixed;
    inset: 0;
    z-index: 99991;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

#ppgc-consent-root .ppgc-settings__inner {
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: var(--ppgc-bg);
    color: var(--ppgc-text);
    border-radius: var(--ppgc-radius);
    box-shadow: var(--ppgc-shadow);
    padding: 24px;
}

#ppgc-consent-root .ppgc-settings__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ppgc-muted);
}

#ppgc-consent-root .ppgc-settings__intro {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ppgc-muted);
}

#ppgc-consent-root .ppgc-settings__list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

#ppgc-consent-root .ppgc-settings__item {
    padding: 14px 0;
    border-bottom: 1px solid var(--ppgc-border);
    margin:0
}

#ppgc-consent-root .ppgc-settings__item:last-child {
    border-bottom: none;
}

#ppgc-consent-root .ppgc-settings__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

#ppgc-consent-root .ppgc-settings__copy {
    flex: 1 1 auto;
    min-width: 0;
}

#ppgc-consent-root .ppgc-settings__label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    color: var(--ppgc-text);
}

#ppgc-consent-root .ppgc-settings__hint {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--ppgc-muted);
    line-height: 1.3;
}

#ppgc-consent-root .ppgc-switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    cursor: pointer;
    margin-top: 2px;
}

#ppgc-consent-root .ppgc-switch__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#ppgc-consent-root .ppgc-switch__track {
    position: relative;
    display: block;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #c7c7c7;
    transition: background-color 0.2s ease;
}

#ppgc-consent-root .ppgc-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

#ppgc-consent-root .ppgc-switch__input:checked + .ppgc-switch__track {
    background: var(--ppgc-primary);
}

#ppgc-consent-root .ppgc-switch__input:checked + .ppgc-switch__track .ppgc-switch__thumb {
    transform: translateX(20px);
}

#ppgc-consent-root .ppgc-switch__input:focus-visible + .ppgc-switch__track {
    outline: 2px solid var(--ppgc-primary);
    outline-offset: 2px;
}

#ppgc-consent-root .ppgc-switch__input:disabled + .ppgc-switch__track {
    opacity: 0.55;
    cursor: not-allowed;
}

#ppgc-consent-root .ppgc-settings__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#ppgc-consent-root .ppgc-settings__producer {
    margin-top: 16px;
    text-align: right;
}

#ppgc-consent-root .ppgc-widget {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 99989;
    width: 48px;
    height: 48px;
    border: 1px solid var(--ppgc-border);
    border-radius: 50%;
    background: var(--ppgc-bg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#ppgc-consent-root .ppgc-widget:hover,
#ppgc-consent-root .ppgc-widget:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

#ppgc-consent-root .ppgc-widget__icon {
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 600px) {
    #ppgc-consent-root .ppgc-banner__inner,
    #ppgc-consent-root .ppgc-settings__inner {
        padding: 16px;
    }

    #ppgc-consent-root .ppgc-banner__actions,
    #ppgc-consent-root .ppgc-settings__actions {
        flex-direction: column;
    }

    #ppgc-consent-root .ppgc-btn {
        flex-basis: 100%;
        width: 100%;
    }

    #ppgc-consent-root .ppgc-widget {
        left: 14px;
        bottom: 14px;
    }
}

/* Lift widget when banner is visible */
#ppgc-consent-root .ppgc-banner:not(.ppgc-hidden) ~ .ppgc-widget {
    bottom: 140px;
}

@media (max-width: 600px) {
    #ppgc-consent-root .ppgc-banner:not(.ppgc-hidden) ~ .ppgc-widget {
        bottom: 180px;
    }
}
