.mc-location-box,
.mc-location-box * {
    box-sizing: border-box;
}

.mc-location-box {
    display: none;
    width: 100%;
    margin: 12px 0 22px;
    padding: 0;
    border: 1px solid #e3e7ec;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    color: #202124;
    box-shadow: 0 1px 3px rgba(60, 64, 67, .06);
}

.mc-location-box.is-attached,
#billing_address_1_field + #mc-location-box,
#shipping_address_1_field + #mc-location-box {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    clear: both !important;
}

.mc-location-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px 11px;
}

.mc-location-heading-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5fe;
    color: #1a73e8;
}

.mc-location-heading-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.mc-location-heading-copy {
    min-width: 0;
}

.mc-location-title {
    display: block;
    margin: 1px 0 2px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    color: #202124;
}

.mc-location-heading p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #6b7280;
}

.mc-map-shell {
    position: relative;
    width: calc(100% - 24px);
    height: 420px;
    margin: 0 12px 12px;
    overflow: hidden;
    border: 1px solid #d9dee5;
    border-radius: 14px;
    background: #e9edf2;
    isolation: isolate;
    box-shadow: 0 1px 4px rgba(60, 64, 67, .12);
}

.mc-map {
    position: absolute !important;
    inset: 0;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #e9edf2;
    transition: opacity .22s ease;
}

#mc-location-box .leaflet-container {
    cursor: grab;
    pointer-events: auto !important;
    touch-action: none;
    background: #e8edf2;
}

#mc-location-box .leaflet-dragging .leaflet-grab,
#mc-location-box .leaflet-dragging .leaflet-grab * {
    cursor: grabbing !important;
}

#mc-location-box .leaflet-tile-pane {
    filter: saturate(.82) contrast(.96) brightness(1.035);
}

.mc-map-loader,
.mc-map-error {
    position: absolute;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    text-align: center;
    background: linear-gradient(120deg, #eef1f4 8%, #f8f9fa 18%, #eef1f4 33%);
    background-size: 200% 100%;
    color: #5f6368;
    font-size: 13px;
    animation: mc-map-skeleton 1.5s linear infinite;
}

.mc-map-loader[hidden],
.mc-map-error[hidden] {
    display: none !important;
}

.mc-map-loader-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(26, 115, 232, .16);
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: mc-spin .8s linear infinite;
}

.mc-map-error {
    z-index: 1600;
    animation: none;
    background: rgba(255, 255, 255, .97);
    color: #5f6368;
}

.mc-map-error strong {
    color: #b3261e;
    font-size: 14px;
}

.mc-map-error span {
    max-width: 390px;
    line-height: 1.45;
}

.mc-map-search,
.mc-map-locate,
.mc-results-close,
.mc-search-result,
.mc-location-apply {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

.mc-map-search {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 60px;
    z-index: 1300;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    height: 46px;
    padding: 0 12px 0 14px;
    border: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, .98);
    color: #3c4043;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(60, 64, 67, .28);
    transition: box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.mc-map-search:hover,
.mc-map-search:focus-visible {
    background: #fff;
    box-shadow: 0 3px 9px rgba(60, 64, 67, .34);
    outline: none;
}

.mc-map-search:active {
    transform: scale(.995);
}

.mc-map-search:disabled {
    cursor: wait;
    opacity: .9;
}

.mc-map-search > svg {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    fill: #5f6368;
}

.mc-map-search.is-loading > svg {
    fill: #1a73e8;
    animation: mc-search-pulse .9s ease-in-out infinite alternate;
}

#mc-search-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 550;
}

.mc-map-search-arrow {
    flex: 0 0 auto;
    margin-left: 2px;
    color: #80868b;
    font-size: 23px;
    font-weight: 300;
    line-height: 1;
}

.mc-map-locate {
    position: absolute;
    top: 70px;
    right: 12px;
    z-index: 1300;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    max-width: calc(100% - 24px);
    height: 42px;
    padding: 0 15px 0 12px;
    border: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, .98);
    color: #1a73e8;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(60, 64, 67, .28);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.mc-map-locate:hover,
.mc-map-locate:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 3px 9px rgba(60, 64, 67, .34);
    outline: none;
}

