.covoizin-location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.covoizin-location-picker {
    min-width: 0;
    padding: 18px;
    border: 1px solid #d8e4da;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(4, 48, 27, .07);
}

.covoizin-location-picker.is-search {
    position: relative;
    align-self: stretch;
    padding: 8px 12px;
    border-color: #d8e4da;
    border-radius: 14px;
    box-shadow: none;
}

.covoizin-location-picker.is-search .covoizin-location-picker__heading {
    margin-bottom: 3px;
}

.covoizin-location-picker.is-search .covoizin-location-picker__required {
    display: none;
}

.covoizin-location-picker.is-search .covoizin-location-picker__autocomplete > input,
.covoizin-location-picker.is-search .covoizin-location-picker__autocomplete gmp-place-autocomplete {
    min-height: 46px;
}

.covoizin-location-picker.is-search .covoizin-location-picker__actions {
    position: absolute;
    top: 31px;
    right: 16px;
    z-index: 3;
    gap: 2px;
    margin: 0;
}

.covoizin-location-picker.is-search .covoizin-location-picker__button {
    width: 30px;
    min-height: 30px;
    padding: 0;
    border: 0;
    font-size: 0;
}

.covoizin-location-picker.is-search .covoizin-location-picker__button span {
    font-size: 16px;
}

.covoizin-location-picker.is-search .covoizin-location-picker__status {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.covoizin-location-picker.is-search .covoizin-location-picker__status.is-error,
.covoizin-location-picker.is-search .covoizin-location-picker__status.is-warning {
    position: static;
    width: auto;
    height: auto;
    min-height: 15px;
    margin: 4px 0 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    color: #9a5b00;
    font-size: 10px;
    line-height: 1.35;
    white-space: normal;
}

.covoizin-location-picker.is-search .covoizin-location-picker__status.is-error {
    color: #b42318;
}

.covoizin-location-picker.is-search .covoizin-location-picker__selection {
    display: none;
}

.covoizin-location-picker.is-search .covoizin-location-picker__selection strong {
    display: none;
}

.covoizin-location-picker.is-search .covoizin-location-picker__selection p {
    font-size: 11px;
}

.covoizin-location-picker.is-city-mode .covoizin-location-picker__fallback {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.covoizin-location-picker.is-city-mode .covoizin-location-picker__fallback select,
.covoizin-location-picker.is-city-mode .covoizin-location-picker__city-input {
    min-height: 50px;
    width: 100%;
    padding: 0 42px 0 14px;
    border-color: #cbd8ce;
    border-style: solid;
    border-width: 1px;
    border-radius: 12px;
    background: #fff;
    color: #06254a;
    font: inherit;
    font-weight: 700;
}

.covoizin-location-picker.is-city-mode .covoizin-location-picker__fallback select:focus-visible,
.covoizin-location-picker.is-city-mode .covoizin-location-picker__city-input:focus-visible {
    border-color: #159447;
    outline: 3px solid rgba(21, 148, 71, .18);
    outline-offset: 1px;
}

.covoizin-location-picker.is-city-mode.is-search .covoizin-location-picker__fallback select,
.covoizin-location-picker.is-city-mode.is-search .covoizin-location-picker__city-input {
    min-height: 46px;
}

.covoizin-location-picker__city-combobox {
    position: relative;
}

.covoizin-location-picker__city-input {
    box-sizing: border-box;
}

.covoizin-location-picker__city-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    z-index: 1;
    color: #159447;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
}

.covoizin-location-picker__city-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 5200;
    max-height: 260px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid #d8e4da;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(5, 27, 58, .18);
}

.covoizin-location-picker__city-results[hidden] {
    display: none !important;
}

.covoizin-location-picker__city-results button {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #06254a;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.covoizin-location-picker__city-results button:hover,
.covoizin-location-picker__city-results button:focus-visible,
.covoizin-location-picker__city-results button.is-active {
    background: #edf8f1;
    color: #0b7b3a;
    outline: none;
}

.covoizin-location-picker__city-empty {
    margin: 0;
    padding: 10px 11px;
    color: #5b6b7c;
    font-size: 13px;
    line-height: 1.4;
}

.covoizin-location-picker__native-city-select[hidden] {
    display: none !important;
}

.didac-search-location-form .covoizin-location-grid {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    align-items: center;
}

.didac-location-swap {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    justify-self: center;
    padding: 0;
    border: 1px solid #159447;
    border-radius: 50%;
    background: #f1faf4;
    color: #0b7b3a;
    font: inherit;
    font-size: 21px;
    font-weight: 900;
    cursor: pointer;
}

.didac-location-swap:hover,
.didac-location-swap:focus-visible {
    background: #dff3e5;
    outline: 3px solid rgba(21, 148, 71, .18);
    outline-offset: 2px;
}

.covoizin-location-picker.is-invalid {
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .1);
}

