/* ============================================
   Bakala Popup Builder - v1.0
   Ã˜Â·Ã˜Â±Ã˜Â§Ã˜Â­Ã›Å’: Ã™Â¾Ã˜Â§Ã™Â¾Ã¢â‚¬Å’Ã˜Â¢Ã™Â¾Ã¢â‚¬Å’Ã˜Â³Ã˜Â§Ã˜Â² Ã˜Â¬Ã˜Â§Ã™â€¦Ã˜Â¹ Ã™â€šÃ˜Â§Ã™â€žÃ˜Â¨ Ã˜Â¨ÃšÂ©Ã˜Â§Ã™â€žÃ˜Â§
   ============================================ */

/* --- Overlay --- */
#bk-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#bk-popup-overlay.bk-popup-active {
    opacity: 1;
    visibility: visible;
}

/* --- Card --- */
#bk-popup-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    background: #fff;
    direction: rtl;
    font-family: inherit;
}

#bk-popup-overlay.bk-popup-active #bk-popup-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* --- Close Button --- */
#bk-popup-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    transition: background 0.25s ease, transform 0.2s ease;
    z-index: 10;
    padding: 0;
}

#bk-popup-close:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.1) rotate(90deg);
}

/* --- Header Section --- */
#bk-popup-header {
    padding: 36px 28px 52px;
    text-align: center;
    position: relative;
}

.bk-popup-icon {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    color: #fff;
}

.bk-popup-icon svg {
    width: 54px;
    height: 54px;
    display: inline-block;
    vertical-align: middle;
    color: #fff;
}

/* Adjust padding/margins if header has no title text */
#bk-popup-header.bk-no-title {
    padding: 32px 28px 36px;
}
#bk-popup-header.bk-no-title .bk-popup-icon {
    margin-bottom: 0;
}

.bk-popup-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.22));
    border-radius: 12px;
}


.bk-popup-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --- Body Section (curved overlap) --- */
#bk-popup-body {
    background: #fff;
    border-radius: 28px 28px 0 0;
    margin-top: -28px;
    position: relative;
    z-index: 2;
    padding: 28px 28px 24px;
}

/* ============================================
   TYPE: Coupon Code
   ============================================ */
.bk-popup-type-coupon .bk-coupon-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: #fafafa;
    direction: rtl;
}

.bk-popup-type-coupon .bk-coupon-code {
    flex: 1;
    font-size: 16px;
    font-weight: 800;
    color: #333;
    letter-spacing: 1px;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 7px 14px;
    text-align: center;
    border: none;
    user-select: all;
    cursor: default;
}

.bk-popup-type-coupon .bk-coupon-label {
    font-size: 13px;
    color: #777;
    font-weight: 600;
    white-space: nowrap;
}

.bk-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.bk-copy-btn:hover {
    border-color: #888;
    color: #333;
    background: #f5f5f5;
}

.bk-copy-btn.bk-copied {
    border-color: #22c55e;
    color: #22c55e;
    background: #f0fdf4;
}

.bk-copy-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.bk-copy-btn.bk-copied svg {
    transform: scale(1.2);
}

.bk-coupon-desc {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fff4f4;
    border-radius: 14px;
    padding: 20px 14px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.bk-coupon-desc svg {
    width: 18px;
    height: 18px;
    color: #f55;
    flex-shrink: 0;
    margin-top: 2px;
}

.bk-coupon-expiry {
    text-align: center;
    font-size: 15px;
    color: #424242;
    margin-top: 6px;
    font-weight: bold;
}

/* ============================================
   TYPE: CTA Button / Link
   ============================================ */
.bk-popup-type-cta .bk-popup-text {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: center;
}

.bk-cta-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.bk-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    filter: brightness(1.06);
    color: #fff;
    text-decoration: none;
}

/* ============================================
   TYPE: Newsletter / Email form
   ============================================ */
.bk-popup-type-newsletter .bk-popup-text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 18px;
    text-align: center;
}

.bk-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bk-newsletter-form input[type="text"],
.bk-newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    direction: rtl;
    box-sizing: border-box;
}

.bk-newsletter-form input:focus {
    outline: none;
    border-color: var(--bk-popup-color-start, #ff2e93);
    box-shadow: 0 0 0 3px rgba(255, 46, 147, 0.12);
}

.bk-newsletter-form .bk-nl-submit {
    width: 100%;
    padding: 13px 24px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    background: var(--bk-popup-color-start, #ff2e93);
}

.bk-newsletter-form .bk-nl-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
}

.bk-nl-success {
    display: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #22c55e;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 10px;
    margin-top: 8px;
}

/* ============================================
   TYPE: Image + Text + Button
   ============================================ */
.bk-popup-type-image .bk-popup-img-wrap {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
}

.bk-popup-type-image .bk-popup-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.bk-popup-type-image .bk-popup-text {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 18px;
    text-align: center;
}

/* ============================================
   TYPE: Notice / Announcement
   ============================================ */
.bk-popup-type-notice .bk-notice-box {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 14px;
    padding: 18px 20px;
    text-align: center;
}

.bk-popup-type-notice .bk-notice-box .bk-notice-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.bk-popup-type-notice .bk-notice-box p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   TYPE: Custom HTML
   ============================================ */
.bk-popup-type-custom .bk-custom-html {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

.bk-popup-type-custom .bk-custom-html img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ============================================
   Shared Body Elements
   ============================================ */
.bk-popup-subtitle {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 18px;
    line-height: 1.6;
}

/* Countdown Timer */
.bk-popup-timer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-direction: row-reverse;
}

.bk-timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 8px 14px;
    min-width: 52px;
}

.bk-timer-block .bk-timer-num {
    font-size: 22px;
    font-weight: 800;
    color: #333;
    line-height: 1;
}

.bk-timer-block .bk-timer-label {
    font-size: 10px;
    color: #aaa;
    margin-top: 3px;
}

.bk-timer-sep {
    font-size: 22px;
    font-weight: 800;
    color: #ccc;
    align-self: flex-start;
    padding-top: 8px;
}

/* --- Responsive --- */
@media (max-width: 520px) {
    #bk-popup-card {
        max-width: 100%;
        border-radius: 20px;
    }

    #bk-popup-header {
        padding: 28px 20px 44px;
    }

    .bk-popup-title {
        font-size: 19px;
    }
.bk-popup-icon svg {
  width: 45px;
  height: 45px;
    }
    #bk-popup-body {
        padding: 22px 18px 20px;
    }

    .bk-popup-type-coupon .bk-coupon-box {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   Exit animation
   ============================================ */
#bk-popup-overlay.bk-popup-closing {
    opacity: 0;
}
#bk-popup-close svg{
    width:20px;
    height:20px
}
#bk-popup-overlay.bk-popup-closing #bk-popup-card {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
}
.bk-popup-type-image .bk-popup-img-wrap img,
#bk-popup-card {
    @supports(corner-shape:squircle) {
        border-radius: 80px !important;
        corner-shape: squircle !important
    }
}
#bk-popup-body{
    @supports(corner-shape:squircle) {
        border-radius: 60px 60px 0 0 !important;
        corner-shape: squircle !important
    }
}