#cookie-modal {
    max-width: 515px;
    width: 100%;
    background: #803F12;
    padding: 20px;
    z-index: 10000000000;
    position: fixed;
    top: 50%;
    left: 50%;
    height: fit-content;
    transform: translate(-50%, -50%) rotateX(90deg);
    /* start flipped */
    backface-visibility: hidden;
    border-radius: 10px;
    perspective: 1000px;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

/* Show with flip in */
#cookie-modal.show-cookie {
    transform: translate(-50%, -50%) rotateX(0deg);
    opacity: 1;
    pointer-events: auto;
}

/* Hide with flip out */
#cookie-modal.hide-cookie {
    transform: translate(-50%, -50%) rotateX(90deg);
    opacity: 0;
    pointer-events: none;
}

#cookie-modal .modal-close {
    display: flex;
    width: 34px;
    height: 34px;
    padding: 7px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: none;
    background: none;
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
    display: none;
}

#cookie-modal .modal-close svg path {
    stroke: white;
}

/* Content section */
#cookie-modal .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#cookie-modal .icon-text-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

#cookie-modal .content .icon {
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

#cookie-modal .content .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#cookie-modal .content .cookie-title {
    font-size: 30px;
    font-weight: 600;
    line-height: 30px;
    color: #fff;
}

#cookie-modal .content .cookie-desc {
    width: 100%;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
}

#cookie-modal .content .cookie-desc a {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
}

.terms-text-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    display: none;
}

.terms-text-wrapper .check-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
}

.terms-text-wrapper .terms-text {
    color: #414141;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 115%;
}

#cookie-modal .action-wrapper {
    padding-top: 12px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

#cookie-modal .action-wrapper .cookie-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    gap: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: fit-content;
}

#cookie-modal .action-wrapper .cookie-btn:active {
    transform: scale(0.97);
}

#cookie-modal .action-wrapper .cookie-btn:hover {
    transform: scale(0.97);
}

#cookie-modal .action-wrapper .cookie-btn img {
    flex-shrink: 0;
}

#decline-cookie {
    padding: 14px 20px !important;
    border: none;
    background: #fff;
    color: #000;
}

#cookie-button {
    background: #FF6200 !important;
    padding: 4px 4px 4px 20px !important;
    color: #fff;
    border: none;
}

#cookie-button:hover img {
    transform: rotate(50deg);
}


@media screen and (max-width: 1024px) {
    #cookie-modal {
        width: 95%;
    }

    #cookie-modal .content {
        text-align: left;
    }
}

@media screen and (max-width: 540px) {
    #cookie-modal {
        max-width: 100%;
    }

    #cookie-modal .action-wrapper {
        flex-wrap: wrap;
    }

    #cookie-modal .action-wrapper .cookie-btn {
        width: 100%;
    }

    .icon-text-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cookie-desc {
        text-align: center;
    }
}
