/* Vita Cookie Notice — Frontend Styles */

#vcn-banner {
    position: fixed;
    z-index: 999999;
    left: 0;
    right: 0;
    box-sizing: border-box;
    font-family: inherit;

    /* Animation */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity  0.35s ease;
}

/* Positions */
#vcn-banner.vcn-pos-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(110%);
}
#vcn-banner.vcn-pos-top {
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-110%);
}
#vcn-banner.vcn-pos-bottom-left {
    bottom: 20px;
    left: 20px;
    right: auto;
    width: 360px;
    max-width: calc(100vw - 40px);
    border-radius: 16px !important;
    transform: translateY(130%);
}
#vcn-banner.vcn-pos-bottom-right {
    bottom: 20px;
    right: 20px;
    left: auto;
    width: 360px;
    max-width: calc(100vw - 40px);
    border-radius: 16px !important;
    transform: translateY(130%);
}

#vcn-banner.vcn-visible {
    transform: translateY(0) !important;
    opacity: 1;
}

/* Inner container */
.vcn-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid var(--vcn-border);
    flex-wrap: wrap;
}

#vcn-banner.vcn-pos-bottom-left .vcn-inner,
#vcn-banner.vcn-pos-bottom-right .vcn-inner {
    border-top: none;
    border-radius: 16px;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

#vcn-banner.vcn-pos-top .vcn-inner {
    border-top: none;
    border-bottom: 1px solid var(--vcn-border);
}

/* Icon */
.vcn-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    animation: vcn-paw 2.4s ease-in-out infinite;
}

@keyframes vcn-paw {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    50%       { transform: rotate(8deg)  scale(1.12); }
}

/* Message text */
.vcn-msg {
    flex: 1;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    min-width: 200px;
}

.vcn-msg a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: .8;
}
.vcn-msg a:hover { opacity: 1; }

/* Buttons */
.vcn-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

#vcn-banner.vcn-pos-bottom-left .vcn-btns,
#vcn-banner.vcn-pos-bottom-right .vcn-btns {
    width: 100%;
}

.vcn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    transition: filter .18s ease, transform .14s ease;
    white-space: nowrap;
}

.vcn-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.vcn-btn:active {
    filter: brightness(0.95);
    transform: translateY(0);
}

#vcn-banner.vcn-pos-bottom-left .vcn-btn,
#vcn-banner.vcn-pos-bottom-right .vcn-btn {
    flex: 1;
    padding: 10px 16px;
}

/* Hiding animation */
#vcn-banner.vcn-hiding {
    transform: translateY(110%) !important;
    opacity: 0;
}
#vcn-banner.vcn-pos-top.vcn-hiding {
    transform: translateY(-110%) !important;
}

/* Mobile */
@media (max-width: 600px) {
    .vcn-inner {
        padding: 14px 16px;
        gap: 12px;
    }
    .vcn-msg { font-size: 13px; }
    .vcn-btns { width: 100%; }
    .vcn-btn  { flex: 1; }
    #vcn-banner.vcn-pos-bottom-left,
    #vcn-banner.vcn-pos-bottom-right {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        bottom: 12px !important;
    }
}
