/* Sticky Button */
#kharidle-discount-sticky {
    position: fixed;
    bottom: 50px;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 16px;
    color: inherit;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}
#kharidle-discount-sticky[data-position="left"] {
    left: 20px;
    right: auto;
}
#kharidle-discount-sticky[data-position="right"] {
    right: 20px;
    left: auto;
}
.kharidle-close-sticky {
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

/* Popup Overlay */
.kharidle-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    padding: 20px;
    overflow-y: auto;
}

/* General Popup Content */
.kharidle-popup-content {
    width: 90vw;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Close Button */
.kharidle-close-popup {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
}

/* Input Fields */
.kharidle-popup-content input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 13px;
}
.kharidle-phone-input {
    display: flex;
    align-items: center;
    gap: 6px;
}
.kharidle-phone-input .flag {
    font-size: 16px;
}

/* Submit Button */
.kharidle-popup-content button {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    background: #C69C52;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    height: 36px;
}

/* Disclaimer Text */
.kharidle-terms {
    font-size: 10px;
    color: #666;
}

/* Coupon Code Styling */
.kharidle-code {
    font-size: 20px;
    font-weight: bold;
    margin: 14px 0;
}

/* Coupon Image Styling */
.kharidle-coupon-image {
    max-width: 100%;
    border-radius: 10px;
}

/* Image Only Mode */
.kharidle-popup.only-image {
    background: rgba(0, 0, 0, 0.7);
}
.kharidle-popup.only-image .kharidle-popup-content {
    background: transparent;
    padding: 0;
    box-shadow: none;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.kharidle-popup.only-image .kharidle-coupon-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 auto;
}
.kharidle-popup.only-image .kharidle-popup-content h2,
.kharidle-popup.only-image .kharidle-code,
.kharidle-popup.only-image .kharidle-popup-content p {
    display: none !important;
}
.kharidle-popup.only-image .kharidle-close-popup {
    background: rgba(0,0,0,0.5);
    color: #fff;
    position: absolute;
    top: 10px;
    right: 14px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

/* Signup Box Specific Ratio */
#kharidle-signup-popup .kharidle-popup-content {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    #kharidle-discount-sticky {
        bottom: 30px;
        font-size: 11px;
        padding: 5px 10px;
    }

    .kharidle-popup-content {
        max-width: 90vw;
        padding: 14px;
    }

    #kharidle-signup-popup .kharidle-popup-content {
        max-width: 90vw;
        aspect-ratio: auto;
    }
}

/* Allow Custom CSS Injection */
.kharidle-custom-css {
    all: unset;
    all: revert;
}





.kharidle-popup.only-image {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    padding: 20px;
    overflow-y: auto;
}

.kharidle-popup.only-image .kharidle-popup-content {
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
}

.kharidle-popup.only-image .kharidle-coupon-image {
    display: block;
    border-radius: 12px;
    margin: 0 auto;
    height: auto;
    width: auto;
    max-width: 100%;
    max-height: 90vh;
}

.kharidle-popup.only-image .kharidle-popup-content h2,
.kharidle-popup.only-image .kharidle-code,
.kharidle-popup.only-image .kharidle-popup-content p {
    display: none !important;
}

.kharidle-popup.only-image .kharidle-close-popup {
    background: rgba(0,0,0,0.5);
    color: #fff;
    position: absolute;
    top: 10px;
    right: 14px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
