/* ==========================================================================
   COMPLETE COMPONENT ISOLATION AND THEME RESETS
   ========================================================================== */

/* Structural Layout Reset Wrapper */
.be-wrapper, 
.be-wrapper * {
    font-family: 'Poppins', sans-serif !important;
    box-sizing: border-box !important;
}

/* Clear external global rules applied by third-party theme assets */
.be-wrapper h3,
.be-wrapper h4,
.be-wrapper p,
.be-wrapper label,
.be-wrapper input,
.be-wrapper span,
.be-wrapper div,
.be-wrapper button {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    width: auto !important;
}

/* Master Container Card Block - TAKES FULL DYNAMIC THEME WIDTH */
.be-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    background: #f7f7f7 !important;
    padding: 16px !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important; /* General consistent component gap */
}

/* ==========================================================================
   DATE MATRIX CONTROLS
   ========================================================================== */
.be-wrapper .be-date-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 0px !important; /* Tightened up base gap */
    width: 100% !important;
}

.be-wrapper .be-date-input-container {
    flex: 1 !important;
    min-width: 140px !important;
    background: #0f5c5c !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center;
}

.be-wrapper .be-date-field-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.be-wrapper .be-date-field-wrapper input {
    font-size: 15px !important; /* Increased from 13px */
    font-weight: 600 !important;
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    width: 100% !important;
    cursor: pointer !important;
    display: inline-block !important;
}

.be-wrapper .be-date-field-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}

.be-wrapper .be-calendar-icon {
    display: flex !important;
    align-items: center !important;
    margin-left: 6px !important;
    flex-shrink: 0 !important;
}

.be-wrapper .be-calendar-icon svg {
    width: 18px !important; /* Balanced scale up */
    height: 18px !important;
}

/* ==========================================================================
   GAP FIX: DISCOUNT NOTE SYSTEM CARD
   ========================================================================== */
.be-wrapper .be-discount {
    background: #fff6db !important;
    border: 1px solid #ffe2a3 !important;
    font-size: 13px !important; /* Increased from 11px */
    padding: 6px 8px !important;
    border-radius: 6px !important;
    color: #b76e00 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    margin-bottom: -12px !important; /* Pulls the item below closer to fix the gap issue */
}

/* ==========================================================================
   STRICT UNIT ARRAYS AND COUNTER BUTTON HOOKS
   ========================================================================== */
.be-wrapper .be-main-unit-card {
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border: 1px solid #eeeeee !important;
    width: 100% !important;
}

.be-wrapper .be-unit-label {
    font-size: 14px !important; /* Increased from 12px */
    font-weight: 600 !important;
    color: #333333 !important;
}

.be-wrapper .be-counter-ui {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    background: #eef1f3 !important;
    padding: 2px 4px !important;
    border-radius: 6px !important;
    width: 86px !important; /* Slightly padded for font space adjustments */
    height: 28px !important;
    min-width: 86px !important;
    max-width: 86px !important;
    flex-shrink: 0 !important;
}

.be-wrapper .be-counter-ui button {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    background: #ffffff !important;
    border: 1.5px solid #0f5c5c !important;
    border-radius: 4px !important;
    color: #0f5c5c !important;
    font-weight: 700 !important;
    font-size: 13px !important; /* Increased from 11px */
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.be-wrapper .be-counter-ui input {
    width: 22px !important;
    height: 22px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    font-weight: 600 !important;
    font-size: 13px !important; /* Increased from 11px */
    color: #333333 !important;
    outline: none !important;
    display: block !important;
}

/* ==========================================================================
   INNER COTTAGE CARDS - FIXED FOR SIDE-BY-SIDE SIDEWALK ALIGNMENTS
   ========================================================================== */
.be-wrapper .be-card {
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 12px !important;
    border: 1px solid #eeeeee !important;
    display: block !important;
    width: 100% !important;
}

.be-wrapper .be-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 10px !important;
    width: 100% !important;
}

.be-wrapper .be-card-header h4 {
    font-size: 15px !important; /* Increased from 13px */
    font-weight: 600 !important;
    color: #333333 !important;
}

