/**
 * MoroccoPlan booking-form presentation.
 * Language-field hide and quantity control order only.
 * Adult/Child visual polish lives in tour-detail.css.
 */

.single-st_tours .moroccoplan-booking-form .moroccoplan-language-field {
    display: none !important;
}

.single-st_tours #form-booking-inpage .form-guest-search .st-number-wrapper > .prev {
    order: 1;
}

.single-st_tours #form-booking-inpage .form-guest-search .st-number-wrapper > .st-input-number {
    order: 2;
}

.single-st_tours #form-booking-inpage .form-guest-search .st-number-wrapper > .next {
    order: 3;
}

.single-st_tours #form-booking-inpage .form-guest-search .st-number-wrapper .moroccoplan-qty-duplicate {
    display: none !important;
}

/*
 * MoroccoPlan Extras — always visible cards with checkbox + optional qty stepper.
 * Traveler tour extras: total = unit_price * quantity (extra_max_number = max qty).
 */
.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extras {
    margin-top: 16px;
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extras > a.dropdown {
    display: none !important;
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extras__heading {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--heading-color, #1a2b48);
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extras .extras,
.single-st_tours #st-content-wrapper .moroccoplan-extras .extras {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extras__item {
    position: relative;
    margin: 0 !important;
    padding: 0;
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extras__row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    background: #fff;
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extras__item.is-selected .moroccoplan-extras__row {
    border-color: #c5d6e4;
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extras__main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extras__item.is-required .moroccoplan-extras__main {
    cursor: default;
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extra-checkbox {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #1b5f8a;
    cursor: pointer;
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extras__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extras__name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--heading-color, #1a2b48);
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extras__price {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--grey-color, #898a8e);
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extra-stepper {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 8px;
    margin-left: auto;
    flex: 0 0 auto;
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extra-stepper__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #1b5f8a;
    border-radius: 50%;
    background: #fff;
    color: #1b5f8a;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extra-stepper__btn:hover,
.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extra-stepper__btn:focus {
    background: #eef5fa;
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extra-stepper__btn.is-at-min,
.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extra-stepper__btn.is-at-max {
    opacity: 0.4;
    cursor: default;
}

.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extra-stepper__value {
    min-width: 1.25em;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: var(--heading-color, #1a2b48);
}

/* Keep Traveler qty select in the form for AJAX/pricing; hide visually. */
.single-st_tours #st-content-wrapper.st-style-elementor .st-form-book-wrapper .moroccoplan-extra-qty {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
