.genio-delivery-calculator {
    position: relative;
    z-index: 2;
    padding-block: 0 clamp(24px, 3vw, 40px);
    color: #182833;
}

.genio-delivery-calculator .genio-delivery-card {
    box-sizing: border-box;
    max-width: 820px;
    margin-inline: auto;
    padding: clamp(22px, 3.2vw, 40px);
    border: 1px solid #f1f3f5;
    border-radius: 24px;
    background: #fff;
}

.genio-delivery-intro {
    margin-bottom: 22px;
}

.genio-delivery-card .genio-delivery-intro h2 {
    margin: 0;
    font: inherit;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.7px;
}

.genio-delivery-form {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
}

.genio-delivery-form .genio-delivery-field {
    display: grid;
    min-width: 0;
    gap: 8px;
    margin: 0;
    color: #526174;
    font-size: 15px;
    line-height: 20px;
}

.genio-delivery-form .genio-delivery-field label {
    display: block;
    margin: 0;
    color: inherit;
    font: inherit;
}

.genio-delivery-form :is(.genio-delivery-city, .genio-delivery-product) {
    position: relative;
}

#delivery-calculator .genio-delivery-form :is(select, input, #genio-delivery-product-toggle) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0;
    padding: 0 13px;
    border: 1px solid #f1f3f5 !important;
    border-radius: 10px;
    box-shadow: none;
    background: #fff;
    color: #182833;
    font: inherit;
    font-size: 16px;
    text-overflow: ellipsis;
}

#delivery-calculator .genio-delivery-form select {
    appearance: auto;
}

#delivery-calculator .genio-delivery-form #genio-delivery-product-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-right: 16px;
    background: #fff !important;
    cursor: pointer;
    text-align: left;
    text-decoration: none !important;
}

#genio-delivery-product-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#genio-delivery-product-toggle::after {
    content: "";
    flex: 0 0 7px;
    height: 7px;
    margin-bottom: 4px;
    border-right: 2px solid #526174;
    border-bottom: 2px solid #526174;
    transform: rotate(45deg);
}

#delivery-calculator .genio-delivery-form #genio-delivery-product-toggle[aria-expanded="true"] {
    border-radius: 10px 10px 0 0;
}

#delivery-calculator .genio-delivery-form #genio-delivery-city[aria-expanded="true"],
.checkout .checkout__row_form .genio-checkout-city-field input[aria-expanded="true"] {
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

#genio-delivery-product-toggle[aria-expanded="true"]::after {
    margin-bottom: 0;
    margin-top: 4px;
    transform: rotate(225deg);
}

#delivery-calculator .genio-delivery-form #genio-delivery-city::placeholder,
.checkout .checkout__row_form .genio-checkout-city-field input::placeholder {
    color: #6b7c88 !important;
    opacity: 1;
}

#delivery-calculator #genio-delivery-product-toggle[data-placeholder] {
    color: #526174 !important;
    opacity: 1;
}

.genio-delivery-form :is(button, input, select):focus-visible {
    outline: 2px solid #00BFFF;
    outline-offset: 2px;
}

#delivery-calculator .genio-delivery-submit {
    box-sizing: border-box;
    width: 180px;
    height: 40px;
    max-width: 100%;
    padding: 0 18px 2px;
    border: 1px solid #00BFFF;
    border-radius: 22px;
    background: #00BFFF;
    color: #fff;
    cursor: pointer;
    font: 400 16px/1.4 Proxima, sans-serif;
}

.genio-delivery-form .genio-delivery-submit:disabled {
    opacity: .7;
    cursor: wait;
}

:is(.genio-delivery-form, .genio-checkout-city-field) [role="listbox"] {
    position: absolute;
    z-index: 3;
    top: calc(100% + 5px);
    inset-inline: 0;
    max-height: min(240px, 38vh);
    box-sizing: border-box;
    overscroll-behavior: contain;
    overflow: auto;
    margin: 0;
    padding: 6px;
    border: 1px solid #f1f3f5;
    border-radius: 10px;
    background: white;
    box-shadow: 0 8px 20px #1828331c;
    list-style: none;
}

