.base-color {
    color: hsl(var(--main)) !important;
}

.copyInput {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 9px;
    color: hsl(var(--base));
    cursor: pointer;
    font-size: 16px;
    transform: translateY(-50%);
    transition: .2s ease;
    z-index: 2;
}

.copyInput:hover {
    color: #fff;
    background: hsl(var(--base));
}

.copied::after {
    position: absolute;
    top: -42px;
    right: 0;
    display: block;
    width: max-content;
    padding: 7px 10px;
    border-radius: 7px;
    color: #fff;
    background: hsl(var(--base));
    box-shadow: 0 8px 18px hsl(var(--base) / .25);
    content: "Copied";
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    opacity: 0;
    pointer-events: none;
    text-transform: uppercase;
    animation: showcopied 1.7s ease;
}

.copied::before {
    position: absolute;
    top: -8px;
    right: 12px;
    border: 5px solid transparent;
    border-top-color: hsl(var(--base));
    content: "";
    opacity: 0;
    animation: showcopied 1.7s ease;
}

@keyframes showcopied {
    0%, 100% {
        opacity: 0;
        transform: translateY(5px);
    }

    20%, 75% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Cookie card ===== */
.cookies-card {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1050;
    width: min(520px, calc(100% - 40px));
    padding: 24px;
    border: 1px solid hsl(var(--white) / .12);
    border-radius: 18px;
    color: hsl(var(--white));
    background: hsl(var(--footer-bg) / .96);
    box-shadow: 0 18px 45px hsl(var(--black) / .28);
    backdrop-filter: blur(14px);
    transition: bottom .45s ease, opacity .35s ease, transform .35s ease;
}

[data-theme="light"] .cookies-card {
    color: hsl(var(--black));
    background: hsl(var(--section-bg) / .97);
    border-color: hsl(var(--black) / .08);
    box-shadow: 0 16px 35px hsl(var(--black) / .12);
}

.cookies-card.hide {
    bottom: -600px !important;
    opacity: 0;
    transform: translateY(30px);
}

.cookies-card__icon {
    display: inline-grid;
    width: 50px;
    height: 50px;
    place-items: center;
    margin-bottom: 13px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, hsl(var(--base)), hsl(var(--main)));
    box-shadow: 0 8px 20px hsl(var(--base) / .3);
    font-size: 25px;
}

.cookies-card__content {
    margin-bottom: 14px;
}

.cookies-card__content p {
    margin: 7px 0 0;
    color: hsl(var(--white) / .72);
    font-size: 13px;
    line-height: 1.65;
}

[data-theme="light"] .cookies-card__content p {
    color: hsl(var(--black) / .65);
}

.cookies-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 4px 5px 0 0;
    padding: 9px 19px;
    border: 1px solid hsl(var(--base));
    border-radius: 999px;
    color: #fff;
    background: hsl(var(--base));
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.cookies-btn:hover {
    color: hsl(var(--base));
    background: transparent;
    transform: translateY(-1px);
}

.cookies-btn + .cookies-btn {
    color: hsl(var(--white) / .85);
    border-color: hsl(var(--white) / .22);
    background: transparent;
}

[data-theme="light"] .cookies-btn + .cookies-btn {
    color: hsl(var(--black) / .7);
    border-color: hsl(var(--black) / .12);
}

/* ===== Input helper popup ===== */
.hover-input-popup {
    position: relative;
}

.input-popup {
    display: none;
}

.hover-input-popup .input-popup {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    z-index: 100;
    display: block;
    width: min(300px, 88vw);
    padding: 16px;
    border: 1px solid hsl(var(--white) / .1);
    border-radius: 12px;
    color: hsl(var(--white));
    background: #18213a;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .24);
    font-size: 12px;
    transform: translateX(-50%);
}

.input-popup::after {
    position: absolute;
    bottom: -12px;
    left: 50%;
    border: 6px solid transparent;
    border-top-color: #18213a;
    content: "";
    transform: translateX(-50%);
}

.input-popup p {
    position: relative;
    margin: 0 0 8px;
    padding-left: 23px;
    line-height: 1.45;
}

.input-popup p:last-child {
    margin-bottom: 0;
}

.input-popup p::before {
    position: absolute;
    top: 1px;
    left: 0;
    font-family: "Line Awesome Free";
    font-size: 17px;
    font-weight: 900;
}

.input-popup p.error {
    color: hsl(var(--white) / .55);
    text-decoration: line-through;
}

.input-popup p.error::before {
    color: #f15d6a;
    content: "\f057";
}

.input-popup p.success::before {
    color: #2cc88a;
    content: "\f058";
}

/* ===== Filters ===== */
.show-filter {
    display: none;
}

.verification-code-wrapper {
    border: 1px solid hsl(var(--base) / .16) !important;
    border-radius: 14px !important;
    background: hsl(var(--footer-bg)) !important;
    box-shadow: 0 12px 28px hsl(var(--black) / .08) !important;
}

.verification-code input {
    color: hsl(var(--black)) !important;
    background: transparent !important;
    font-weight: 700;
    letter-spacing: clamp(25px, 5vw, 67px) !important;
}

.verification-code::after {
    background-color: transparent !important;
}

.verification-code span {
    border-color: hsl(var(--base)) !important;
    background-color: transparent !important;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .cookies-card {
        bottom: 12px;
        left: 12px;
        width: calc(100% - 24px);
        padding: 18px;
        border-radius: 15px;
    }

    .show-filter {
        display: block;
    }

    .responsive-filter-card {
        display: none;
    }

    .verification-code input {
        letter-spacing: 28px !important;
    }
}

@media (max-width: 390px) {
    .verification-code input {
        letter-spacing: 20px !important;
    }

    .cookies-btn {
        width: 100%;
        margin-right: 0;
    }
}

