/**
 * Booking Popup Card Styles (Sticky Bottom-Right Widget)
 * Matching demo-harucraft minimalist aesthetic
 * Child Theme: Flatsome Child
 */

/* ==========================================================================
   1. STICKY BOOKING POPUP CARD CONTAINER
   ========================================================================== */
.booking-popup-card,
.haru-booking-card {
    position: relative !important;
    width: 350px !important;
    max-width: calc(100vw - 32px) !important;
    background: #ffffff !important;
    border: 1px solid #ebe7e0 !important;
    padding: 22px 20px 20px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
    border-radius: 2px !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   2. CLOSE BUTTON '×' (Top-Right Corner)
   ========================================================================== */
.booking-popup-close,
#haru-close-workshop-btn {
    position: absolute !important;
    top: -5px !important;
    right: 16px !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 30px !important;
    line-height: 1 !important;
    color: #777777 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    z-index: 20 !important;
    transition: color 0.15s ease, transform 0.15s ease !important;
}

.booking-popup-close:hover,
#haru-close-workshop-btn:hover {
    color: #111111 !important;
    transform: scale(1.15) !important;
}

/* ==========================================================================
   3. CARD BODY & SLIM SCROLLBAR
   ========================================================================== */
.booking-popup-body,
.haru-booking-popup-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-height: clamp(260px, 70vh, 520px) !important;
    padding-right: 2px !important;
    box-sizing: border-box !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(0, 0, 0, 0.16) transparent !important;
}

.booking-popup-body::-webkit-scrollbar {
    width: 4px !important;
}

.booking-popup-body::-webkit-scrollbar-track {
    background: transparent !important;
}

.booking-popup-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.16) !important;
    border-radius: 2px !important;
}

.booking-popup-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3) !important;
}

/* ==========================================================================
   4. FLATSOME UX BLOCK OVERRIDES (Typography & Elements)
   ========================================================================== */
.booking-popup-body .row {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.booking-popup-body .col {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.booking-popup-body .col-inner {
    text-align: left !important;
    padding: 0 !important;
}

/* Title: "BOOKING & CONSULTATION" */
.booking-popup-body .title,
.booking-popup-body .title p,
.booking-popup-body #text-236339352,
.booking-popup-body #text-236339352 p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    padding-right: 26px !important;
    /* Space for close button */
    text-align: left !important;
}

/* Divider Line */
.booking-popup-body .is-divider,
.booking-popup-body .divider {
    max-width: 100% !important;
    height: 1px !important;
    background-color: #ebe7e0 !important;
    border: none !important;
    margin: 12px 0 14px 0 !important;
    opacity: 1 !important;
}

/* Description text */
.booking-popup-body .decs,
.booking-popup-body .decs p,
.booking-popup-body #text-202108871,
.booking-popup-body #text-202108871 p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    margin: 0 0 14px 0 !important;
    text-align: left !important;
    font-weight: 400 !important;
}

/* ==========================================================================
   5. CONTACT ACTION BUTTONS (Clean Pill / Outline Buttons with Arrow)
   ========================================================================== */
.booking-popup-body a.button,
.booking-popup-body a.button.primary,
.booking-popup-body a.button.is-outline {
    display: block !important;
    width: 100% !important;
    margin: 0 0 8px 0 !important;
    padding: 14px 8px !important;
    background-color: transparent !important;
    border: 1px solid #d5d0c8 !important;
    border-radius: 2px !important;
    color: #222222 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    text-align: center !important;
    text-transform: none !important;
    box-shadow: none !important;
    min-height: auto !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}

/* Arrow indicator " →" */
/* .booking-popup-body a.button span::after {
  content: " →" !important;
  display: inline-block !important;
  margin-left: 3px !important;
  transition: transform 0.2s ease !important;
} */

/* Hover state */
.booking-popup-body a.button:hover {
    background-color: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
}

.booking-popup-body a.button:hover span {
    color: #ffffff !important;
}

.booking-popup-body a.button:hover span::after {
    transform: translateX(3px) !important;
}

/* Active / Click state */
.booking-popup-body a.button:active {
    transform: scale(0.98) !important;
}

/* ==========================================================================
   6. RESPONSIVE DESIGN (MOBILE)
   ========================================================================== */
@media (max-width: 767px) {

    .booking-popup-card,
    .haru-booking-card {
        width: calc(100vw - 32px) !important;
        padding: 18px 16px 16px !important;
    }

    .booking-popup-close,
    #haru-close-workshop-btn {
        top: -8px !important;
        right: 14px !important;
    }

    .haru-product-modal-close-icon {
        top: -12px;
        right: -20px;
    }

    .booking-popup-body,
    .haru-booking-popup-body {
        max-height: calc(100vh - 160px) !important;
    }
}