/* cookie-consent.css
   Boje su prilagođene plavo-zelenom dizajnu stranice.
*/

:root {
    --cc-blue: #0069b4;
    --cc-blue-dark: #00569a;
    --cc-green: #5aa454;
    --cc-green-dark: #4b9147;
    --cc-text: #3f4650;
    --cc-muted: #6e7781;
    --cc-border: #e3e7eb;
    --cc-bg: #ffffff;
    --cc-overlay: rgba(15, 30, 45, .35);
    --cc-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.cc-overlay {
    position: fixed;
    inset: 0;
    background: var(--cc-overlay);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.cc-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.cc-box {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: min(560px, calc(100vw - 32px));
    background: var(--cc-bg);
    color: var(--cc-text);
    border-radius: 14px;
    box-shadow: var(--cc-shadow);
    z-index: 99999;
    padding: 26px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    font-family: inherit;
}

.cc-box.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cc-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.cc-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 2px solid var(--cc-green);
    border-radius: 50%;
    position: relative;
}

.cc-icon::before,
.cc-icon::after {
    content: "";
    position: absolute;
    background: var(--cc-green);
    border-radius: 50%;
}

.cc-icon::before {
    width: 8px;
    height: 8px;
    left: 11px;
    top: 11px;
    box-shadow: 17px 3px 0 var(--cc-green),
                6px 19px 0 var(--cc-green),
                22px 22px 0 var(--cc-green);
}

.cc-icon::after {
    width: 17px;
    height: 17px;
    right: -3px;
    top: -3px;
    background: var(--cc-bg);
    border-left: 2px solid var(--cc-green);
    border-bottom: 2px solid var(--cc-green);
    transform: rotate(-45deg);
}

.cc-heading {
    flex: 1;
}

.cc-title {
    margin: 0 0 5px;
    color: var(--cc-blue);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.cc-intro {
    margin: 0;
    color: var(--cc-muted);
    font-size: 14px;
    line-height: 1.55;
}

.cc-close {
    border: 0;
    background: transparent;
    color: #8c96a0;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 10px;
}

.cc-close:hover {
    color: var(--cc-text);
}

.cc-options {
    border-top: 1px solid var(--cc-border);
    border-bottom: 1px solid var(--cc-border);
    padding: 8px 0;
}

.cc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
}

.cc-row-text {
    min-width: 0;
}

.cc-row-title {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 3px;
    color: #27313a;
}

.cc-row-desc {
    display: block;
    color: var(--cc-muted);
    font-size: 13px;
    line-height: 1.4;
}

.cc-required {
    white-space: nowrap;
    color: var(--cc-muted);
    font-size: 13px;
}

/* switch */
.cc-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex: 0 0 50px;
}

.cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #dfe4e8;
    border-radius: 999px;
    transition: .2s;
}

.cc-slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    transition: .2s;
}

.cc-switch input:checked + .cc-slider {
    background: var(--cc-green);
}

.cc-switch input:checked + .cc-slider::before {
    transform: translateX(22px);
}

.cc-switch input:disabled + .cc-slider {
    opacity: .75;
    cursor: default;
}

.cc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.cc-btn {
    border: 0;
    border-radius: 6px;
    padding: 12px 10px;
    min-height: 44px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .05s ease;
}

.cc-btn:active {
    transform: translateY(1px);
}

.cc-btn-outline {
    background: #fff;
    color: var(--cc-blue);
    border: 1px solid var(--cc-blue);
}

.cc-btn-outline:hover {
    background: #f4f9fd;
}

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

.cc-btn-primary:hover {
    background: var(--cc-blue-dark);
}

.cc-btn-success {
    background: var(--cc-green);
    color: #fff;
}

.cc-btn-success:hover {
    background: var(--cc-green-dark);
}

.cc-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 18px;
    font-size: 13px;
}

.cc-footer a {
    color: var(--cc-blue);
    text-decoration: underline;
}

.cc-settings-link {
    color: var(--cc-muted) !important;
    text-decoration: none !important;
}

@media (max-width: 640px) {
    .cc-box {
        right: 16px;
        bottom: 16px;
        width: calc(100vw - 32px);
        padding: 20px;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }

    .cc-title {
        font-size: 20px;
    }

    .cc-actions {
        grid-template-columns: 1fr;
    }

    .cc-footer {
        flex-direction: column;
    }
}


/* --------------------------------------------------
   MINIMIZIRANI COOKIE GUMB
-------------------------------------------------- */

.cc-reopen {
    position: fixed;
    right: 22px;
    bottom: 22px;

    width: 52px;
    height: 52px;

    border: 0;
    border-radius: 50%;

    background: #0069b4;
    color: #ffffff;

    font-size: 24px;
    line-height: 1;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 0;

    cursor: pointer;

    box-shadow: 0 4px 16px rgba(0, 0, 0, .22);

    z-index: 99997;

    transition:
        transform .15s ease,
        background-color .15s ease;
}

.cc-reopen:hover {
    background: #00569a;
    transform: scale(1.07);
}

.cc-reopen.is-visible {
    display: flex;
}

@media (max-width: 640px) {

    .cc-reopen {
        right: 16px;
        bottom: 16px;

        width: 48px;
        height: 48px;

        font-size: 22px;
    }
}