.mc-map-locate:disabled {
    cursor: wait;
    opacity: .8;
}

.mc-map-locate svg {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.mc-map-locate-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #1967d2;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
}

.mc-map-locate.is-loading svg {
    animation: mc-spin 1s linear infinite;
}

.mc-map-zoom {
    position: absolute;
    right: 12px;
    bottom: 48px;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 2px 7px rgba(60, 64, 67, .28);
}

.mc-map-zoom-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #e8eaed;
    background: #fff;
    color: #3c4043;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.mc-map-zoom-button:last-child {
    border-bottom: 0;
}

.mc-map-zoom-button:hover,
.mc-map-zoom-button:focus-visible {
    background: #f8f9fa;
    color: #1a73e8;
    outline: none;
}

.mc-map-zoom-button:disabled {
    color: #bdc1c6;
    cursor: default;
    background: #fff;
}

.mc-map-zoom-button svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.mc-center-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1200;
    width: 36px;
    height: 48px;
    pointer-events: none;
    transform: translate(-50%, -100%);
    transform-origin: 50% 100%;
    transition: transform .16s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}

.mc-center-pin svg {
    position: relative;
    z-index: 2;
    display: block;
    width: 36px;
    height: 48px;
    overflow: visible;
    filter: drop-shadow(0 2px 2px rgba(60, 64, 67, .25));
}

.mc-center-pin svg path {
    fill: #e94235;
    stroke: #fff;
    stroke-width: 1.2px;
}

.mc-center-pin svg circle {
    fill: #fff;
}

.mc-center-pin-shadow {
    position: absolute;
    left: 50%;
    bottom: -3px;
    z-index: 1;
    width: 18px;
    height: 7px;
    border-radius: 50%;
    background: rgba(32, 33, 36, .22);
    filter: blur(1px);
    transform: translateX(-50%);
    transition: transform .16s ease, opacity .16s ease;
}

.mc-center-pin.is-idle {
    opacity: .72;
}

.mc-center-pin.is-selected {
    opacity: 1;
}

.mc-center-pin.is-moving {
    transform: translate(-50%, calc(-100% - 8px)) scale(1.04);
}

.mc-center-pin.is-moving .mc-center-pin-shadow {
    opacity: .55;
    transform: translateX(-50%) scale(.72);
}

.mc-map-hint {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 1200;
    max-width: calc(100% - 128px);
    padding: 7px 11px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    color: #4b5563;
    font-size: 11.5px;
    font-weight: 550;
    line-height: 1.25;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(60, 64, 67, .2);
    transform: translateX(-50%);
    backdrop-filter: blur(4px);
}

.mc-search-results {
    position: absolute;
    top: 120px;
    left: 12px;
    right: 12px;
    z-index: 1400;
    max-height: 220px;
    overflow: hidden;
    border: 1px solid rgba(218, 220, 224, .95);
    border-radius: 14px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 5px 16px rgba(60, 64, 67, .28);
    backdrop-filter: blur(8px);
    animation: mc-results-in .18s cubic-bezier(.2, .8, .2, 1);
}

.mc-search-results[hidden] {
    display: none !important;
}

.mc-results-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 10px 8px 13px;
    border-bottom: 1px solid #eceff1;
}

.mc-results-header > div {
    min-width: 0;
}

.mc-results-header strong,
.mc-results-header span {
    display: block;
}

.mc-results-header strong {
    font-size: 12px;
    line-height: 1.35;
    color: #202124;
}

.mc-results-header span {
    margin-top: 1px;
    font-size: 10.5px;
    line-height: 1.3;
    color: #80868b;
}

.mc-results-close {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #5f6368;
    font-size: 22px;
    line-height: 28px;
    cursor: pointer;
}

.mc-results-close:hover,
.mc-results-close:focus-visible {
    background: #f1f3f4;
    outline: none;
}

