/* Custom Dropdown Styles */
.custom-dropdown-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-dropdown {
    position: relative;
    width: 100%;
    display: inline-block;
    cursor: pointer;
}

.dropdown-list,
.capacity-dropdown {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    width: max-content;
    z-index: 1;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 10px;
    display: flex;
    justify-content: space-between;
}

.dropdown-item,
.capacity-item {
    padding: 10px;
    cursor: pointer;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.dropdown-selected {
    border: 2px solid #4b241b;
    background: white;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.selected-text {
    flex: 1;
    text-align: left;
}

.option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.option-date {
    flex: 1;
    text-align: left;
}

.option-price {
    text-align: right;
    font-weight: 700;
    color: #4b241b;
    margin-left: 15px;
}

.option-price .discounted-price, .option-price .term-description {
    padding: 2px 10px;
    background-color: #D78120;
    color: white;
    border-radius: 5px;
    font-weight: 400;
}

.dropdown-selected:hover {
    border-color: #D78120;
}

.dropdown-selected.active {
    border-color: #D78120;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.dropdown-selected.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #D78120;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-option {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: #f8f8f8;
}

.dropdown-option.selected {
    background-color: #D78120;
    color: white;
}

.dropdown-option.disabled {
    cursor: not-allowed;
    color: #999;
    background-color: #f9f9f9;
}

.dropdown-selected.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.dropdown-selected.disabled:hover {
    border-color: #ddd;
}