/* Banner za saglasnost i click-to-load forme */
.consent-banner {
    --consent-primary: #f97316;
    --consent-primary-dark: #d55b17;
    --consent-ink: #172033;
    --consent-muted: #5f6c80;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2000;
    display: none;
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    color: var(--consent-ink);
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 18px;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
    font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.consent-banner.is-visible {
    display: block;
}

.consent-banner__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
}

.consent-banner__text {
    flex: 1;
    min-width: 0;
}

.consent-banner__text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.consent-banner__text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--consent-muted);
}

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

.consent-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.consent-btn {
    min-width: 120px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 2px solid var(--consent-primary);
    font: 700 0.95rem/1 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.consent-btn--primary {
    background: var(--consent-primary);
    color: #fff;
}

.consent-btn--primary:hover,
.consent-btn--primary:focus-visible {
    background: var(--consent-primary-dark);
    border-color: var(--consent-primary-dark);
}

.consent-btn--secondary {
    background: #fff;
    color: var(--consent-primary-dark);
}

.consent-btn--secondary:hover,
.consent-btn--secondary:focus-visible {
    background: #fff1e6;
}

.consent-btn--link {
    min-width: 0;
    background: transparent;
    border-color: transparent;
    color: var(--consent-ink);
    text-decoration: underline;
    padding-left: 8px;
    padding-right: 8px;
}

.consent-btn--link:hover,
.consent-btn--link:focus-visible {
    color: var(--consent-primary-dark);
}

.consent-btn:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.35);
    outline-offset: 2px;
}

.consent-banner__details {
    border-top: 1px solid rgba(23, 32, 51, 0.08);
    padding: 16px 24px 20px;
    display: grid;
    gap: 10px;
    max-height: 60vh;
    overflow-y: auto;
}

.consent-banner__details[hidden] {
    display: none;
}

.consent-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fafbfd;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--consent-muted);
    cursor: pointer;
}

.consent-option strong {
    display: block;
    color: var(--consent-ink);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.consent-option input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--consent-primary);
    cursor: pointer;
}

.consent-option--fixed {
    cursor: default;
    padding-left: 44px;
}

.consent-banner__details-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

@media (max-width: 720px) {
    .consent-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .consent-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px;
    }

    .consent-banner__actions {
        width: 100%;
    }

    .consent-banner__actions {
        flex-wrap: wrap;
    }

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

    .consent-btn--link {
        flex-basis: 100%;
        order: 3;
    }

    .consent-banner__details {
        padding: 14px 18px 18px;
    }

    .consent-banner__details-actions .consent-btn {
        flex: 1;
    }
}

/* Forma koja se učitava tek na klik */
.consent-embed:not(.is-loaded) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 280px;
    padding: 32px 24px;
    text-align: center;
    background: #fff8f2;
    border: 1px dashed rgba(249, 115, 22, 0.45);
    border-radius: 16px;
}

.consent-embed p {
    max-width: 460px;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #5f6c80;
}

.consent-embed .consent-embed__link {
    font-size: 0.9rem;
    color: #d55b17;
    text-decoration: underline;
}

.footer-legal-links a {
    color: inherit;
    text-decoration: underline;
}
