#order-modal {
    display: none;
    top: 0;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: transparent;
    backdrop-filter: blur(6px);
    overflow: hidden;
}

#order-modal-content {
    overflow-y: auto;
    max-height: 90vh;
    background-color: var(--bg-color);
    border-radius: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px 15px 70px 15px;
}

.order-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.input-info .order-input{
    margin-bottom: 20px;
}

.input-info{
    border-bottom: 0.1em solid #8c8f97;
    padding-bottom: 20px;
}

.order-block p {
    font-size: 1.4em;
    color: var(--yelow-accent-color);
    margin-bottom: 0.5em;
}

.select-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.order-select, .order-input {
    box-sizing: border-box;
}

.order-select {
    background-color: transparent;
    color: var(--white-text-color);
    border: none;
    border-radius: 20px;
    padding: 0.6em 0;
    width: 100%;
    font-size: 1em;
    cursor: pointer;
    appearance: none;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

.order-select option {
    padding: 0.5em;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--bg-color);
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--white-text-color);
}

.order-input {
    background-color: transparent;
    color: var(--white-text-color);
    border: none;
    border-radius: 20px;
    padding: 0.8em 1.3em;
    width: 100%;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

#receiving_method, #payment_method{
    display: flex;
    width: 100%;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 500px) {
    #receiving_method, #payment_method {
        gap: 12px;
    }
}

@media (min-width: 768px) {
    #order-modal-content {
        height: auto;
    }
}

#receiving_method-delivery,
#receiving_method-takeaway,
#payment_method-online,
#payment_method-card,
#payment_method-cash {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    color: white;
    padding: 20px 10px;
    font-size: 1.6em;
    border-radius: 20px;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: border 0.3s ease-in-out;
}

#receiving_method-delivery.selected-method,
#receiving_method-takeaway.selected-method,
#payment_method-online.selected-method,
#payment_method-card.selected-method,
#payment_method-cash.selected-method {
    border: 1px solid var(--yelow-accent-color);
    color: var(--yelow-accent-color);
}

#payment_method-online.only-delivery-method,
#payment_method-card.only-delivery-method,
#payment_method-card.only-delivery-method svg path,
#payment_method-cash.only-delivery-method,
#payment_method-cash.only-delivery-method svg path{
    fill: gray;
    color: gray;
    cursor: no-drop;
    pointer-events: none;
}

#payment_method-online.only-delivery-method:hover,
#payment_method-card.only-delivery-method:hover,
#payment_method-cash.only-delivery-method:hover {
    border: 1px solid transparent;
}


#receiving_method-delivery.selected-method path,
#receiving_method-takeaway.selected-method path,
#payment_method-online.selected-method path,
#payment_method-card.selected-method path,
#payment_method-cash.selected-method path {
    fill: var(--yelow-accent-color);
}

#receiving_method-delivery,
#receiving_method-takeaway,
#payment_method-online,
#payment_method-card,
#payment_method-cash {
    padding: 20px 15px;
}

#receiving_method-delivery svg{
    height: 60px;
    width: auto;
}

#receiving_method-delivery:hover,
#receiving_method-takeaway:hover,
#payment_method-online:hover,
#payment_method-card:hover,
#payment_method-cash:hover {
    border: 1px solid var(--yelow-accent-color);
}



.total-wrapper {
    border-bottom: 0.1em dashed #8c8f97;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.total-wrapper:last-child {
    border: none;

}

.total-wrapper h2 {
    font-size: 1.6em;
    color: var(--white-text-color);
    margin-bottom: 0.5em;
}

.total-wrapper h3 {
    font-size: 1.5em;
    color: var(--white-text-color);
}

#map {
    width: 100%;
    height: 20em;
}

.balloon-content {
    width: 200px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.balloon-content h2 {
    font-size: 16px;
    margin: 0;
}

.balloon-content p {
    font-size: 14px;
    margin: 5px 0;
    color: black;
}

.balloon-content button {
    margin-top: 10px;
    padding: 5px 10px;
    border: none;
    background-color: var(--yelow-accent-color);
    color: white;
    cursor: pointer;
    border-radius: 3px;
}

#map-container {
    display: none;
}

#branch-info {
    display: none;
}

#selected_address_p {
    text-align: center;
}

.order-input.error {
    border: 2px solid #e64848;
}

.order-input {
    transition: border 0.3s, background-color 0.3s;
    position: relative;
}

.suggestions {
    border: 1px solid var(--accent-bg);
    max-height: 150px;
    overflow-y: auto;
    position: relative;
    background-color: var(--accent-bg);
    z-index: 1000;
    width: calc(100% - 1em);
    border-radius: 0.5em;
}

.suggestion-item {
    color: var(--white-text-color);
    padding: 0.6em;
    font-weight: lighter;
    background-color: var(--accent-bg);
}

#time-modal-content {
    justify-content: center;
}

#time-modal-content h2{
    width: 90%;
    color: var(--white-text-color);
    text-align: center;
    margin-left: 5%;
    font-weight: lighter;
}

#time-modal-content h3 {
    width: 90%;
    text-align: center;
    margin-left: 5%;
    font-weight: lighter;
    color: var(--yelow-accent-color);
}

#stop-product-modal {
    display: flex;
    justify-content: flex-start;
}

#stop-product-modal-content {
    justify-content: flex-start;
    align-items: center;
}

.clear-button {
    background-color: var(--yelow-accent-color);
    color: var(--white-text-color);
    width: 50%;
    border-radius: 0.5em;
    height: 3em;
    font-size: larger;
    margin-top: 20vh;
}

#stop-product-modal-content p {
    width: 90%;
    color: var(--white-text-color);
}

#stop-product-modal-content p:first-child {
    margin-top: 15vh;
}