.covoizin-location-picker__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.covoizin-location-picker__label {
    color: #06254a;
    font-size: 15px;
    font-weight: 800;
}

.covoizin-location-picker__label span {
    color: #b42318;
}

.covoizin-location-picker__required {
    color: #5b6b7c;
    font-size: 11px;
    line-height: 1.35;
    text-align: right;
}

.covoizin-location-picker__autocomplete,
.covoizin-location-picker__autocomplete > input,
.covoizin-location-picker__autocomplete gmp-place-autocomplete {
    display: block;
    width: 100%;
    min-width: 0;
}

.covoizin-location-picker__autocomplete > input {
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid #cbd8ce;
    border-radius: 12px;
    background: #f7faf8;
    color: #5b6b7c;
    font: inherit;
}

.covoizin-location-picker__autocomplete gmp-place-autocomplete {
    min-height: 50px;
    --gmpx-color-primary: #159447;
    --gmpx-color-on-surface: #06254a;
    --gmpx-font-family-base: inherit;
}

.covoizin-location-picker__autocomplete gmp-place-autocomplete:focus-within {
    border-radius: 12px;
    outline: 3px solid rgba(21, 148, 71, .2);
}

.covoizin-location-picker__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.covoizin-location-picker__button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid #159447;
    border-radius: 999px;
    background: #fff;
    color: #0b7b3a;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
}

.covoizin-location-picker__button:hover,
.covoizin-location-picker__button:focus-visible {
    background: #edf8f1;
    outline: 3px solid rgba(21, 148, 71, .18);
    outline-offset: 2px;
}

.covoizin-location-picker__button.is-clear {
    border-color: #cbd8ce;
    color: #435466;
}

.covoizin-location-picker__button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.covoizin-location-picker__status {
    min-height: 20px;
    margin: 10px 0;
    color: #435466;
    font-size: 12px;
    line-height: 1.5;
}

.covoizin-location-picker__status::before {
    display: inline-block;
    margin-right: 6px;
    content: "•";
    font-weight: 900;
}

.covoizin-location-picker__status.is-loading::before {
    width: 12px;
    height: 12px;
    border: 2px solid #bed4c4;
    border-top-color: #159447;
    border-radius: 50%;
    content: "";
    vertical-align: -2px;
    animation: covoizin-location-spin .8s linear infinite;
}

.covoizin-location-picker__status.is-success {
    color: #0b7b3a;
}

.covoizin-location-picker__status.is-error {
    color: #b42318;
}

.covoizin-location-picker__status.is-warning {
    color: #9a5b00;
}

.covoizin-location-picker__fallback {
    display: grid;
    gap: 6px;
    margin: 10px 0 12px;
    padding: 12px;
    border: 1px solid #cfe3d5;
    border-radius: 12px;
    background: #f6fbf7;
}

.covoizin-location-picker__fallback[hidden] {
    display: none;
}

.covoizin-location-picker__fallback label {
    color: #082544;
    font-size: 13px;
    font-weight: 800;
}

.covoizin-location-picker__fallback select {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid #9eb9a7;
    border-radius: 10px;
    background: #fff;
    color: #082544;
}

.covoizin-location-picker__fallback p {
    margin: 0;
    color: #4e6457;
    font-size: 12px;
}

.covoizin-location-picker__selection {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 11px 12px;
    border: 1px solid #b9dfc5;
    border-radius: 12px;
    background: #f1faf4;
    color: #123c25;
}

.covoizin-location-picker__selection[hidden] {
    display: none;
}

.covoizin-location-picker__selection strong {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
}

.covoizin-location-picker__selection p {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.45;
}

.covoizin-location-picker__pin {
    color: #159447;
    font-size: 18px;
    line-height: 1;
}

.covoizin-location-picker__map {
    width: 100%;
    height: 210px;
    overflow: hidden;
    border: 1px solid #d8e4da;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(21, 148, 71, .08), rgba(255, 122, 0, .06)),
        #f4f7f5;
}

