/* ---------- Overlay ---------- */
.bbf-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    overflow-y: auto;
    padding: 40px 16px;
}

.bbf-overlay.is-open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* ---------- Modal ---------- */
.bbf-modal {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    font-family: "EB Garamond", Sans-serif;
}

.bbf-modal .bbar-wrapper
{
    margin-top: 40px;
}

.bbf-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    z-index: 10;
    line-height: 1;
    padding: 4px;
}

/* ---------- Top bar ---------- */
.bbf-topbar {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
}

.bbf-topbar__field {
    flex: 1;
    padding: 14px 20px;
    border-right: 1px solid #e8e8e8;
}

.bbf-topbar__field:last-child {
    border-right: none;
}

.bbf-topbar__label {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}

.bbf-topbar__value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

/* ---------- Price strip ---------- */
.bbf-pricestrip {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
    background: #f9f9f9;
    border-bottom: 1px solid #e8e8e8;
    flex-wrap: nowrap;
    margin: 27px;
    justify-content: space-between;
}

.bbf-pricestrip > *
{
    flex: 1 1 0;
}

.bbf-pricestrip__left_text
{
    display: flex;
    gap: 10px;
    font-family: "Neue Hass Display", sans-serif;
}

.bbf-title
{
    font-family: "Neue Hass Display", sans-serif;
    color: #6B6B6B!important;
}

.bbf-pricestrip__note {
    display: block;
    font-size: 11px;
    color: #bbb;
}

.bbf-pricestrip__sub {
    display: block;
    font-size: 11px;
    color: #bbb;
}

.bbf-pricestrip__right {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-left: auto;
}

#bbf-total, #bbf-currency
{
    color: #333333;
    font-weight: 300;
}

.bbf-pricestrip__amount {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.bbf-pricestrip__pn {
    font-size: 13px;
    color: #333333;
    font-weight: 300;
}

.bbf-pricestrip__meta {
    display: flex;
    gap: 16px;
    width: 100%;
    padding-top: 10px;
    flex-wrap: wrap;
}

.bbf-meta__label {
    display: block;
    font-size: 14px;
    color: #9F9F9F;
    margin-bottom: 2px;
    font-family: "Neue Hass Display", sans-serif;
}

.bbf-meta__val {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* ---------- Body / Form ---------- */
.bbf-body {
    padding: 28px 24px 32px;
}

.bbf-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.bbf-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.bbf-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bbf-field--full {
    margin-bottom: 20px;
}

.bbf-label {
    font-family: "Neue Hass Display", sans-serif;
    color: #6B6B6B;
    font-weight: 300;
    font-size: 14px;
}

.bbf-input {
    border: 1px solid #DFDFDF!important;
    padding: 10px 14px!important;
    outline: none!important;
    transition: border-color 0.15s!important;
    width: 100%!important;
    font-family: "Neue Hass Display", sans-serif!important;
    color: #6B6B6B!important;
    font-weight: 300!important;
    font-size: 14px!important;
}

.bbf-checkbox-label
{
    font-family: "Neue Hass Display", sans-serif;
}

.bbf-input:focus {
    border-color: #2d4a3e;
}

.bbf-textarea {
    resize: vertical;
    min-height: 90px;
}

.bbf-phone-row {
    display: flex;
    gap: 8px;
}

.bbf-input--prefix {
    width: 70px !important;
    flex-shrink: 0;
    text-align: center;
}

/* ---------- Error / Success ---------- */
.bbf-error {
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #fdf0ef;
    border-radius: 4px;
}

.bbf-success {
    padding: 20px;
    background: #edf7f2;
    border-radius: 4px;
    color: #2d6a4f;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}

/* ---------- Submit ---------- */
.bbf-submit {
    background: #F08E24!important;
    border-radius: 0!important;
    color: #fff;
    border: none;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s;
    margin-top: 8px;
}

.bbf-submit:hover {
    filter: brightness(1.1);
    background: #F08E24;
}

.bbf-submit:active, .bbf-submit:focus
{
    background: #F08E24;
}

.bbf-link
{
    color: #9D9D9D!important;
    text-decoration: underline;
}

.bbf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Calendar mount area — your calendar library renders here */
#bbar-form-calendar-mount {
    padding: 16px 24px;
    min-height: 60px;
    display: flex;
    justify-content: space-between;
}

#bbar-form-calendar-mount .qs-datepicker-container
{
    position: relative;
    top: initial;
    left: initial;
}

#bbar-form-calendar-mount .ui-widget-header
{
    background-color: #fff!important;
    border: 0!important;
}
#bbar-form-calendar-mount .ui-widget.ui-widget-content
{
    border: 0!important;
}
#bbar-form-calendar-mount .ui-datepicker-calendar th, #bbar-form-calendar-mount .ui-datepicker-calendar td
{
    border: 0!important;
}
#bbar-form-calendar-mount .ui-state-active
{
    background-color: #FFEDDA!important;
    border: #F08E24!important;
    color: #000!important;
}
#bbar-form-calendar-mount .ui-state-default
{
    border: 0!important;
    background-color: #fff;
}

.bbar-dropdown.is-open,
#bbar-form-calendar-box.is-open {
    display: block;
}

#bbar-form-calendar-box {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 9999;
    min-width: 340px;
}

