.mdpsdl-country-text {
    display: inline;
}

.mdpsdl-country-text__variant {
    display: none;
}

.mdpsdl-debug-badge {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 99999;
    max-width: min(320px, calc(100vw - 32px));
    padding: 12px 14px;
    border: 1px solid #bfd0e2;
    border-radius: 14px;
    background: rgba(16, 36, 62, 0.94);
    color: #f8fbff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
    font-size: 12px;
    line-height: 1.45;
}

.mdpsdl-debug-badge__title {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b9d5ff;
}

.mdpsdl-debug-badge__line {
    margin: 0;
}

.mdpsdl-debug-badge__line + .mdpsdl-debug-badge__line {
    margin-top: 2px;
}

.mdpsdl-locator {
    --mdpsdl-partner-logo-scale: 1;
    background: #ffffff;
    border: 1px solid #d7dde5;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.mdpsdl-locator__intro {
    margin-bottom: 18px;
}

.mdpsdl-locator__title {
    margin: 0 0 8px;
    color: #10243e;
    font-size: 28px;
    line-height: 1.15;
}

.mdpsdl-locator__text {
    color: #49617f;
    font-size: 15px;
    line-height: 1.6;
}

.mdpsdl-locator__text p:last-child {
    margin-bottom: 0;
}

.mdpsdl-locator__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 18px;
}

.mdpsdl-locator__control label {
    display: block;
    color: #10243e;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 6px;
}

.mdpsdl-locator__country,
.mdpsdl-locator__search {
    width: 100%;
    border: 1px solid #bfd0e2;
    border-radius: 999px;
    background: #f6f9fc;
    color: #10243e;
    font-size: 15px;
    padding: 14px 18px;
}

.mdpsdl-locator__country:focus,
.mdpsdl-locator__search:focus {
    outline: none;
    border-color: #2d7ff9;
    box-shadow: 0 0 0 4px rgba(45, 127, 249, 0.14);
}

.mdpsdl-locator__body {
    display: grid;
    gap: 20px;
    align-items: start;
}

.mdpsdl-locator__body--sidebar-left {
    grid-template-columns: minmax(260px, 330px) minmax(0, 2fr);
}

.mdpsdl-locator__body--sidebar-right {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 330px);
}

.mdpsdl-locator__body--sidebar-left .mdpsdl-locator__sidebar {
    order: 1;
}

.mdpsdl-locator__body--sidebar-left .mdpsdl-locator__map-wrap {
    order: 2;
}

.mdpsdl-locator__body--sidebar-right .mdpsdl-locator__sidebar {
    order: 2;
}

.mdpsdl-locator__body--sidebar-right .mdpsdl-locator__map-wrap {
    order: 1;
}

.mdpsdl-locator__body--map-only {
    grid-template-columns: minmax(0, 1fr);
}