.covoizin-location-picker__validation {
    position: absolute !important;
    z-index: -1 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.covoizin-route-preview {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #d8e4da;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(4, 48, 27, .07);
}

.covoizin-route-preview.is-invalid {
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .1);
}

.covoizin-route-preview__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.covoizin-route-preview__heading h4,
.covoizin-route-preview__heading p {
    margin: 0;
}

.covoizin-route-preview__heading h4 {
    color: #06254a;
    font-size: 18px;
    font-weight: 850;
}

.covoizin-route-preview__heading p {
    margin-top: 4px;
    color: #5b6b7c;
    font-size: 13px;
}

.covoizin-route-preview__swap {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid #159447;
    border-radius: 999px;
    background: #f1faf4;
    color: #0b7b3a;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.covoizin-route-preview__swap:hover,
.covoizin-route-preview__swap:focus-visible {
    background: #dff3e5;
    outline: 3px solid rgba(21, 148, 71, .18);
    outline-offset: 2px;
}

.covoizin-route-preview__swap:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.covoizin-route-preview__swap span {
    font-size: 20px;
    line-height: 1;
}

.covoizin-route-preview__points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.covoizin-route-preview__points > div {
    position: relative;
    min-width: 0;
    padding: 12px 12px 12px 48px;
    border: 1px solid #d8e4da;
    border-radius: 13px;
    background: #f8fbf9;
}

.covoizin-route-preview__points > div > span {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #159447;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.covoizin-route-preview__points > div:last-child > span {
    background: #f47700;
}

.covoizin-route-preview__points strong {
    display: block;
    color: #06254a;
    font-size: 12px;
}

.covoizin-route-preview__points p {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    color: #435466;
    font-size: 13px;
    line-height: 1.4;
}

.covoizin-route-preview__map {
    width: 100%;
    height: 260px;
    overflow: hidden;
    border: 1px solid #d8e4da;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(21, 148, 71, .08), rgba(255, 122, 0, .06)),
        #f4f7f5;
}

.covoizin-route-preview__status {
    min-height: 20px;
    margin: 10px 0 0;
    color: #435466;
    font-size: 12px;
    line-height: 1.5;
}

.covoizin-route-preview__status::before {
    margin-right: 6px;
    content: "•";
    font-weight: 900;
}

.covoizin-route-preview__status.is-success {
    color: #0b7b3a;
}

.covoizin-route-preview__status.is-error {
    color: #b42318;
}

.covoizin-route-preview__status.is-warning {
    color: #9a5b00;
}

.covoizin-route-change-warning {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #f0b56a;
    border-radius: 13px;
    background: #fff8ed;
    color: #704100;
}

.covoizin-route-change-warning[hidden] {
    display: none;
}

.covoizin-route-change-warning strong,
.covoizin-route-change-warning p {
    display: block;
    margin: 0;
}

.covoizin-route-change-warning p {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.45;
}

.covoizin-route-change-warning label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 800;
}

.covoizin-route-change-warning input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin: 0;
}

@keyframes covoizin-location-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .covoizin-location-grid {
        grid-template-columns: 1fr;
    }

    .didac-search-location-form .covoizin-location-grid {
        grid-template-columns: 1fr;
    }

    .didac-search-location-form .didac-location-swap {
        transform: rotate(90deg);
    }

    .covoizin-location-picker__map {
        height: 190px;
    }

    .covoizin-route-preview__map {
        height: 220px;
    }
}

@media (max-width: 520px) {
    .covoizin-location-grid {
        gap: 14px;
        margin-top: 14px;
    }

    .covoizin-location-picker {
        padding: 14px;
        border-radius: 15px;
    }

    .covoizin-location-picker__heading {
        display: block;
    }

    .covoizin-location-picker__required {
        display: block;
        margin-top: 3px;
        text-align: left;
    }

    .covoizin-location-picker__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .covoizin-location-picker__button {
        width: 100%;
    }

    .covoizin-location-picker__map {
        height: 175px;
    }

    .covoizin-route-preview {
        margin-top: 14px;
        padding: 14px;
        border-radius: 15px;
    }

    .covoizin-route-preview__heading {
        display: block;
    }

    .covoizin-route-preview__swap {
        width: 100%;
        margin-top: 12px;
    }

    .covoizin-route-preview__points {
        grid-template-columns: 1fr;
    }

    .covoizin-route-preview__map {
        height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .covoizin-location-picker__status.is-loading::before {
        animation: none;
    }
}
