/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 90%;
    max-width: 600px;
    background-color: #ffffff;
    color: #333333;
    padding: 20px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    border: 1px solid #e1e8ed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-banner.hidden {
    transform: translateX(-50%) translateY(150%);
    opacity: 0;
    pointer-events: none;
}

.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cookie-icon {
    font-size: 32px;
    line-height: 1;
}

.cookie-text h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    color: #626d7a;
    line-height: 1.5;
}

.cookie-text a {
    background-image: var(--gredient-bg);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    font-weight: 500;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

@media (min-width: 768px) {
    .cookie-buttons {
        width: auto;
    }
}

.btn-cookie {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    border: none;
    flex: 1;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .btn-cookie {
        flex: initial;
    }
}

.btn-accept {
    background: var(--gredient-bg);
    color: #ffffff;
}

.btn-accept:hover {
    background: var(--gredient-bg);
}

.btn-decline {
    background-color: #f3f4f6;
    color: #4b5563;
}

.btn-decline:hover {
    background-color: #e5e7eb;
}

/* Thank You Popup Styles */
.ty-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    /* Background page smooth blur korbe */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    /* Jate eta sobar upore thake */
    opacity: 1;
    transition: opacity 0.3s ease;
}

.ty-popup.hidden {
    opacity: 0;
    pointer-events: none;
}

.ty-popup-content {
    background-color: #ffffff;
    padding: 32px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 360px;
    width: 85%;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ty-popup.hidden .ty-popup-content {
    transform: scale(0.8);
}

.ty-popup-content h3 {
    margin: 16px 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.ty-popup-content p {
    margin: 0;
    font-size: 14px;
    color: #626d7a;
    line-height: 1.5;
}

/* --- Premium SVG Checkmark Animation --- */
.ty-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ty-checkmark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    stroke-width: 4;
    stroke: #4f46e5;
    /* Apnar theme blue/indigo color */
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4f46e5;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale .3s ease-in-out 0.9s toggle forwards;
}

.ty-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: #4f46e5;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.ty-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px rgba(79, 70, 229, 0.1);
    }
}