.mc-results-list {
    max-height: 165px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.mc-search-result {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 54px;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #f0f1f2;
    background: #fff;
    color: #202124;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease;
}

.mc-search-result:last-child {
    border-bottom: 0;
}

.mc-search-result:hover,
.mc-search-result:focus-visible {
    background: #f8fafd;
    outline: none;
}

.mc-search-result-pin {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5fe;
    color: #1a73e8;
}

.mc-search-result-pin svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.mc-search-result-copy {
    min-width: 0;
}

.mc-search-result-main,
.mc-search-result-secondary {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mc-search-result-main {
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.mc-search-result-secondary {
    margin-top: 2px;
    font-size: 10.5px;
    line-height: 1.3;
    color: #70757a;
}

.mc-search-result-badge {
    align-self: center;
    max-width: 92px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #f1f3f4;
    color: #5f6368;
    font-size: 9.5px;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
}

.mc-location-status {
    min-height: 17px;
    margin: -2px 14px 10px;
    font-size: 11.5px;
    line-height: 1.4;
    color: #70757a;
}

.mc-location-status:empty {
    min-height: 0;
    margin-bottom: 4px;
}

.mc-location-status.is-error {
    color: #b3261e;
}

.mc-location-status.is-success {
    color: #137333;
}

.mc-location-status.is-busy {
    color: #1a73e8;
}

.mc-location-summary {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0 12px 12px;
    padding: 10px 11px;
    border: 1px solid #e1e6ea;
    border-radius: 12px;
    background: #f8fafc;
    animation: mc-summary-in .2s ease-out;
}

.mc-location-summary[hidden] {
    display: none !important;
}

.mc-location-summary-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e6f4ea;
    color: #137333;
}

.mc-location-summary-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.mc-location-summary-copy {
    min-width: 0;
}

.mc-location-summary-label {
    display: block;
    margin-bottom: 2px;
    color: #5f6368;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .045em;
    line-height: 1.3;
    text-transform: uppercase;
}

.mc-location-summary p {
    margin: 0;
    color: #202124;
    font-size: 11.5px;
    line-height: 1.4;
}

.mc-location-apply {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #d2e3fc;
    border-radius: 8px;
    background: #fff;
    color: #1a73e8;
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease;
}

.mc-location-apply:hover,
.mc-location-apply:focus-visible {
    border-color: #aecbfa;
    background: #f1f6ff;
    outline: none;
}


/* Minimal Leaflet layout rules kept locally so the map does not collapse if a CDN CSS file is blocked. */
#mc-location-box .leaflet-container {
    position: relative;
    overflow: hidden;
    outline: 0;
    background: #e5e9ed;
    -webkit-tap-highlight-color: transparent;
}

#mc-location-box .leaflet-pane,
#mc-location-box .leaflet-tile,
#mc-location-box .leaflet-marker-icon,
#mc-location-box .leaflet-marker-shadow,
#mc-location-box .leaflet-tile-container,
#mc-location-box .leaflet-pane > svg,
#mc-location-box .leaflet-pane > canvas,
#mc-location-box .leaflet-zoom-box,
#mc-location-box .leaflet-image-layer,
#mc-location-box .leaflet-layer {
    position: absolute;
    left: 0;
    top: 0;
}

#mc-location-box .leaflet-pane { z-index: 400; }
#mc-location-box .leaflet-tile-pane { z-index: 200; }
#mc-location-box .leaflet-overlay-pane { z-index: 400; }
#mc-location-box .leaflet-shadow-pane { z-index: 500; }
#mc-location-box .leaflet-marker-pane { z-index: 600; }
#mc-location-box .leaflet-tooltip-pane { z-index: 650; }
#mc-location-box .leaflet-popup-pane { z-index: 700; }

#mc-location-box .leaflet-tile-container img,
#mc-location-box .leaflet-tile {
    max-width: none !important;
    max-height: none !important;
}

#mc-location-box .leaflet-tile {
    visibility: hidden;
    user-select: none;
    -webkit-user-drag: none;
}

#mc-location-box .leaflet-tile-loaded { visibility: inherit; }
#mc-location-box .leaflet-zoom-animated { transform-origin: 0 0; }

#mc-location-box .leaflet-control {
    position: relative;
    z-index: 800;
    pointer-events: auto;
}

#mc-location-box .leaflet-top,
#mc-location-box .leaflet-bottom {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}

#mc-location-box .leaflet-top { top: 0; }
#mc-location-box .leaflet-right { right: 0; }
#mc-location-box .leaflet-bottom { bottom: 0; }
#mc-location-box .leaflet-left { left: 0; }

