/* Consent152 — banner and related UI styles.
   Colors come from CSS variables set in #consent152-vars.
   Defaults live on :root so the banner, the floating revoke button and the
   blocked-embed placeholders (all outside #consent152) inherit them. */

:root {
    --consent152-color: #1a6ab3;
    --consent152-text: #ffffff;
    --consent152-radius: 8px;
}

#consent152 {
    position: fixed;
    z-index: 99990;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #2d2d2d;
    box-sizing: border-box;
    max-width: 100%;
}

#consent152 *,
#consent152 *::before,
#consent152 *::after {
    box-sizing: border-box;
}

#consent152.consent152--visible {
    display: block;
}

/* Positions */
#consent152.consent152--bottom {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 16px 16px;
}
#consent152.consent152--top {
    left: 0;
    right: 0;
    top: 0;
    padding: 16px 16px 0;
}
#consent152.consent152--bottom-left {
    left: 16px;
    bottom: 16px;
}
#consent152.consent152--top-left {
    left: 16px;
    top: 16px;
}
#consent152.consent152--left {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
}
#consent152.consent152--right {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
}
#consent152.consent152--center {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
#consent152.consent152--center.consent152--visible {
    display: flex;
}

#consent152 .consent152__box {
    background: #ffffff;
    border-radius: var(--consent152-radius);
    box-shadow: 0 8px 40px rgba(0, 0, 0, .2);
    border: 1px solid rgba(0, 0, 0, .08);
    overflow: hidden;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
#consent152.consent152--left .consent152__box,
#consent152.consent152--right .consent152__box {
    max-width: none;
}

#consent152 .consent152__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 0;
}
#consent152 .consent152__title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}
#consent152 .consent152__close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #777;
    padding: 4px 6px;
    border-radius: 4px;
}
#consent152 .consent152__close:hover {
    background: #f0f0f0;
    color: #333;
}

#consent152 .consent152__body {
    padding: 8px 20px 4px;
}
#consent152 .consent152__text {
    margin: 0 0 12px;
    color: #4a4a4a;
}

/* Preferences */
#consent152 .consent152__prefs {
    display: none;
    border-top: 1px solid #eee;
    margin-top: 4px;
    padding-top: 8px;
}
#consent152 .consent152-pref {
    padding: 6px 0;
    border-bottom: 1px solid #f2f2f2;
}
#consent152 .consent152-pref:last-child {
    border-bottom: 0;
}
#consent152 .consent152-pref__label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}
#consent152 .consent152-pref__services {
    padding: 2px 0 0 24px;
    font-size: 12px;
    color: #888;
}

/* Footer / buttons */
#consent152 .consent152__foot {
    padding: 12px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#consent152 .consent152__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
#consent152 .consent152__btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: calc(var(--consent152-radius) - 2px);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
#consent152 .consent152__btn--accept {
    background: var(--consent152-color);
    color: var(--consent152-text);
}
#consent152 .consent152__btn--accept:hover {
    filter: brightness(1.08);
}
#consent152 .consent152__btn--reject,
#consent152 .consent152__btn--settings {
    background: transparent;
    color: var(--consent152-color);
    border-color: var(--consent152-color);
}
#consent152 .consent152__btn--reject:hover,
#consent152 .consent152__btn--settings:hover {
    background: rgba(0, 0, 0, .04);
}
#consent152 .consent152__policy-link {
    color: var(--consent152-color);
    font-size: 13px;
}

/* Overlay */
#consent152 .consent152__overlay {
    display: none;
}
#consent152.consent152--center .consent152__overlay,
#consent152.consent152--overlay .consent152__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1;
}
body.consent152-locked {
    overflow: hidden;
}

/* Revoke button */
.consent152-revoke {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 99989;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--consent152-color, #1a6ab3);
    color: var(--consent152-text, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
    border: 0;
}
.consent152-revoke:hover {
    filter: brightness(1.08);
}

/* Blocked embed placeholder */
.consent152-embed {
    border: 1px dashed #bbb;
    border-radius: 6px;
    background: #fafafa;
    margin: 8px 0;
}
.consent152-embed__inner {
    padding: 16px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #555;
}
.consent152-embed__service {
    font-weight: 700;
    margin-bottom: 4px;
}
.consent152-embed__text {
    margin-bottom: 10px;
}
.consent152-embed__btn {
    display: inline-block;
    padding: 8px 14px;
    background: var(--consent152-color, #1a6ab3);
    color: var(--consent152-text, #ffffff);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* Form consent checkbox */
.consent152-field {
    margin: 8px 0;
    font-family: inherit;
    font-size: 13px;
}
.consent152-field__label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
}
.consent152-field__label input {
    margin-top: 3px;
}
.consent152-field__text {
    color: #555;
}
.consent152-field__text a {
    color: var(--consent152-color, #1a6ab3);
}
.consent152-field__error {
    display: block;
    color: #c0392b;
    margin-top: 4px;
    font-size: 12px;
}

/* Policy documents */
.consent152-policy {
    max-width: 900px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}
.consent152-policy h1 {
    font-size: 28px;
    margin: 0 0 8px;
}
.consent152-policy__updated {
    color: #888;
    font-size: 13px;
    margin-bottom: 20px;
}
.consent152-policy h2 {
    font-size: 20px;
    margin: 24px 0 8px;
}
.consent152-service {
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    margin: 10px 0;
    overflow: hidden;
}
.consent152-service__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: #f5f5f5;
    padding: 10px 14px;
    flex-wrap: wrap;
}
.consent152-service__title {
    font-weight: 700;
}
.consent152-service__category {
    color: #777;
    font-size: 13px;
}
.consent152-service__body {
    padding: 10px 14px;
    font-size: 14px;
}
.consent152-service__body p {
    margin: 4px 0;
}

@media (max-width: 600px) {
    #consent152.consent152--left,
    #consent152.consent152--right {
        left: 8px;
        right: 8px;
        top: auto;
        bottom: 8px;
        transform: none;
        width: auto;
    }
    #consent152 .consent152__actions {
        flex-direction: column;
    }
    #consent152 .consent152__btn {
        width: 100%;
    }
}
