/* Quote form, quote summary and admin quote screens */

.gst-mode[data-gst-mode="inc"] .gst-ex,
.gst-mode[data-gst-mode="ex"] .gst-inc {
    display: none !important;
}

/* Step navigation */
.booking-steps {
    counter-reset: booking-step;
    position: relative;
    scroll-behavior: smooth;
}

.booking-steps .nav-link {
    white-space: nowrap;
}

.booking-steps .nav-link::before {
    counter-increment: booking-step;
    content: counter(booking-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: .4rem;
    border-radius: 50%;
    font-size: .8rem;
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
}

.booking-steps .nav-link.active::before {
    background-color: var(--bs-white);
    color: var(--bs-primary);
}

.booking-steps .nav-link.is-complete::before {
    content: "\2713";
    background-color: var(--bs-success);
    color: var(--bs-white);
}

/* Selectable cards (packages, services, options) */
.booking-choice {
    cursor: pointer;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.booking-choice:hover {
    border-color: var(--bs-primary-border-subtle);
}

.booking-choice.is-selected {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .2);
}

.booking-choice.is-unavailable {
    cursor: not-allowed;
    opacity: .55;
}

/* Rows inside a choice group card (e.g. Photo Strip Printing) */
.list-group-item.booking-choice.is-selected {
    box-shadow: none;
    background-color: var(--bs-primary-bg-subtle);
}

/* Options inside a photographer / photo booth card */
.booking-option-img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
}

@media (min-width: 576px) {
    .booking-option-img {
        width: 5rem;
        height: 5rem;
    }
}

.booking-option-body {
    min-width: 0;
}

.booking-option-price {
    font-size: .925rem;
}

.booking-option-description p:last-child {
    margin-bottom: 0;
}

.booking-section-title {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    margin-bottom: .5rem;
}

@media (max-width: 767.98px) {
    .booking-session-row + .booking-session-row {
        border-top: 1px solid var(--bs-border-color);
        margin-top: .75rem;
        padding-top: .75rem;
    }
}

@media (max-width: 575.98px) {
    .booking-choice-img {
        min-height: 6rem;
        max-height: 8rem;
    }
}

.booking-choice-img {
    width: 100%;
    height: 100%;
    min-height: 9rem;
    max-height: 14rem;
    object-fit: cover;
}

.ratio > .booking-choice-img {
    min-height: 0;
    max-height: none;
}

.booking-choice-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.booking-choice .form-check-input {
    width: 1.35em;
    height: 1.35em;
}

/* Price panel */
.booking-price-panel {
    position: sticky;
    top: 1rem;
}

.booking-price-lines {
    max-height: 50vh;
    overflow-y: auto;
}

.booking-price-panel.is-loading .booking-price-total {
    opacity: .5;
}

.booking-mobile-total {
    z-index: 1030;
}

@media (min-width: 992px) {
    .booking-mobile-total {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .booking-form {
        padding-bottom: 4.5rem;
    }
}

/* Quote summary and conversation */
.booking-message {
    max-width: 85%;
}

.booking-message.from-me {
    margin-left: auto;
}

.booking-terms {
    max-height: 16rem;
    overflow-y: auto;
}

.booking-thumb {
    width: 4rem;
    height: 3rem;
    object-fit: cover;
}

/* Admin quote editor: hide number spinners so short columns show the whole value */
.booking-line input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.booking-line input[type="number"]::-webkit-outer-spin-button,
.booking-line input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Drag handle for reordering quote lines (pointer events, so touch works too) */
.booking-line-handle {
    cursor: grab;
    touch-action: none;
    user-select: none;
    padding: .25rem .5rem .25rem 0;
    font-size: 1.1rem;
    line-height: 1;
}

.booking-line-handle:hover,
.booking-line-handle:focus-visible {
    color: var(--bs-primary);
}

.booking-line.is-dragging {
    background-color: var(--bs-secondary-bg);
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .25);
    position: relative;
    z-index: 1;
}

body.is-dragging-line,
body.is-dragging-line * {
    cursor: grabbing !important;
    user-select: none;
}