#mc-location-box .leaflet-control-zoom a {
    display: block;
    text-align: center;
    text-decoration: none !important;
    font-size: 20px !important;
    font-weight: 400 !important;
}

#mc-location-box .leaflet-pane { z-index: 200; }
#mc-location-box .leaflet-tile-pane { z-index: 200; }
#mc-location-box .leaflet-overlay-pane { z-index: 400; }
#mc-location-box .leaflet-shadow-pane { z-index: 500; }
#mc-location-box .leaflet-marker-pane { z-index: 600; }
#mc-location-box .leaflet-tooltip-pane { z-index: 650; }
#mc-location-box .leaflet-popup-pane { z-index: 700; }

/* Leaflet map structure + compact Google-like controls. */
#mc-location-box .leaflet-container {
    font-family: inherit;
}

#mc-location-box .leaflet-bottom.leaflet-right {
    z-index: 7;
}

#mc-location-box .leaflet-bar {
    overflow: hidden;
    border: 0 !important;
    border-radius: 10px !important;
    background: #fff;
    box-shadow: 0 2px 6px rgba(60, 64, 67, .25) !important;
}

#mc-location-box .leaflet-bar a {
    width: 36px !important;
    height: 36px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf0f2 !important;
    background-color: #fff !important;
    color: #3c4043 !important;
    line-height: 36px !important;
}

#mc-location-box .leaflet-bar a:last-child {
    border-bottom: 0 !important;
}

#mc-location-box .leaflet-control-attribution {
    max-width: calc(100% - 105px);
    padding: 1px 4px !important;
    border-radius: 4px 0 0 0;
    background: rgba(255, 255, 255, .82) !important;
    color: #5f6368 !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
}

#mc-location-box .leaflet-control-attribution a {
    color: inherit !important;
    text-decoration: none;
}


#mc-location-box .leaflet-bottom .leaflet-control {
    margin-right: 10px;
    margin-bottom: 10px;
}

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

@keyframes mc-map-skeleton {
    to { background-position-x: -200%; }
}

@keyframes mc-search-pulse {
    from { opacity: .45; }
    to { opacity: 1; }
}

