#rk-cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    /* max-width: 100%; */
    width: 340px; /* Adjust width as needed, was 100% */
    padding: 24px;
    background: white;
    box-shadow: 5px 15px 20px rgba(0, 0, 0, 0.23);
    border-radius: 7px;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 4px;
    display: inline-flex;
}
/* @media (max-width: 940px) and (min-width: 768px) {
    #rk-cookie-banner {
        width: 35vw;
    }
} */
 /* Responsive Adjustments */
 @media (max-width: 1024px) {
    #rk-cookie-banner {
        width: 30vw;
    }
}
.rk-cookie-banner-outer-wrapper {
    width: 100%;
    height: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    display: inline-flex;
}

.rk-cookie-banner-inner-wrapper {
    justify-content: flex-start;
    align-items: center;
    gap: 13px;
    display: flex; /* Changed from inline-flex to flex for better control */
    width: 100%; /* Ensure it takes full width within its parent */
}

.rk-cookie-icon {
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.rk-cookie-text-and-buttons-wrapper {
    display: flex;
    flex-direction: column; /* Stack text and buttons vertically */
    gap: 23px; /* Gap between text and buttons */
    flex-grow: 1; /* Allow this wrapper to take available space */
}

.rk-cookie-banner-text {
    /* width: 374px; */ /* Removed fixed width to allow flexibility */
    color: #1E2E4C;
    font-size: 14px;
    font-family: Poppins;
    font-weight: 400;
    line-height: 20px;
    word-wrap: break-word;
}

.rk-cookie-policy-link {
    color: #135CFD;
    text-decoration: underline;
}

.rk-cookie-banner-buttons-bottom {
    /* width: 357px; */ /* Removed fixed width to allow flexibility */
    justify-content: flex-start;
    align-items: flex-start;
    gap: 13px;
    display: inline-flex;
}

.rk-cookie-banner-buttons-bottom .button {
    padding: 7px 25px;
    overflow: hidden;
    border-radius: 5px;
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 10px;
    color: white;
    font-size: 14px;
    font-family: Poppins;
    font-weight: 600;
    line-height: 20px;
    word-wrap: break-word;
    border: none;
    cursor: pointer;
}

.rk-cookie-btn-reject {
    background: #6E7191;
}

.rk-cookie-btn-allow {
    width: 147px;
    background: linear-gradient(90deg, #47B0A3 0%, #4FB799 30%, #4CC86F 77%, #84BA4C 100%);
}

/* Close button styles */
.rk-cookie-close-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    line-height: 1;
    z-index: 10000;
    transition: all 0.2s ease;
    border-radius: 50% 7px 50% 50%;    
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 6px #bfc3cf, -3px -3px 6px #fff;}

.rk-cookie-close-btn:hover {
    color: #333;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.rk-cookie-close-btn:focus {
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 2px #135CFD;
}

.rk-cookie-close-btn:active {
    transform: scale(0.95);
}

/* Responsive Adjustments */
@media (max-width: 968px) {
    #rk-cookie-banner {
        width: 50vw;
        padding: 15px;
        bottom: 10px;
        right: 10px;
        transform: translateX(0);
        /* Keep the same flex layout as desktop */
        justify-content: flex-start;
        align-items: flex-end;
        gap: 4px;
        display: inline-flex;
    }

    .rk-cookie-banner-outer-wrapper {
        /* Keep the same flex layout as desktop */
        width: 100%;
        height: 100%;
        justify-content: flex-start;
        align-items: center;
        gap: 4px;
        display: inline-flex;
    }

    .rk-cookie-banner-inner-wrapper {
        /* Keep horizontal layout: image on left, text/buttons on right */
        justify-content: flex-start;
        align-items: flex-start; /* Changed to flex-start for better mobile alignment */
        gap: 10px; /* Reduced gap for mobile */
        display: flex;
        width: 100%;
    }

    .rk-cookie-icon {
        flex-shrink: 0;
        /* Make icon smaller on mobile */
        max-width: 40px;
    }

    .rk-cookie-icon img {
        width: 100%;
        height: auto;
    }

    .rk-cookie-text-and-buttons-wrapper {
        display: flex;
        flex-direction: column; /* Keep text and buttons stacked vertically */
        gap: 15px; /* Reduced gap for mobile */
        flex-grow: 1;
        margin-right: 16px;
    }

    .rk-cookie-banner-text {
        color: #1E2E4C;
        font-size: 13px; /* Slightly smaller font for mobile */
        font-family: Poppins;
        font-weight: 400;
        line-height: 18px; /* Adjusted line height */
        word-wrap: break-word;
        width: 100%;
    }

    .rk-cookie-banner-buttons-bottom {
        /* Keep buttons in a row */
        justify-content: flex-start;
        align-items: flex-start;
        gap: 8px; /* Reduced gap for mobile */
        display: inline-flex;
        width: 100%;
    }

    .rk-cookie-banner-buttons-bottom .button {
        padding: 6px 15px; /* Reduced padding for mobile */
        overflow: hidden;
        border-radius: 5px;
        justify-content: center;
        align-items: center;
        display: flex;
        gap: 8px; /* Reduced gap */
        color: white;
        font-size: 12px; /* Smaller font for mobile */
        font-family: Poppins;
        font-weight: 600;
        line-height: 18px; /* Adjusted line height */
        word-wrap: break-word;
        border: none;
        cursor: pointer;
        flex: 1; /* Make buttons equal width */
        min-width: 0; /* Allow buttons to shrink */
    }

    .rk-cookie-btn-allow {
        /* Remove fixed width to allow responsive sizing */
        background: linear-gradient(90deg, #47B0A3 0%, #4FB799 30%, #4CC86F 77%, #84BA4C 100%);
    }

    /* Mobile close button adjustments */
    .rk-cookie-close-btn {
        top: 6px;
        right: 6px;
        font-size: 16px;
        width: 24px;
        height: 24px;
    }
}
/* Responsive Adjustments */
@media (max-width: 650px) {
    #rk-cookie-banner {
        width: 340px;
    }
}
