/* Venture Plan Solutions Cookie Consent
   Compact layout
   File: /assets/css/cookie-consent.css
*/

:root {
    --vps-cookie-navy: #10243b;
    --vps-cookie-navy-dark: #0a1828;
    --vps-cookie-gold: #d7ad54;
    --vps-cookie-gold-dark: #b88a2f;
    --vps-cookie-text: #243447;
    --vps-cookie-muted: #627083;
    --vps-cookie-border: #dce3ea;
    --vps-cookie-surface: #ffffff;
    --vps-cookie-soft: #f5f7fa;
    --vps-cookie-shadow: 0 16px 42px rgba(8, 24, 40, 0.22);
}

.vps-cookie-banner[hidden],
.vps-cookie-preferences[hidden] {
    display: none !important;
}

.vps-cookie-banner,
.vps-cookie-preferences {
    font-family: Inter, Arial, sans-serif;
}

/* Compact cookie card */
.vps-cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: auto;
    z-index: 100000;
    width: min(410px, calc(100vw - 40px));
}

.vps-cookie-banner__inner {
    width: 100%;
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: var(--vps-cookie-navy);
    box-shadow: var(--vps-cookie-shadow);
    color: #ffffff;
}

.vps-cookie-banner__content {
    display: block;
}

.vps-cookie-banner__title {
    margin: 0 0 6px;
    color: #ffffff;
    font-family: Poppins, Inter, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.vps-cookie-banner__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    line-height: 1.5;
}

.vps-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    margin-top: 14px;
}

.vps-cookie-button {
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.vps-cookie-button:hover {
    transform: translateY(-1px);
}

.vps-cookie-button:focus-visible,
.vps-cookie-close:focus-visible,
.vps-cookie-toggle input:focus-visible + .vps-cookie-toggle__slider {
    outline: 3px solid rgba(215, 173, 84, 0.42);
    outline-offset: 3px;
}

.vps-cookie-button--primary {
    border-color: var(--vps-cookie-gold);
    background: var(--vps-cookie-gold);
    color: var(--vps-cookie-navy-dark);
	padding:8px 45px 8px 45px;
}

.vps-cookie-button--primary:hover {
    border-color: var(--vps-cookie-gold-dark);
    background: var(--vps-cookie-gold-dark);
    color: #ffffff;
}

.vps-cookie-button--secondary {
    border-color: rgba(255, 255, 255, 0.68);
    background: transparent;
    color: #ffffff;
}

.vps-cookie-button--secondary:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--vps-cookie-navy-dark);
}

.vps-cookie-button--link {
    padding-right: 5px;
    padding-left: 5px;
    border-color: transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vps-cookie-button--link:hover {
    color: #ffffff;
}


/* Banner text-link actions on all screen sizes */
.vps-cookie-banner__actions .vps-cookie-button--secondary,
.vps-cookie-banner__actions .vps-cookie-button--link {
    width: auto;
    min-height: auto;
    padding: 4px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    box-shadow: none;
}

.vps-cookie-banner__actions .vps-cookie-button--secondary:hover,
.vps-cookie-banner__actions .vps-cookie-button--link:hover {
    transform: none;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
}

.vps-cookie-banner__actions .vps-cookie-button--primary {
    flex: 0 0 auto;
}

/* Preferences modal */
.vps-cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 18, 31, 0.68);
    backdrop-filter: blur(4px);
}

.vps-cookie-preferences__dialog {
    width: min(600px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    border: 1px solid var(--vps-cookie-border);
    border-radius: 18px;
    background: var(--vps-cookie-surface);
    box-shadow: var(--vps-cookie-shadow);
    color: var(--vps-cookie-text);
}

.vps-cookie-preferences__header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 22px 16px;
    border-bottom: 1px solid var(--vps-cookie-border);
}

.vps-cookie-preferences__title {
    margin: 0 0 6px;
    color: var(--vps-cookie-navy);
    font-family: Poppins, Inter, Arial, sans-serif;
    font-size: 1.22rem;
    font-weight: 700;
}

