/*
 * WooCommerce Booking Access Manager
 * Frontend Booking Components
 */

/* Main component section */
.cbe-booking-fields,
.cbe-booking-components {
    width: 100%;
    margin-top: 24px;
}

/* Individual component row */
.cbe-booking-field,
.cbe-component-row {
    width: 100%;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cbe-component-control{
    width: 60%;
    justify-content: end;
    display: flex;
    flex-wrap: wrap;
}
.cbe-step-up,.cbe-step-down{
    padding: 8px;
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Checkbox component */

.cbe-component-checkbox,
.cbe-booking-field--checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}
.cbe-quantity-control, .cbe-number-stepper{
    display: flex;
    align-items: center;
}
.cbe-number-stepper{
    margin: 0 20px;
}
.cbe-number-stepper input[type=number]{
    width: 60px !important;
}
.cbe-addon-unit-price{
    min-width:80px;
    text-align: right;
}
.cbe-component-checkbox__label,
.cbe-booking-field--checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.cbe-component-price {
    margin-left: auto;
    font-weight: 700;
    white-space: nowrap;
}

/* Quantity component */
.cbe-component-quantity,
.cbe-booking-field--number {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto auto;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.cbe-component-quantity__title {
    font-weight: 600;
}

.cbe-component-quantity__controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.cbe-component-quantity input[type="number"],
.cbe-booking-field--number input[type="number"] {
    width: 80px;
    min-height: 44px;
    margin: 0;
    text-align: center;
}

.cbe-component-minus,
.cbe-component-plus {
    min-width: 42px;
    min-height: 44px;
    padding: 0 12px;
    cursor: pointer;
}

/* Maximum quantity text */
.cbe-component-maximum {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #646970;
}

/* Select, text and normal fields */
.cbe-component-standard {
    display: grid;
    grid-template-columns: minmax(180px, 35%) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    width: 100%;
}

.cbe-component-standard label {
    margin: 0;
    font-weight: 600;
}

.cbe-component-standard input,
.cbe-component-standard select,
.cbe-component-standard textarea {
    width: 100%;
}

/* Additional options summary */
.cbe-additional-options {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.cbe-additional-options__row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0;
}

.cbe-additional-options__total {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid #dcdcde;
    font-weight: 700;
}

/* Mobile */
@media screen and (max-width: 782px) {
    .cbe-component-quantity,
    .cbe-booking-field--number,
    .cbe-component-standard {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cbe-component-checkbox,
    .cbe-booking-field--checkbox {
        align-items: flex-start;
    }

    .cbe-component-price {
        text-align: right;
    }
}

/* WBAM v2.6 live booking summary */
.cbe-frontend-pricing-summary {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
}
.cbe-frontend-pricing-summary[hidden],
.cbe-frontend-pricing-services[hidden] {
    display: none !important;
}
.cbe-frontend-pricing-summary h4 {
    margin: 0 0 14px;
    font-size: 1.25em;
}
.cbe-frontend-pricing-row,
.cbe-frontend-pricing-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    padding: 7px 0;
}
.cbe-frontend-pricing-services {
    margin-top: 12px;
}
.cbe-frontend-pricing-services-title {
    margin-bottom: 3px;
    font-weight: 700;
}
.cbe-frontend-pricing-total {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid #dcdcde;
    font-size: 1.05em;
}
.cbe-frontend-pricing-row strong,
.cbe-frontend-pricing-total strong:last-child {
    white-space: nowrap;
    text-align: right;
}
@media screen and (max-width: 480px) {
    .cbe-frontend-pricing-row,
    .cbe-frontend-pricing-total {
        gap: 12px;
    }
}

.cbe-addon-check--locked{cursor:not-allowed}.cbe-addon-check--locked input[type=checkbox]{cursor:not-allowed;opacity:.8}.cbe-addon-check--locked span{cursor:not-allowed}


/* WBAM v2.8.0-dev22: full-width checkout metadata and compact option rows */
.wc-block-components-order-summary-item__description .wc-block-components-product-metadata {
    display: block;
    width: 100% !important;
    max-width: none !important;
}

.wc-block-components-product-metadata .cbe-checkout-options-group,
.wc-block-components-product-metadata .cbe-checkout-services-group {
    display: block;
    width: 100%;
}

.wc-block-components-product-metadata .cbe-checkout-option-line,
.wc-block-components-product-metadata .cbe-checkout-service-line {
    margin: 0;
    padding: 0;
    line-height: 1.45;
}


/* Order-received booking price breakdown. */
.cbe-received-additional-hours {
    margin-top: 6px;
}
.cbe-received-booking-table {
    width: 100%;
}
.cbe-received-total-row > th:first-child {
    width: 100%;
}
.cbe-received-total-row > td:last-child {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.cbe-component-control--guest-slider {
    align-items: stretch;
}

.cbe-guest-slider {
    width: 100%;
    display: grid;
    gap: 9px;
}

.cbe-guest-slider__header,
.cbe-guest-slider__scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cbe-guest-slider__value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.cbe-guest-slider__limit,
.cbe-guest-slider__scale {
    color: #646970;
    font-size: 12px;
}

.cbe-guest-slider__input {
    --cbe-guest-slider-progress: 0%;
    width: 100%;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    accent-color: currentColor;
}

.cbe-guest-slider__input:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.cbe-guest-slider__input::-webkit-slider-runnable-track {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background:
        linear-gradient(
            to right,
            currentColor 0,
            currentColor var(--cbe-guest-slider-progress),
            #dcdcde var(--cbe-guest-slider-progress),
            #dcdcde 100%
        );
}

.cbe-guest-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -7.5px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .22);
}

.cbe-guest-slider__input::-moz-range-track {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: #dcdcde;
}

.cbe-guest-slider__input::-moz-range-progress {
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.cbe-guest-slider__input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .22);
}

.cbe-guest-slider--waiting {
    opacity: .58;
}

.cbe-guest-slider--waiting .cbe-guest-slider__input {
    cursor: not-allowed;
}

@media screen and (max-width: 782px) {
    .cbe-guest-slider__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