.be-wrapper .be-capacity {
    font-size: 12px !important; /* Increased from 10px */
    padding: 2px 6px !important;
    background: #dff3f3 !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    color: #0f5c5c !important;
}

/* Target container for Adults & Children rows */
.be-wrapper .be-guest-row {
    display: flex !important;
    flex-direction: row !important; /* FORCES ADULTS AND CHILDREN SIDE-BY-SIDE LIKE image_a174e4.png */
    gap: 10px !important;
    width: 100% !important;
}

/* Individual Guest Pill Element Box */
.be-wrapper .be-guest {
    display: flex !important;
    flex-direction: row !important; 
    align-items: center !important;
    justify-content: space-between !important; 
    background: #fdfdfd !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    flex: 1 !important; /* Splits width evenly 50/50 inside horizontal row */
}

.be-wrapper .be-guest span {
    font-size: 15px !important; /* Increased from 13px */
    font-weight: 500 !important;
    color: #4a5568 !important;
}

/* ==========================================================================
   EXTRA SERVICES, OPTIONS & GENERAL CONTAINERS
   ========================================================================== */
.be-wrapper .be-box {
    background: #ffffff !important;
    padding: 10px !important;
    border-radius: 10px !important;
    border: 1px solid #eeeeee !important;
    display: block !important;
    width: 100% !important;
}

.be-wrapper .be-box h3 {
    font-size: 14px !important; /* Increased from 12px */
    font-weight: 600 !important;
    color: #111111 !important;
    margin-bottom: 6px !important;
}

.be-wrapper .be-checkbox-item,
.be-wrapper .be-radio-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    font-size: 13px !important; /* Increased from 11px */
    color: #333333 !important;
    margin-bottom: 6px !important;
    cursor: pointer !important;
    width: 100% !important;
}

.be-wrapper .be-checkbox-item input[type="checkbox"],
.be-wrapper .be-radio-item input[type="radio"] {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    cursor: pointer !important;
    appearance: auto !important;
}

.be-wrapper .be-summary-row {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 13px !important; /* Increased from 11px */
    color: #444444 !important;
    margin-bottom: 4px !important;
}

.be-wrapper .be-summary-row:last-child {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   TOTAL CARDS AND TRANSACTION ACTIONS
   ========================================================================== */
.be-wrapper .be-total-card {
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border: 1px solid #ececec !important;
    width: 100% !important;
}

.be-wrapper .be-saved-pill {
    background: #e7f5ea !important;
    color: #1d8a4b !important;
    font-size: 12px !important; /* Increased from 10px */
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
}

.be-wrapper .be-total-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
}

.be-wrapper .be-total-top {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.be-wrapper .be-total-label {
    font-size: 13px !important; /* Increased from 11px */
    font-weight: 600 !important;
    color: #111111 !important;
}

.be-wrapper .be-grand-total {
    font-size: 18px !important; /* Increased from 16px */
    font-weight: 800 !important;
    color: #0f5c5c !important;
}

.be-wrapper .be-balance-row {
    font-size: 12px !important; /* Increased from 10px */
    color: #666666 !important;
    margin-top: 1px !important;
}

/* Primary Execution Button */
.be-wrapper #book-now {
    width: 100% !important;
    padding: 11px !important;
    background: #0f5c5c !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-size: 15px !important; /* Increased from 13px */
    font-weight: 700 !important;
    cursor: pointer !important;
    text-align: center !important;
}

.be-wrapper #book-now:hover {
    background: #0c4b4b !important;
}

/* ==========================================================================
   MOBILE MEDIA BREAKPOINT RESPONSIVENESS
   ========================================================================== */
@media (max-width: 600px) {
    .be-wrapper .be-date-row {
        flex-wrap: wrap !important;
    }
    .be-wrapper .be-date-input-container {
        flex: 1 1 100% !important;
    }
    /* Fall back to stacked mode for narrow smartphone views so it doesn't break */
    .be-wrapper .be-guest-row {
        flex-direction: column !important; 
    }
}