.vps-cookie-preferences__intro {
    margin: 0;
    color: var(--vps-cookie-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.vps-cookie-close {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--vps-cookie-border);
    border-radius: 50%;
    background: var(--vps-cookie-soft);
    color: var(--vps-cookie-navy);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.vps-cookie-close:hover {
    background: #e9eef3;
}

.vps-cookie-preferences__body {
    display: grid;
    gap: 12px;
    padding: 20px 22px;
}

.vps-cookie-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--vps-cookie-border);
    border-radius: 14px;
    background: var(--vps-cookie-soft);
}

.vps-cookie-category__title {
    margin: 0 0 4px;
    color: var(--vps-cookie-navy);
    font-size: 0.95rem;
    font-weight: 700;
}

.vps-cookie-category__description {
    margin: 0;
    color: var(--vps-cookie-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.vps-cookie-category__status {
    color: var(--vps-cookie-navy);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.vps-cookie-toggle {
    position: relative;
    display: inline-flex;
    width: 50px;
    height: 28px;
    margin: 0;
}

.vps-cookie-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.vps-cookie-toggle__slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #a9b4c0;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.vps-cookie-toggle__slider::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(8, 24, 40, 0.22);
    transition: transform 0.18s ease;
}

.vps-cookie-toggle input:checked + .vps-cookie-toggle__slider {
    background: var(--vps-cookie-gold-dark);
}

.vps-cookie-toggle input:checked + .vps-cookie-toggle__slider::before {
    transform: translateX(22px);
}

.vps-cookie-preferences__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 22px 22px;
    border-top: 1px solid var(--vps-cookie-border);
}

.vps-cookie-preferences__footer .vps-cookie-button--secondary {
    border-color: var(--vps-cookie-navy);
    color: var(--vps-cookie-navy);
}

.vps-cookie-preferences__footer .vps-cookie-button--secondary:hover {
    background: var(--vps-cookie-navy);
    color: #ffffff;
}

body.cookie-preferences-open {
    overflow: hidden;
}

@media (max-width: 576px) {
    .vps-cookie-banner {
        right: 10px;
        bottom: 76px;
        left: auto;
        width: min(330px, calc(100vw - 20px));
    }

    .vps-cookie-banner__inner {
        padding: 14px;
        border-radius: 14px;
    }

    .vps-cookie-banner__title {
        font-size: 0.94rem;
    }

    .vps-cookie-banner__text {
        font-size: 0.78rem;
        line-height: 1.42;
    }

    .vps-cookie-banner__actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        margin-top: 12px;
    }

    .vps-cookie-button {
        min-height: 34px;
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .vps-cookie-banner__actions .vps-cookie-button--secondary,
    .vps-cookie-banner__actions .vps-cookie-button--link {
        width: auto;
        min-height: auto;
        padding: 4px 8px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        box-shadow: none;
    }

    .vps-cookie-banner__actions .vps-cookie-button--secondary:hover,
    .vps-cookie-banner__actions .vps-cookie-button--link:hover {
        transform: none;
        background: transparent;
        color: #ffffff;
        text-decoration: none;
    }

    .vps-cookie-banner__actions .vps-cookie-button--primary {
        width: 220px;
        max-width: 100%;
        margin-top: 2px;
    }

    .vps-cookie-preferences {
        padding: 10px;
    }

    .vps-cookie-preferences__dialog {
        max-height: calc(100vh - 20px);
        border-radius: 15px;
    }

    .vps-cookie-preferences__header,
    .vps-cookie-preferences__body,
    .vps-cookie-preferences__footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .vps-cookie-category {
        grid-template-columns: 1fr;
    }

    .vps-cookie-preferences__footer {
        display: grid;
        grid-template-columns: 1fr;
    }

    .vps-cookie-preferences__footer .vps-cookie-button {
        width: 100%;
    }
}
