/* ===== Banner Order Form ===== */
.bof-wrap {
    max-width: 707px;
    width: 100%;
    margin: 36px auto 0;
}

.bof-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Each field is its own bordered pill */
.bof-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #685ADB;
    border-radius: 10px;
    padding: 14px 15px;
    min-width: 235px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
        height: 47px;
}

/* .bof-field:focus-within {
    border-color: #5B50E8;
    box-shadow: 0 0 0 3px rgba(91, 80, 232, 0.1);
} */
.bof-icon {
    display: flex;
    align-items: center;
    color: #685ADB;
    flex-shrink: 0;
}

.bof-select {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--color-heading);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}

.bof-select::placeholder,
.bof-select option[value=""] {
    color: #9B97B8;
}

.bof-date {
    cursor: default;
    pointer-events: none;
}

.bof-date::-webkit-calendar-picker-indicator {
    display: none;
}

.bof-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: #9B97B8;
    pointer-events: none;
}

.bof-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: #685ADB;
    color: #fff;
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(91, 80, 232, 0.35);
    flex-shrink: 0;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.bof-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(91, 80, 232, 0.45);
}

.bof-btn:active {
    transform: translateY(0);
}

/* ===== Select2 — container inside .bof-field ===== */
.bof-field .select2-container {
    flex: 1;
    min-width: 0;
}

/* .bof-select2 = containerCssClass added in JS */
.bof-select2.select2-container--default .select2-selection--single {
    background: transparent;
    border: none;
    outline: none;
    height: auto;
    min-height: unset;
    padding: 0;
    display: flex;
    align-items: center;
}

.bof-select2.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 450;
    color: #202124;
    padding: 0;
    line-height: 21.71px;
}

.bof-select2.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #A1ACB9;
}

/* Arrow */
.bof-select2.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 0;
    width: 20px;
}

.bof-select2.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border: none;
    width: 13px;
    height: 13px;
    left: 0;
    transform: translateY(7px);
    background: url('../../new-land/images/orderSelectIcon.svg') no-repeat center;
    background-size: contain;
}

.bof-field:has(.select2-container--open) {
    border-radius: 10px 10px 0 0;
    border-color: var(--color-primary);
}

.bof-select2.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border: none;
    background: url('../../new-land/images/orderSelectIcon.svg') no-repeat center;
    background-size: contain;
    transform: rotateX(160deg) translateY(-5px);
}

/* ===== .bof-select2-dd = dropdownCssClass ===== */

/* Hide search */
.bof-select2-dd .select2-search--dropdown {
    display: none !important;
    padding: 0;
}

/* Dropdown panel */
.bof-select2-dd.select2-dropdown {
    border: 1px solid #D7E4EE;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    font-family: var(--font-primary);
    overflow: hidden;
    z-index: 9999;
}

/* Hide placeholder option */
.bof-select2-dd .select2-results__option[aria-disabled="true"] {
    display: none;
}

/* Items */
.bof-select2-dd .select2-results__option {
    font-size: 14px;
    font-weight: 450;
    color: #202124;
    padding: 10px 15px;
    line-height: 1.4;
}

/* Highlighted */
.bof-select2-dd.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .bof-select2-dd .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--color-bg-lighter);
    color: var(--color-black);
}

/* Selected */
.bof-select2-dd.select2-container--default .select2-results__option--selected,
.select2-container--default .bof-select2-dd .select2-results__option--selected {
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 500;
}

.select2-container--default .bof-select2-dd .select2-results__option--selected.select2-results__option--highlighted {
    background-color: var(--color-primary);
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .bof-row {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 400px;
        gap: 10px;
    }

    .bof-field {
        min-width: unset;
        width: 100%;
    }

    .bof-btn {
        width: 100%;
        padding: 14px;
    }
}