.mdpsdl-locator__sidebar {
    background: linear-gradient(180deg, #f9fbfd 0%, #eff5fa 100%);
    border: 1px solid #d7dde5;
    border-radius: 16px;
    padding: 16px;
    max-height: 560px;
    overflow: auto;
}

.mdpsdl-locator__control--country {
    margin-bottom: 12px;
}

.mdpsdl-locator__status {
    color: #10243e;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.mdpsdl-locator__results {
    display: grid;
    gap: 10px;
}

.mdpsdl-locator__results-group {
    display: grid;
    gap: 10px;
}

.mdpsdl-locator__results-group-heading {
    margin: 0;
    color: #10243e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mdpsdl-locator__results-group-list {
    display: grid;
    gap: 10px;
}

.mdpsdl-locator__result {
    appearance: none;
    width: 100%;
    text-align: left;
    border: 1px solid #d7dde5;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px 14px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.mdpsdl-locator__result-copy {
    min-width: 0;
}

.mdpsdl-locator__result-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid #d7dde5;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.mdpsdl-locator__result-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mdpsdl-locator__result:hover,
.mdpsdl-locator__result:focus {
    outline: none;
    transform: translateY(-1px);
    border-color: #2d7ff9;
    box-shadow: 0 10px 24px rgba(45, 127, 249, 0.12);
}

.mdpsdl-locator__result-name {
    display: block;
    color: #10243e;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mdpsdl-locator__result-location {
    display: block;
    color: #49617f;
    font-size: 13px;
    line-height: 1.5;
}

.mdpsdl-locator__empty {
    margin: 0;
    color: #49617f;
    font-size: 14px;
}

.mdpsdl-locator__map-wrap {
    min-width: 0;
}

.mdpsdl-locator__map {
    width: 100%;
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #d7dde5;
    background: #dfeaf5;
}

.mdpsdl-popup {
    min-width: 180px;
}

.mdpsdl-popup__logo {
    width: 72px;
    height: 72px;
    margin: 0 0 10px;
    border: 1px solid #d7dde5;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.mdpsdl-popup__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mdpsdl-popup__actions {
    margin-top: 10px;
}

.mdpsdl-popup__actions a {
    color: #2d7ff9;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 980px) {
    .mdpsdl-locator__body {
        grid-template-columns: 1fr;
    }

    .mdpsdl-locator__body--stacked-top .mdpsdl-locator__sidebar {
        order: 1;
    }

    .mdpsdl-locator__body--stacked-top .mdpsdl-locator__map-wrap {
        order: 2;
    }

    .mdpsdl-locator__body--stacked-bottom .mdpsdl-locator__map-wrap {
        order: 1;
    }

    .mdpsdl-locator__body--stacked-bottom .mdpsdl-locator__sidebar {
        order: 2;
    }

    .mdpsdl-locator__sidebar {
        max-height: none;
    }
}

@media (max-width: 767px) {
    .mdpsdl-locator {
        padding: 18px;
        border-radius: 14px;
    }

    .mdpsdl-locator__title {
        font-size: 24px;
    }
}

/* Partner logos strip */
.mdpsdl-locator__partners {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #d7dde5;
}

.mdpsdl-locator__partner-dropdown {
    position: fixed;
    z-index: 9999;
    min-width: 180px;
    background: #fff;
    border: 1px solid #d7dde5;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
    display: flex;
    flex-direction: column;
}

.mdpsdl-locator__partner-dropdown[hidden] {
    display: none;
}

.mdpsdl-locator__partner-dropdown-item {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 9px 16px;
    text-align: left;
    font-size: 14px;
    color: #10243e;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s ease;
}

.mdpsdl-locator__partner-dropdown-item:hover,
.mdpsdl-locator__partner-dropdown-item:focus-visible {
    background: #f0f4f9;
    outline: none;
}

.mdpsdl-locator__partners-heading {
    margin: 0 0 20px;
    color: #10243e;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.mdpsdl-locator__partners-heading[hidden] {
    display: none;
}

.mdpsdl-locator__partners-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 28px;
}

.mdpsdl-locator__partners-group {
    flex: 0 0 100%;
}

.mdpsdl-locator__partners-group + .mdpsdl-locator__partners-group {
    margin-top: 24px;
}

.mdpsdl-locator__partners-group .mdpsdl-locator__partners-heading {
    margin-bottom: 14px;
}

.mdpsdl-locator__partners-group-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 28px;
}

.mdpsdl-locator__partner-logo {
    display: inline-flex;
    background: none;
    border: none;
    padding: 4px;
    margin: 0;
    cursor: pointer;
    border-radius: 8px;
    transition: outline 0.15s ease;
}

.mdpsdl-locator__partner-logo:focus-visible {
    outline: 2px solid #2d7ff9;
    outline-offset: 2px;
}

.mdpsdl-locator__partners-logos img {
    display: block;
    height: calc(60px * var(--mdpsdl-partner-logo-scale, 1));
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.mdpsdl-locator__partner-logo:hover img,
.mdpsdl-locator__partner-logo:focus-visible img {
    filter: grayscale(0);
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .mdpsdl-locator__partners-logos img {
        height: calc(48px * var(--mdpsdl-partner-logo-scale, 1));
    }
}