@keyframes mc-results-in {
    from { opacity: 0; transform: translateY(-5px) scale(.995); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mc-summary-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 680px) {
    .mc-location-box {
        margin-top: 10px;
        border-radius: 14px;
    }

    .mc-location-heading {
        padding: 12px 12px 10px;
    }

    .mc-location-heading-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    .mc-map-shell {
        width: calc(100% - 16px);
        height: 370px;
        margin: 0 8px 10px;
        border-radius: 12px;
    }

    .mc-map-search {
        top: 10px;
        left: 10px;
        right: 58px;
        height: 44px;
    }

    .mc-map-locate {
        top: 64px;
        right: 10px;
        width: auto;
        max-width: calc(100% - 20px);
        height: 40px;
        padding: 0 13px 0 11px;
    }

    .mc-map-locate-label {
        font-size: 11.5px;
    }

    .mc-search-results {
        top: 114px;
        left: 10px;
        right: 10px;
        max-height: 220px;
    }

    .mc-search-result {
        grid-template-columns: 26px minmax(0, 1fr);
    }

    .mc-search-result-badge {
        display: none;
    }

    .mc-map-hint {
        bottom: 10px;
        max-width: calc(100% - 112px);
        font-size: 10.5px;
    }

    .mc-location-status {
        margin-left: 12px;
        margin-right: 12px;
    }

    .mc-location-summary {
        grid-template-columns: 32px minmax(0, 1fr);
        margin: 0 8px 10px;
    }

    .mc-location-summary-icon {
        width: 32px;
        height: 32px;
    }

    .mc-location-apply {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-map-search,
    .mc-map-locate,
    .mc-center-pin,
    .mc-center-pin-shadow,
    .mc-search-result,
    .mc-location-apply {
        transition: none !important;
    }

    .mc-search-results,
    .mc-location-summary {
        animation: none !important;
    }

    .mc-map-loader,
    .mc-map-loader-spinner,
    .mc-map-search.is-loading > svg,
    .mc-map-locate.is-loading svg {
        animation: none !important;
    }
}

#mc-location-box .leaflet-control-zoom { display: none !important; }

@media (max-width: 680px) {
    .mc-map-zoom {
        right: 10px;
        bottom: 44px;
        border-radius: 9px;
    }
    .mc-map-zoom-button {
        width: 40px;
        height: 40px;
    }
}


.mc-gps-accuracy {
    position: absolute;
    left: 12px;
    bottom: 50px;
    z-index: 1300;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(218, 220, 224, .95);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    color: #3c4043;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(60, 64, 67, .22);
    backdrop-filter: blur(4px);
}

.mc-gps-accuracy::before {
    content: '';
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, .12);
}

.mc-gps-accuracy.is-good { color: #137333; }
.mc-gps-accuracy.is-good::before { background: #188038; box-shadow: 0 0 0 3px rgba(24, 128, 56, .12); }
.mc-gps-accuracy.is-medium { color: #8a5a00; }
.mc-gps-accuracy.is-medium::before { background: #f9ab00; box-shadow: 0 0 0 3px rgba(249, 171, 0, .14); }
.mc-gps-accuracy.is-low { color: #b3261e; }
.mc-gps-accuracy.is-low::before { background: #d93025; box-shadow: 0 0 0 3px rgba(217, 48, 37, .12); }
.mc-gps-accuracy[hidden] { display: none !important; }

@media (max-width: 680px) {
    .mc-gps-accuracy {
        left: 10px;
        bottom: 48px;
        min-height: 28px;
        padding: 5px 9px;
        font-size: 10.5px;
    }
}

/* TomTom address suggestions */
#billing_address_1_field,
#shipping_address_1_field {
    position: relative;
}

.mc-address-autocomplete {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 99999;
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(60, 64, 67, .18), 0 2px 6px rgba(60, 64, 67, .10);
}

.mc-address-autocomplete[hidden] {
    display: none !important;
}

.mc-address-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 9px 12px;
    border: 0;
    border-bottom: 1px solid #eef0f2;
    background: #fff;
    color: #202124;
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: background .14s ease;
}

.mc-address-autocomplete-item:last-child {
    border-bottom: 0;
}

.mc-address-autocomplete-item:hover,
.mc-address-autocomplete-item:focus-visible {
    background: #f7f9fc;
    outline: none;
}

.mc-address-autocomplete-pin {
    display: grid;
    place-items: center;
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #eef4ff;
    color: #1a73e8;
}

.mc-address-autocomplete-pin svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.mc-address-autocomplete-copy {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

.mc-address-autocomplete-copy strong,
.mc-address-autocomplete-copy small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mc-address-autocomplete-copy strong {
    margin: 0 0 2px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
    color: #202124;
}

.mc-address-autocomplete-copy small {
    font-size: 11.5px;
    line-height: 1.35;
    color: #70757a;
}

@media (max-width: 767px) {
    .mc-address-autocomplete {
        border-radius: 10px;
    }

    .mc-address-autocomplete-item {
        min-height: 52px;
        padding: 9px 10px;
    }
}

#billing_address_1_field,
#shipping_address_1_field {
    overflow: visible !important;
    z-index: 20;
}


/* === v1.9.6 visual refinement === */
.mc-location-box {
    margin: 14px 0 24px;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.mc-location-heading {
    gap: 12px;
    padding: 16px 16px 12px;
}
.mc-location-heading-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    background: linear-gradient(180deg, #eef4ff 0%, #e8f0fe 100%);
    box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.06);
}
.mc-location-title { font-size: 16px; font-weight: 700; }
.mc-location-heading p { font-size: 13px; color: #64748b; }
.mc-map-shell {
    width: calc(100% - 28px);
    height: 430px;
    margin: 0 14px 12px;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
    background: #eef2f6;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
#mc-location-box .leaflet-tile-pane { filter: saturate(.92) contrast(.98) brightness(1.02); }
.mc-map-search {
    top: 14px;
    left: 14px;
    right: 14px;
    height: 50px;
    padding: 0 14px 0 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}
.mc-map-search:hover, .mc-map-search:focus-visible { box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16); }
.mc-map-search > svg { width: 18px; height: 18px; fill: #64748b; }
#mc-search-label { font-size: 13px; font-weight: 600; color: #1f2937; }
.mc-map-search-arrow {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #64748b;
    font-size: 18px;
    font-weight: 700;
}
.mc-map-locate {
    top: 72px;
    left: 14px;
    right: auto;
    max-width: calc(100% - 28px);
    height: 38px;
    padding: 0 13px 0 11px;
    border: 1px solid rgba(226, 232, 240, 0.98);
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    color: #0f5ec9;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}
.mc-map-locate:hover, .mc-map-locate:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14); }
.mc-map-locate svg { width: 18px; height: 18px; }
.mc-map-locate-label { font-size: 11.5px; font-weight: 700; color: #0f5ec9; }
.mc-search-results {
    top: 118px;
    left: 14px;
    right: 14px;
    max-height: 252px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}
.mc-results-header { padding: 12px 12px 10px 14px; }
.mc-results-header strong { font-size: 12.5px; }
.mc-results-list { max-height: 192px; }
.mc-search-result {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 10px 12px;
}
.mc-search-result:hover, .mc-search-result:focus-visible { background: #f6f9ff; }
.mc-search-result-pin { width: 32px; height: 32px; background: #edf4ff; }
.mc-search-result-main { font-size: 12.5px; }
.mc-search-result-secondary { font-size: 11px; }
.mc-search-result-badge { font-size: 10px; background: #eef2f7; color: #475569; }
.mc-map-zoom {
    right: 14px;
    bottom: 18px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}
.mc-map-zoom-button { width: 44px; height: 44px; }
.mc-center-pin svg { filter: drop-shadow(0 10px 16px rgba(220, 38, 38, .18)) drop-shadow(0 2px 2px rgba(60,64,67,.22)); }
.mc-map-hint {
    left: 14px;
    right: 70px;
    bottom: 16px;
    max-width: none;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.92);
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    text-align: left;
    transform: none;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.10);
}
.mc-gps-accuracy {
    left: 14px;
    bottom: 60px;
    min-height: 32px;
    padding: 7px 11px;
    border: 1px solid rgba(226,232,240,.96);
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.10);
}
.mc-location-status {
    margin: 0 14px 12px;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
}
.mc-location-status.is-success,
.mc-location-status.is-error,
.mc-location-status.is-busy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #f8fafc;
}
.mc-location-status.is-success { color: #137333; background: #eefbf3; border-color: #ccebd7; }
.mc-location-status.is-error { color: #b3261e; background: #fef2f2; border-color: #f5c6c6; }
.mc-location-status.is-busy { color: #0f5ec9; background: #eef5ff; border-color: #d6e6ff; }
.mc-location-summary {
    gap: 12px;
    margin: 0 14px 14px;
    padding: 12px 13px;
    border: 1px solid #e7edf4;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 8px 18px rgba(15,23,42,0.04);
}
.mc-location-summary-icon {
    width: 38px; height: 38px; background: #eaf7ef;
}
.mc-location-summary-label { font-size: 10px; color: #64748b; }
.mc-location-summary p { font-size: 12px; line-height: 1.45; color: #1f2937; }
.mc-location-apply {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #cfe0ff;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    color: #0f5ec9;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 6px 12px rgba(15, 94, 201, 0.08);
}
.mc-location-apply:hover, .mc-location-apply:focus-visible { background: #eef5ff; border-color: #b8d0fb; }
#mc-location-box .leaflet-control-attribution {
    border-radius: 10px 0 0 0;
    background: rgba(255,255,255,.88) !important;
    color: #64748b !important;
}
@media (max-width: 680px) {
    .mc-location-box { border-radius: 16px; }
    .mc-map-shell { width: calc(100% - 20px); height: 390px; margin: 0 10px 10px; border-radius: 16px; }
    .mc-map-search { top: 12px; left: 12px; right: 12px; height: 48px; }
    .mc-map-locate { top: 68px; left: 12px; max-width: calc(100% - 24px); }
    .mc-search-results { top: 112px; left: 12px; right: 12px; }
    .mc-map-hint { left: 12px; right: 62px; bottom: 12px; font-size: 10.5px; }
    .mc-map-zoom { right: 12px; bottom: 14px; }
    .mc-gps-accuracy { left: 12px; bottom: 56px; }
    .mc-location-status { margin-left: 10px; margin-right: 10px; }
    .mc-location-summary { margin: 0 10px 10px; }
}


/* === v1.9.6 map control placement === */
.mc-map-locate {
    top: auto !important;
    left: auto !important;
    right: 14px !important;
    bottom: 130px !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    padding: 0 !important;
    border: 1px solid rgba(226, 232, 240, .98) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.98) !important;
    color: #1a73e8 !important;
    box-shadow: 0 8px 22px rgba(15,23,42,.16) !important;
    overflow: visible !important;
}
.mc-map-locate:hover,
.mc-map-locate:focus-visible {
    transform: translateY(-1px) !important;
    background: #fff !important;
    box-shadow: 0 10px 26px rgba(15,23,42,.20) !important;
}
.mc-map-locate svg {
    width: 23px !important;
    height: 23px !important;
    fill: currentColor !important;
}
.mc-map-locate-label {
    position: absolute !important;
    right: 60px !important;
    top: 50% !important;
    width: max-content !important;
    max-width: 170px !important;
    padding: 7px 10px !important;
    border-radius: 9px !important;
    background: rgba(31,41,55,.94) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-50%) translateX(4px) !important;
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease !important;
    box-shadow: 0 6px 16px rgba(15,23,42,.18) !important;
}
.mc-map-locate:hover .mc-map-locate-label,
.mc-map-locate:focus-visible .mc-map-locate-label,
.mc-map-locate.is-loading .mc-map-locate-label {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) translateX(0) !important;
}
.mc-map-zoom {
    right: 14px !important;
    bottom: 18px !important;
    width: 50px !important;
    border: 1px solid rgba(226,232,240,.98) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(15,23,42,.16) !important;
}
.mc-map-zoom-button {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e7ebf0 !important;
    background: #fff !important;
    color: #202124 !important;
    line-height: 1 !important;
    font-family: Arial, sans-serif !important;
    cursor: pointer !important;
}
.mc-map-zoom-button:last-child { border-bottom: 0 !important; }
.mc-map-zoom-button:hover,
.mc-map-zoom-button:focus-visible {
    background: #f6f8fb !important;
    color: #1a73e8 !important;
    outline: none !important;
}
.mc-map-zoom-symbol {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 30px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    color: currentColor !important;
    transform: translateY(-1px) !important;
}
#mc-zoom-out .mc-map-zoom-symbol {
    font-size: 32px !important;
    transform: translateY(-3px) !important;
}
.mc-map-hint {
    right: 80px !important;
}
.mc-search-results {
    top: 72px !important;
}
@media (max-width: 680px) {
    .mc-map-locate {
        right: 12px !important;
        bottom: 126px !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        border-radius: 13px !important;
    }
    .mc-map-locate svg { width: 22px !important; height: 22px !important; }
    .mc-map-locate-label { display: none !important; }
    .mc-map-zoom {
        right: 12px !important;
        bottom: 14px !important;
        width: 48px !important;
    }
    .mc-map-zoom-button {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
    }
    .mc-map-zoom-symbol { font-size: 29px !important; }
    #mc-zoom-out .mc-map-zoom-symbol { font-size: 31px !important; }
    .mc-map-hint { right: 72px !important; }
    .mc-search-results { top: 68px !important; }
}


/* === v1.9.6 reliable current-location control === */
#mc-location-box #mc-use-location.mc-map-locate {
    position: absolute !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    top: auto !important;
    left: auto !important;
    right: 14px !important;
    bottom: 132px !important;
    z-index: 2100 !important;
    width: 126px !important;
    height: 48px !important;
    min-width: 126px !important;
    max-width: 126px !important;
    padding: 0 13px !important;
    margin: 0 !important;
    border: 1px solid #dfe5ec !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.98) !important;
    color: #155cc7 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: hidden !important;
    box-shadow: 0 8px 22px rgba(15,23,42,.16) !important;
    transform: none !important;
}
#mc-location-box #mc-use-location.mc-map-locate:hover,
#mc-location-box #mc-use-location.mc-map-locate:focus-visible {
    background: #fff !important;
    color: #0f5ec9 !important;
    box-shadow: 0 10px 26px rgba(15,23,42,.20) !important;
    transform: translateY(-1px) !important;
    outline: none !important;
}
#mc-location-box #mc-use-location.mc-map-locate:disabled {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: .8 !important;
}
#mc-location-box .mc-map-locate-symbol {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 23px !important;
    width: 23px !important;
    height: 23px !important;
    color: currentColor !important;
    font-family: Arial, sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 22px !important;
    transform: translateY(-1px) !important;
}
#mc-location-box #mc-use-location .mc-map-locate-label {
    position: static !important;
    display: block !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    background: transparent !important;
    color: currentColor !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
}
#mc-location-box #mc-use-location.is-loading .mc-map-locate-symbol {
    animation: mc-search-pulse .7s ease-in-out infinite alternate !important;
}
#mc-location-box .mc-map-zoom {
    z-index: 2050 !important;
}
@media (max-width: 680px) {
    #mc-location-box #mc-use-location.mc-map-locate {
        right: 12px !important;
        bottom: 126px !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        padding: 0 !important;
        border-radius: 14px !important;
    }
    #mc-location-box #mc-use-location .mc-map-locate-label {
        display: none !important;
    }
    #mc-location-box .mc-map-locate-symbol {
        flex-basis: 24px !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 27px !important;
    }
}


