/* Landing page widget ([dw_benefit_lp_booking], 1.1.0).
   Loaded after dwbp-booking.css, whose component styles (calendar, start
   times, modal, card fields, spinner) stay as they are. This file only lays
   them out the LP way: one centred column, the start times and the
   confirmation in the calendar's place, plus the Add to Calendar popup and
   the studio shortcodes (tour, reviews, nearby). Every widget rule is scoped
   to .dwbp-widget.dwbp-lp, so the old widget is not touched. */

/* In a centred Elementor container (align-items: center) a widget is only
   as wide as its content, and the calendar has no width of its own, so it
   shrank to its day numbers (~316px instead of 440px). The widget takes the
   full row and the column centres itself; a width set on the widget in
   Elementor still wins. */
.elementor-widget:has(.dwbp-widget.dwbp-lp) {
    width: 100%;
}

.dwbp-widget.dwbp-lp {
    width: 100% !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    color: #0A2938 !important;
}

/* The old widget pulls itself up over its hero on phones; not here. */
@media (max-width: 768px) {
    .dwbp-widget.dwbp-lp {
        margin-top: 0 !important;
        padding: 0 !important;
    }
}

/* Calendar column, as wide as the design's card. */
.dwbp-widget.dwbp-lp #dwbp-lp-calendar {
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
}

/* Spinner while the start times load: the modal's gif, a bit smaller. */
.dwbp-widget.dwbp-lp .dwbp-slots-loader {
    padding: 10px 0 !important;
}

.dwbp-widget.dwbp-lp .dwbp-slots-loader .dwbp-booking-spinner {
    width: 150px !important;
}

.dwbp-widget.dwbp-lp .dwbp-calendar {
    border-radius: 20px !important;
    padding: 24px 20px 20px !important;
    box-shadow: 0 10px 30px rgba(10, 41, 56, 0.12) !important;
}

/* White card for the start times and the confirmation. */
.dwbp-widget.dwbp-lp .dwbp-lp-card {
    background: #fff !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(10, 41, 56, 0.12) !important;
    padding: clamp(24px, 5vw, 40px) !important;
    text-align: center !important;
}

.dwbp-widget.dwbp-lp .dwbp-timeslots-header {
    border: 0 !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 0 22px 0 !important;
}

.dwbp-widget.dwbp-lp .dwbp-timeslots-header .title {
    margin-top: 6px !important;
}

.dwbp-widget.dwbp-lp .dwbp-timeslots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.dwbp-widget.dwbp-lp .dwbp-slot {
    width: 100% !important;
    max-width: 100% !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-link {
    display: block !important;
    margin: 14px auto 0 !important;
    padding: 4px 8px !important;
    background: none !important;
    border: 0 !important;
    color: #058AB5 !important;
    font-size: 14px !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    font-family: inherit !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-link:hover {
    color: #047a9a !important;
}

/* Confirmation */
.dwbp-widget.dwbp-lp #dwbp-lp-done:focus {
    outline: none !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-done-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto 18px auto !important;
    border-radius: 50% !important;
    background: #e6f4f9 !important;
    color: #058AB5 !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-done-title {
    font-family: "Montserrat", sans-serif !important;
    font-size: clamp(24px, 3vw, 30px) !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: #0A2938 !important;
    margin: 0 0 14px 0 !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-done-visit {
    font-size: 17px !important;
    line-height: 1.55 !important;
    color: #4f4e4f !important;
    margin: 0 0 14px 0 !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-done-note,
.dwbp-widget.dwbp-lp .dwbp-lp-done-pay {
    font-size: 15px !important;
    line-height: 1.55 !important;
    color: #5b6b73 !important;
    margin: 0 0 14px 0 !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-done-pay {
    font-weight: 600 !important;
    color: #7a5b00 !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-done-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 8px !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 0 24px !important;
    border-radius: 999px !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    transition: filter 0.2s, transform 0.2s !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-btn-primary {
    background: #e8a598 !important;
    color: #fff !important;
    border: 0 !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-btn-primary:hover {
    filter: brightness(0.96) !important;
    transform: translateY(-1px) !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-btn-ghost {
    background: #fff !important;
    color: #4f4e4f !important;
    border: 1.5px solid #c9d3d8 !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-btn-ghost:hover {
    border-color: #058AB5 !important;
    color: #058AB5 !important;
}

@media (max-width: 480px) {
    .dwbp-widget.dwbp-lp .dwbp-lp-btn {
        width: 100% !important;
    }
}

/* Add to Calendar popup (same look as the thank you page's). */
.dwbp-widget.dwbp-lp .dwbp-lp-cal-overlay {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 100001 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-cal-overlay.active {
    display: flex !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-cal-popup {
    position: relative !important;
    width: 100% !important;
    max-width: 360px !important;
    background: #fff !important;
    border-radius: 16px !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18) !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-cal-title {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #0A2938 !important;
    margin: 0 !important;
    padding-right: 32px !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-cal-close {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    width: 32px !important;
    height: 32px !important;
    background: none !important;
    border: 0 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    color: #999 !important;
    cursor: pointer !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-cal-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-cal-option {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 14px 16px !important;
    border: 1.5px solid #dce4e8 !important;
    border-radius: 12px !important;
    color: #0A2938 !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: border-color 0.2s, background 0.2s !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-cal-option:hover {
    border-color: #058AB5 !important;
    background: #f0f8fb !important;
}

.dwbp-widget.dwbp-lp .dwbp-lp-cal-icon {
    width: 26px !important;
    height: 26px !important;
}

/* ===== Studio shortcodes (outside the widget) ===== */

/* [dw_benefit_tour]. Everything inside is absolutely positioned, so the box
   has no width of its own: in a centred Elementor container (align-items:
   center) the widget shrank to 0px and the video disappeared. The widget
   takes the full row; a width set on it in Elementor still wins. */
.elementor-widget:has(.dwbp-lp-tour) {
    width: 100%;
}

.dwbp-lp-tour {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    background: #0A2938;
    box-shadow: 0 6px 20px rgba(10, 41, 56, 0.15);
}

.dwbp-lp-tour-facade,
.dwbp-lp-tour-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.dwbp-lp-tour-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dwbp-lp-tour-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #058AB5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s;
}

.dwbp-lp-tour-facade:hover .dwbp-lp-tour-play {
    transform: translate(-50%, -50%) scale(1.06);
}

/* [dw_benefit_reviews part="summary"] (part="hero" carries its own inline
   styles, the same as LSM's hero line). */
.dwbp-lp-reviews-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 20px;
    font-size: 15px;
}

.dwbp-lp-reviews-rating {
    font-weight: 700;
    color: #0A2938;
}

.dwbp-lp-star {
    color: #FBBC04;
}

.dwbp-lp-reviews-count {
    color: #5b6b73;
}

.dwbp-lp-reviews-leave {
    font-weight: 600;
    text-decoration: underline;
}

/* [dw_benefit_nearby] */
.dwbp-lp-nearby {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
}

.dwbp-lp-nearby-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5b6b73;
}

.dwbp-lp-nearby-link {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #c9d3d8;
    font-size: 14px;
    color: #0A2938;
    text-decoration: none;
}

.dwbp-lp-nearby-link:hover {
    border-color: #058AB5;
    color: #058AB5;
}

.dwbp-lp-nearby-all {
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}