#genio-delivery-product-panel,
#genio-delivery-cities {
    top: 100%;
    font-size: 15px;
    border-top: 0;
    border-radius: 0 0 10px 10px;
}

#genio-delivery-product-panel {
    position: absolute;
    z-index: 4;
    inset-inline: 0;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #f1f3f5;
    border-top: 0;
    background: #fff;
    box-shadow: 0 8px 20px #1828331c;
}

#delivery-calculator .genio-delivery-form #genio-delivery-product-panel input {
    border-radius: 7px;
}

#delivery-calculator .genio-delivery-form #genio-delivery-products {
    position: static;
    margin-top: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.genio-delivery-product-empty {
    padding: 10px;
    color: #526174;
}

:is(.genio-delivery-form, .genio-checkout-city-field) [role="option"] {
    margin: 0;
    padding: 9px 10px;
    border-radius: 6px;
    color: #182833;
    cursor: pointer;
    font-size: 16px;
    line-height: 20px;
    overflow-wrap: anywhere;
}

:is(.genio-delivery-form, .genio-checkout-city-field) [role="option"]:is(:hover, [aria-selected="true"], [data-active]) {
    background: #f1f3f5;
}

.genio-delivery-form .genio-delivery-product-group {
    padding: 9px 10px 4px;
    color: #526174;
    font-size: 13px;
    font-weight: 700;
}

.genio-delivery-form [role="group"] + [role="group"] {
    margin-top: 4px;
    border-top: 1px solid #f1f3f5;
}

:is(.genio-delivery-form, #genio-checkout-delivery) .genio-delivery-status {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    padding: 12px 15px;
    border-radius: 10px;
    background: #f2f5f8;
    color: #182833;
    font-size: 15px;
}

:is(.genio-delivery-form, .genio-checkout-city-field) [hidden] {
    display: none !important;
}

:is(.genio-delivery-form, #genio-checkout-delivery) [data-type="success"] {
    background: #f1f3f5;
}

:is(.genio-delivery-form, #genio-checkout-delivery) [data-type="error"] {
    color: #8c2929;
}

@media (max-width: 992px) {
    #delivery-calculator .genio-delivery-submit {
        font-size: 14px;
    }
}

@media (max-width: 720px) {
    .genio-delivery-card .genio-delivery-intro h2 {
        font-size: 34px;
    }
}

@media (max-width: 680px) {
    .genio-delivery-calculator .genio-delivery-card {
        border-radius: 18px;
    }

    .genio-delivery-intro {
        margin-bottom: 18px;
    }

    .genio-delivery-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }
}


.checkout .genio-checkout-city-field {
    position: relative;
    display: block;
}

.checkout .checkout__row_form #genio-checkout-delivery {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 22px;
    color: #182833;
}

.checkout .checkout__row_form #genio-checkout-delivery .genio-delivery-status {
    margin: 0;
}

.checkout .genio-checkout-review .woocommerce-Price-currencySymbol,
.checkout .widget_shopping_cart .woocommerce-Price-currencySymbol {
    color: #182833;
}


.checkout .checkout__row_form #genio-checkout-delivery:has([data-type="success"]),
.checkout .genio-order-total [hidden],
.checkout #genio-delivery-footnote[hidden] {
    display: none !important;
}

.checkout .genio-checkout-review #genio-delivery-footnote {
    margin: 8px 0 0;
    color: #526174;
    font-size: 14px;
    line-height: 1.4;
    text-align: right;
}


.header__basket .header__row .amount .woocommerce-Price-currencySymbol,
.header__basket .genio-mini-cart-subtotal .woocommerce-Price-currencySymbol,
.checkout .genio-checkout-review .woocommerce-Price-currencySymbol {
    color: inherit !important;
    font-family: Arial, sans-serif;
}

.checkout .checkout__row_form #order_comments {
    box-sizing: border-box;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px;
    resize: none;
}

.checkout .checkout__row_form .genio-checkout-field-error {
    display: block;
    margin-top: 6px;
    color: #a12634;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.checkout .checkout__row_form input[aria-invalid="true"] {
    border-color: #b7424d !important;
}