/* === v1.9.6: stable controls + readable current-location button === */
/* Desktop: search and GPS share the top row, avoiding controls in the middle of the map. */
#mc-location-box .mc-map-search {
    top: 14px !important;
    left: 14px !important;
    right: 232px !important;
    height: 50px !important;
    z-index: 2150 !important;
}

#mc-location-box #mc-use-location.mc-map-locate {
    top: 14px !important;
    right: 14px !important;
    bottom: auto !important;
    left: auto !important;
    width: 204px !important;
    min-width: 204px !important;
    max-width: 204px !important;
    height: 50px !important;
    padding: 0 15px !important;
    gap: 8px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    z-index: 2160 !important;
}

#mc-location-box #mc-use-location .mc-map-locate-label {
    display: block !important;
    position: static !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    color: #155cc7 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

#mc-location-box .mc-map-locate-symbol {
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 27px !important;
    line-height: 22px !important;
}

/* Results sit below the top control row. */
#mc-location-box .mc-search-results {
    top: 72px !important;
    left: 14px !important;
    right: 14px !important;
    z-index: 2200 !important;
}

/* Zoom remains large and easy to use. */
#mc-location-box .mc-map-zoom {
    right: 14px !important;
    bottom: 18px !important;
    width: 52px !important;
    z-index: 2140 !important;
}
#mc-location-box .mc-map-zoom-button {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
}
#mc-location-box .mc-map-zoom-symbol {
    font-size: 32px !important;
    font-weight: 300 !important;
}
#mc-location-box #mc-zoom-out .mc-map-zoom-symbol {
    font-size: 34px !important;
}

/* Do not let error/loader layers permanently cover controls. */
#mc-location-box .mc-map-loader,
#mc-location-box .mc-map-error {
    z-index: 2000 !important;
}

@media (max-width: 760px) {
    /* Mobile: two clean full-width rows so the text is never truncated. */
    #mc-location-box .mc-map-search {
        top: 12px !important;
        left: 12px !important;
        right: 12px !important;
        height: 48px !important;
    }
    #mc-location-box #mc-use-location.mc-map-locate {
        top: 68px !important;
        left: 12px !important;
        right: 12px !important;
        bottom: auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 44px !important;
        padding: 0 14px !important;
        justify-content: flex-start !important;
        border-radius: 14px !important;
    }
    #mc-location-box #mc-use-location .mc-map-locate-label {
        display: block !important;
        font-size: 12px !important;
    }
    #mc-location-box .mc-search-results {
        top: 120px !important;
        left: 12px !important;
        right: 12px !important;
    }
    #mc-location-box .mc-map-zoom {
        right: 12px !important;
        bottom: 14px !important;
        width: 50px !important;
    }
    #mc-location-box .mc-map-zoom-button {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
    }
}
