.branch-services-section {
    padding: var(--y-space-40) 0;
    font-family: 'Cairo', sans-serif;
}

.branch-services-section .container {
    display: flex;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: normal;
    flex-direction: column;
}

.order-summary {
    justify-self: end;
    width: 100%;
    margin-right: auto;
    max-width: 665px;

}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
   
    gap: var(--y-space-16);
    padding: 15px 0;
    align-items: center;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    margin-bottom: 20px;
}

.table-header .header-cell {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-align: center;
}

.service-item {
    display: grid; align-items: center;
    grid-template-columns: 1fr 1fr 1fr 1fr;
   
    gap: var(--y-space-16);
    padding: 20px 0;
    border-bottom: 1px solid #000000;
}

.service-item .item-type-cell {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
}

.service-item .product-image {
    width: 93px;
    object-fit: contain;
    border-radius: 8px;
}

.service-item .product-name {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.service-item .service-cell {
    display: flex;
    justify-content: center;
}

.service-item .service-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.service-item .service-option {
    padding: 6px 20px;
    border: 1px solid #000000;
    border-radius: 50px;
    color: #000000;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: all 0.2s;
    font-family: 'Cairo', sans-serif;
}

.service-item .service-option.active {
    background-color: var(--y-color-secondary);
    border-color: var(--y-color-secondary);
    color: var(--y-color-bg) !important;
    font-weight: 700;
}

.service-item .quantity-cell {
    display: flex;
    justify-content: center;
}

.service-item .quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--y-color-secondary);
    border-radius: 50px;
    padding: 5px 10px;
    background-color: #fff;
    width: 100px;
    height: 36px;
}

.service-item .quantity .quantity-btn {
    background: transparent;
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0 5px;
}

.service-item .quantity .quantity-input {
    width: 30px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    outline: none;
}

.service-item .price-cell {
    display: flex;
    justify-content: center;
}

.service-item .price {
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-item .price .amount {
    color: #000;
    font-size: 20px;
    font-weight: 800;
}

.service-item .price .custom-currency {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.create-order-btn {
    width: 100%;
    background-color: var(--y-color-secondary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: background 0.3s;
}

.create-order-btn:hover {
    background-color: var(--y-color-secondary);
}

.table-divider {
    display: none;
}

.branch-services-section .bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--y-space-16);
}

.location-selection {
    width: 100%;
}

.location-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: var(--y-space-20);
    text-align: right;
}

.location-title .required {
    color: #e74c3c;
    margin-right: 4px;
}

.selection-fields {
    display: flex;
    gap: var(--y-space-16);
    flex-direction: row-reverse;
}

.dropdown-wrapper {
    position: relative;
    flex: 1;
}

.dropdown-btn {
    width: 100%;
    height: 48px;
    padding: 0 var(--y-space-16);
    border: 1px solid #000000;
    border-radius: 8px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--y-space-8);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-btn:hover {
    border-color: var(--y-color-secondary);
    background-color: var(--y-color-secondary);
    color: var(--y-color-bg);
}

.dropdown-btn .dropdown-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--y-color-text);
}

.dropdown-btn:hover .dropdown-text {
    color: var(--y-color-bg);
}
.dropdown-btn i {
    color: var(--y-color-text);
    font-size: 14px;
}

.dropdown-btn:hover i {
    color: var(--y-color-bg);
}
.dropdown-btn .fa-chevron-down {
    position: absolute;
    left: var(--y-space-16);
}

.branch-dropdown .dropdown-btn .fa-magnifying-glass {
    position: absolute;
    left: calc(var(--y-space-16) + 20px);
}



.branch-dropdown .dropdown-btn .fa-chevron-down {
    position: absolute;
    left: var(--y-space-16);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    background-color: #fff;
    border: 1px solid #888;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    flex-direction: column;
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-search {
    padding: var(--y-space-12);
    border-bottom: 1px solid #eee;
}

.search-input {
    width: 100%;
    padding: var(--y-space-8) var(--y-space-12);
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    border-color: #5BC0DE;
}

.dropdown-items {
    max-height: 250px;
    overflow-y: auto;
}

.dropdown-item {
    padding: var(--y-space-12) var(--y-space-16);
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: background-color 0.2s;
    text-align: right;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.dropdown-item.selected {
    background-color: #5BC0DE;
    color: #fff;
}

@media (max-width: 992px) {
    .branch-services-section .container {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        display: none;
    }

    .service-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .service-item .item-type-cell {
        justify-content: center;
        flex-direction: column;
    }

    .branch-services-section .bottom {
        grid-template-columns: 1fr;
    }

    .selection-fields {
        flex-direction: column;
    }
}