.bbar-guests-box
{
    right: 0;
    left: initial;
}

#bbar-form-events-dropdown
{
    right: initial;
    left: 0;
}

#bbar-form-calendar-mount .daterangepicker
{
    display: grid!important;
    position: relative!important;
    left: 50%!important;
    right: initial!important;
    top: initial!important;
    grid-template-columns: 1fr 1fr!important;
    bottom: initial!important;
    transform: translateX(-50%)!important;
    width: 100%!important;
}
.daterangepicker .ranges
{
    display: none;
}
.form-dates-cal
{
    display: none;
}
.daterangepicker td.active, .daterangepicker td.in-range, .daterangepicker td.active.end-date
{
    background-color: #FFEDDA!important;
}
.daterangepicker td.active
{
    color: #000 !important;
    border: 0 !important;
    border-style: solid;
    border-radius: 0 !important;
    box-shadow: inset 0 0 0 1px #F08E24 !important;
}
.daterangepicker::before
{
    display: none!important;
}
.daterangepicker .drp-calendar
{
    width: 100%!important;
    max-width: 100%!important;
}
.daterangepicker table tbody>tr:nth-child(odd)>td:not(.in-range), .daterangepicker table tbody>tr:nth-child(odd)>th:not(.in-range)
{
    
}
td.disabled:not(.disabled-start):not(.disabled-end) {
  background-color: #30503D !important;
}

/* First in group — right half colored, left half transparent */
td.disabled-start {
  background: linear-gradient(
    to bottom right,
    transparent 50%,
    #30503D 50%
  )!important;
}

/* Last in group — left half colored, right half transparent */
td.disabled-end {
  background: linear-gradient(
    to top left,
    transparent 50%,
    #30503D 50%
  )!important;
}

/* If a group is a single cell, show full color */
td.disabled-start.disabled-end {
  background: #30503D!important;
}

.daterangepicker td.disabled, .daterangepicker option.disabled
{
    color: #c6c6c6;
}
.daterangepicker td
{
    border: 0px solid transparent!important;
}
.daterangepicker td.today
{
    background-color: #c1c1c1 !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    #bbar-form-calendar-box.is-open
	{
		left: 0!important;
		max-width: 450px!important;
		min-width: 100%!important;
		position: fixed!important;
		top: 24px !important;
	}
	#bbar-form-calendar-mount .daterangepicker
	{
		grid-template-columns: 1fr !important;
	}
	#bbar-form-calendar-box
	{
		top: calc(100% + 228px)!important;
	}
	#bbar-calendar-mount .daterangepicker
	{
	    grid-template-columns: 1fr !important;
	}
}

@media (max-width: 600px) {
    .bbf-row {
        flex-direction: column;
    }

    .bbf-topbar {
        flex-wrap: wrap;
    }

    .bbf-topbar__field {
        flex: 1 1 50%;
    }
}