/* Mark Pakiautomaat checkout UI v46 - outside order table, full width */

/* The picker is intentionally rendered outside the WooCommerce totals table. */
.mopw-terminal-area {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    clear: both !important;
    box-sizing: border-box !important;
    margin: 14px 0 16px !important;
    padding: 0 !important;
}

#order_review .mopw-terminal-area,
.woocommerce-checkout-review-order .mopw-terminal-area,
.woocommerce-checkout .mopw-terminal-area {
    grid-column: 1 / -1 !important;
}

#order_review .mopw-terminal-wrap,
.woocommerce-checkout-review-order .mopw-terminal-wrap,
.woocommerce-checkout .mopw-terminal-wrap {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.mopw-terminal-row,
.mopw-terminal-row td,
.woocommerce-checkout-review-order-table .mopw-terminal-row,
.woocommerce-checkout-review-order-table .mopw-terminal-row td {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.mopw-terminal-row td {
    display: block !important;
    padding: 0 !important;
}

.mopw-terminal-wrap,
.mopw-terminal-wrap * {
    box-sizing: border-box !important;
}

.mopw-terminal-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 12px 0 10px !important;
    padding: 14px !important;
    border: 1px solid rgba(44, 45, 50, 0.13) !important;
    border-radius: 14px !important;
    background: #f8f8f8 !important;
    box-shadow: 0 8px 22px rgba(44, 45, 50, 0.07) !important;
    overflow: hidden !important;
    color: #2c2d32;
}

.mopw-terminal-label {
    display: block;
    margin: 0 0 9px;
    color: #2c2d32;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.mopw-carrier-tabs,
.mopw-carrier-choice {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}


.mopw-carrier-count-1 {
    grid-template-columns: 1fr;
}

.mopw-carrier-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mopw-carrier-count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mopw-carrier-tab,
.mopw-carrier-logo-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 62px;
    padding: 10px 8px;
    border: 1.5px solid rgba(44, 45, 50, 0.16);
    border-radius: 13px;
    background: #fff;
    color: #2c2d32;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(44, 45, 50, 0.07);
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
    overflow: hidden;
}

.mopw-carrier-tab::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 7px;
    height: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background 140ms ease;
}

.mopw-carrier-tab:hover,
.mopw-carrier-tab:focus {
    outline: none;
    border-color: #feac00;
    box-shadow: 0 8px 20px rgba(254, 172, 0, 0.20);
}

.mopw-carrier-tab:active {
    transform: scale(0.985);
}

.mopw-carrier-tab.is-active {
    border-color: #feac00;
    background: #fff7df;
    box-shadow: 0 0 0 3px rgba(254, 172, 0, 0.18), 0 8px 20px rgba(44, 45, 50, 0.07);
}

.mopw-carrier-tab.is-active::after {
    background: #feac00;
}

.mopw-carrier-logo {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
    max-width: min(150px, 92%);
    max-height: 38px;
}

.mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
    max-width: min(72px, 74%);
    max-height: 32px;
}

.mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo {
    max-width: min(116px, 84%);
    max-height: 24px;
}

.mopw-logo-word,
.mopw-carrier-logo-card small {
    display: none !important;
}

.mopw-selected-carrier-bar {
width: 100%;
max-width: 100%;
min-width: 0;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin: 0 0 8px;
padding: 7px 8px;
border: 1px solid rgba(254, 172, 0, 0.60);
border-radius: 14px;
background: #ffffff;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.mopw-selected-carrier-bar[hidden] {
    display: none !important;
}

.mopw-selected-carrier-text {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}


.mopw-selected-carrier-logo {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 5px 7px;
    border: 1px solid rgba(44, 45, 50, 0.08);
}

.mopw-selected-carrier-text img[src=""] {
    display: none;
}

.mopw-selected-carrier-text strong {
    display: block !important;
    min-width: 0;
    color: #2c2d32;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mopw-selected-carrier-bar .mopw-selected-carrier-logo {
    max-width: 92px;
    max-height: 34px;
}

#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="DPD"] {
    max-width: 58px;
}

#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="SmartPosti"] {
    max-width: 82px;
    max-height: 28px;
}

.mopw-change-carrier-button {
    flex: 0 0 auto;
    max-width: 46%;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(254, 172, 0, 0.80);
    border-radius: 999px;
    background: #fff;
    color: #2c2d32;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.15;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mopw-change-carrier-button:hover,
.mopw-change-carrier-button:focus {
    outline: none;
    border-color: #feac00;
    background: #fff1c8;
}

.mopw-picker-button {
    position: relative;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 54px;
    padding: 12px 13px;
    border: 1.5px solid rgba(254, 172, 0, 0.70);
    border-radius: 12px;
    background: #fffaf0;
    color: #2c2d32;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(44, 45, 50, 0.05);
    overflow: hidden;
    font: inherit;
}

.mopw-picker-button[hidden],
.mopw-picker-button:not(.has-selection) {
    display: none !important;
}

.mopw-picker-button:hover {
    border-color: #feac00;
}

.mopw-picker-button:focus {
    outline: none;
    border-color: #feac00;
    box-shadow: 0 0 0 4px rgba(254, 172, 0, 0.18);
}

.mopw-picker-button.has-selection {
    border-color: #feac00;
    background: #fffaf0;
}

.mopw-picker-button-main,
.mopw-picker-button-sub,
.mopw-picker-action {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mopw-picker-button-main {
    color: #2c2d32;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.25;
}

.mopw-picker-button-sub {
    margin-top: 4px;
    color: rgba(44, 45, 50, 0.68);
    font-size: 13px;
    line-height: 1.3;
}

.mopw-picker-action {
    display: none !important;
}

.mopw-selected-summary,
#mopw_selected_summary {
    display: none !important;
}

.mopw-inline-picker {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-top: 9px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: hidden !important;
}

.mopw-inline-picker[hidden] {
    display: none !important;
}

.mopw-picker-search-line {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 8px;
}

.mopw-terminal-search {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 46px;
    padding: 10px 13px;
    border: 1.5px solid rgba(44, 45, 50, 0.16);
    border-radius: 12px;
    background: #fff;
    color: #2c2d32;
    font-size: 16px;
    line-height: 1.35;
    font-family: inherit;
}

.mopw-terminal-search:focus {
    outline: none;
    border-color: #feac00;
    box-shadow: 0 0 0 4px rgba(254, 172, 0, 0.18);
}

.mopw-result-count {
    display: none !important;
}

.mopw-results {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: 330px;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    gap: 7px;
    margin-top: 0;
    padding-right: 1px;
    -webkit-overflow-scrolling: touch;
}

.mopw-result-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block;
    padding: 10px 11px;
    border: 1px solid rgba(44, 45, 50, 0.13);
    border-radius: 11px;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
    overflow: hidden;
    font-family: inherit;
}

.mopw-result-card:hover,
.mopw-result-card:focus {
    outline: none;
    border-color: #feac00;
    background: #fffaf0;
}

.mopw-result-card:active {
    transform: scale(0.99);
}

.mopw-result-card.is-selected {
    border-color: #feac00;
    background: #fff5dc;
}

.mopw-result-main,
.mopw-result-meta {
    display: block;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.mopw-result-main {
    color: #2c2d32;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.28;
}

.mopw-result-meta {
    margin-top: 3px;
    color: rgba(44, 45, 50, 0.68);
    font-size: 12.5px;
    line-height: 1.3;
}

.mopw-picker-hint,
.mopw-no-results,
.mopw-picker-more {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 11px;
    background: #fff;
    color: rgba(44, 45, 50, 0.68);
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.mopw-picker-hint,
.mopw-picker-more {
    display: none !important;
}

.mopw-no-results {
    margin-top: 8px;
    color: #9f2f2f;
    background: rgba(185, 28, 28, 0.06);
}

.mopw-terminal-help {
    display: none !important;
}

@media (max-width: 768px) {
    .mopw-terminal-wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 12px !important;
        border-radius: 13px !important;
    }

    .mopw-carrier-tabs,
    .mopw-carrier-choice {
        gap: 7px;
    }

    .mopw-carrier-tab,
    .mopw-carrier-logo-card {
        min-height: 54px;
        padding: 7px 5px;
        border-radius: 11px;
    }

    .mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
        max-width: min(112px, 92%);
        max-height: 32px;
    }

    .mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
        max-width: min(67px, 78%);
        max-height: 30px;
    }

    .mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo {
        max-width: min(96px, 88%);
        max-height: 22px;
    }

    .mopw-picker-button {
        min-height: 52px;
        padding: 11px 12px;
        font-size: 16px;
    }

    .mopw-results {
        max-height: 300px;
    }
}

@media (max-width: 420px) {
    .mopw-terminal-wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 10px !important;
    }

    .mopw-carrier-tabs,
    .mopw-carrier-choice {
        gap: 6px;
    }

    .mopw-carrier-tab,
    .mopw-carrier-logo-card {
        min-height: 50px;
        padding: 6px 3px;
        border-radius: 10px;
    }

    .mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
        max-width: min(94px, 92%);
        max-height: 28px;
    }

    .mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
        max-width: min(58px, 76%);
        max-height: 27px;
    }

    .mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo {
        max-width: min(82px, 86%);
        max-height: 19px;
    }

    #mopw-selected-carrier-bar .mopw-selected-carrier-logo {
        max-width: 76px;
        max-height: 30px;
    }

    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="DPD"] {
        max-width: 52px;
    }

    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="SmartPosti"] {
        max-width: 70px;
        max-height: 25px;
    }

    .mopw-change-carrier-button {
        max-width: 60%;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 11.5px;
    }
}

/* v22 stability overrides - fixed width, no jumpy logo sizing, no yellow backgrounds */
.mopw-terminal-area,
#mopw-terminal-wrap,
.mopw-terminal-wrap,
#mopw-inline-picker,
.mopw-inline-picker,
.mopw-results,
.mopw-result-card,
.mopw-picker-search-line,
.mopw-terminal-search,
.mopw-picker-button,
.mopw-selected-carrier-bar,
.mopw-carrier-tabs {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.mopw-terminal-wrap {
    background: #f8f8f8 !important;
    color: #2c2d32 !important;
    border-color: rgba(44, 45, 50, 0.14) !important;
    box-shadow: 0 8px 22px rgba(44, 45, 50, 0.06) !important;
}

.mopw-carrier-tab,
.mopw-carrier-logo-card,
.mopw-carrier-tab.is-active,
.mopw-picker-button,
.mopw-picker-button.has-selection,
.mopw-result-card,
.mopw-result-card.is-selected {
    background: #ffffff !important;
}

.mopw-carrier-tab.is-active,
.mopw-picker-button.has-selection,
.mopw-result-card.is-selected {
    border-color: #feac00 !important;
    box-shadow: 0 0 0 2px rgba(254, 172, 0, 0.22), 0 6px 16px rgba(44, 45, 50, 0.06) !important;
}

.mopw-carrier-tab:hover,
.mopw-carrier-tab:focus,
.mopw-picker-button:hover,
.mopw-picker-button:focus,
.mopw-result-card:hover,
.mopw-result-card:focus,
.mopw-terminal-search:focus {
    border-color: #feac00 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(254, 172, 0, 0.18) !important;
}

.mopw-carrier-tab::after {
    background: transparent !important;
}

.mopw-carrier-tab.is-active::after {
    background: #feac00 !important;
}

.mopw-carrier-logo {
    display: block !important;
    width: 100% !important;
    height: 34px !important;
    object-fit: contain !important;
    object-position: center !important;
    max-width: 100% !important;
    max-height: 34px !important;
    flex: 0 0 auto !important;
}

.mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
    height: 34px !important;
    max-height: 34px !important;
    max-width: 150px !important;
}

.mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
    height: 31px !important;
    max-height: 31px !important;
    max-width: 76px !important;
    transform: scale(0.95);
}

.mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo {
    height: 27px !important;
    max-height: 27px !important;
    max-width: 118px !important;
}

.mopw-selected-carrier-bar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 0 0 8px !important;
    padding: 7px 8px !important;
    border: 1px solid rgba(254, 172, 0, 0.60) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.mopw-selected-carrier-bar[hidden] {
    display: none !important;
}

.mopw-selected-carrier-text {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.mopw-selected-carrier-text strong {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    color: #2c2d32 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 750 !important;
}

#mopw-selected-carrier-bar .mopw-selected-carrier-logo,
.mopw-selected-carrier-logo {
    display: block !important;
    flex: 0 0 98px !important;
    width: 98px !important;
    height: 34px !important;
    max-width: 98px !important;
    max-height: 34px !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 4px 6px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1px solid rgba(44, 45, 50, 0.08) !important;
    box-sizing: border-box !important;
}

#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="DPD"] {
    width: 98px !important;
    max-width: 98px !important;
    transform: scale(0.95);
}

#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="SmartPosti"] {
    width: 98px !important;
    max-width: 98px !important;
    height: 34px !important;
    max-height: 34px !important;
}

.mopw-change-carrier-button {
    flex: 0 0 auto !important;
    max-width: 42% !important;
    background: #ffffff !important;
    color: #2c2d32 !important;
    border-color: rgba(254, 172, 0, 0.75) !important;
}

.mopw-picker-button-main,
.mopw-picker-button-sub,
.mopw-result-main,
.mopw-result-meta {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
}

.mopw-picker-button[hidden],
.mopw-picker-button:not(.has-selection) {
    display: none !important;
}

.mopw-inline-picker[hidden] {
    display: none !important;
}

.mopw-results {
    max-height: 360px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

@media (max-width: 420px) {
    .mopw-selected-carrier-text {
        gap: 8px !important;
    }

    #mopw-selected-carrier-bar .mopw-selected-carrier-logo,
    .mopw-selected-carrier-logo,
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="DPD"],
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="SmartPosti"] {
        flex-basis: 82px !important;
        width: 82px !important;
        max-width: 82px !important;
        height: 31px !important;
        max-height: 31px !important;
    }

    .mopw-selected-carrier-text strong {
        font-size: 13px !important;
    }

    .mopw-change-carrier-button {
        max-width: 45% !important;
    }
}

/* v23 pricing + stable provider layout + selected terminal success state */
.mopw-terminal-wrap {
    background: #f8f8f8 !important;
    color: #2c2d32 !important;
}

.mopw-carrier-tab,
.mopw-carrier-logo-card {
    flex-direction: column !important;
    gap: 7px !important;
    min-height: 74px !important;
    padding: 11px 8px 9px !important;
    background: #ffffff !important;
    border-color: rgba(44, 45, 50, 0.16) !important;
    box-shadow: 0 6px 16px rgba(44, 45, 50, 0.07) !important;
}

.mopw-carrier-tab:hover,
.mopw-carrier-tab:focus {
    background: #ffffff !important;
    border-color: #feac00 !important;
    box-shadow: 0 8px 18px rgba(44, 45, 50, 0.09) !important;
}

.mopw-carrier-tab.is-active,
.mopw-carrier-logo-card.is-active {
    background: #ffffff !important;
    border-color: #feac00 !important;
    box-shadow: 0 8px 18px rgba(44, 45, 50, 0.09) !important;
}

.mopw-carrier-tab.is-active::after {
    background: #feac00 !important;
}

.mopw-carrier-logo-holder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 36px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.mopw-carrier-logo {
    width: 100% !important;
    height: 34px !important;
    max-width: 100% !important;
    max-height: 34px !important;
    object-fit: contain !important;
    object-position: center !important;
    transform-origin: center center !important;
}

.mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
    max-width: 138px !important;
    height: 32px !important;
}

.mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
    max-width: 70px !important;
    height: 30px !important;
    transform: scale(0.95) !important;
}

.mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo {
    max-width: 108px !important;
    height: 25px !important;
}

.mopw-carrier-card-price {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 22px !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    background: rgba(254, 172, 0, 0.13) !important;
    color: #2c2d32 !important;
    font-size: 12px !important;
    font-weight: 760 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

.mopw-selected-carrier-bar {
    background: #ffffff !important;
    border-color: rgba(254, 172, 0, 0.62) !important;
    box-shadow: 0 5px 14px rgba(44, 45, 50, 0.055) !important;
}

.mopw-selected-carrier-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.mopw-selected-carrier-actions {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 7px !important;
    min-width: 0 !important;
}

.mopw-selected-carrier-price {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 24px !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    background: rgba(254, 172, 0, 0.13) !important;
    color: #2c2d32 !important;
    font-size: 12px !important;
    font-weight: 780 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

.mopw-change-carrier-button {
    box-shadow: none !important;
}

.mopw-picker-button.has-selection {
    position: relative !important;
    padding-left: 46px !important;
    border-color: rgba(59, 126, 87, 0.38) !important;
    background: linear-gradient(135deg, #f4fbf6 0%, #eaf7ef 100%) !important;
    box-shadow: 0 8px 20px rgba(44, 45, 50, 0.075) !important;
}

.mopw-picker-button.has-selection::before {
    content: '✓';
    position: absolute;
    left: 13px;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border-radius: 999px;
    background: #3b7e57;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.mopw-picker-button.has-selection:hover,
.mopw-picker-button.has-selection:focus {
    border-color: rgba(59, 126, 87, 0.50) !important;
    background: linear-gradient(135deg, #f4fbf6 0%, #eaf7ef 100%) !important;
    box-shadow: 0 8px 20px rgba(44, 45, 50, 0.085) !important;
}

.mopw-result-card.is-selected {
    border-color: rgba(59, 126, 87, 0.42) !important;
    background: linear-gradient(135deg, #f4fbf6 0%, #eaf7ef 100%) !important;
    box-shadow: 0 5px 14px rgba(44, 45, 50, 0.055) !important;
}

@media (max-width: 420px) {
    .mopw-carrier-tab,
    .mopw-carrier-logo-card {
        min-height: 66px !important;
        padding: 9px 5px 8px !important;
        gap: 5px !important;
    }

    .mopw-carrier-logo-holder {
        height: 31px !important;
    }

    .mopw-carrier-card-price,
    .mopw-selected-carrier-price {
        font-size: 11.5px !important;
        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    .mopw-selected-carrier-bar {
        align-items: flex-start !important;
        gap: 7px !important;
    }

    .mopw-selected-carrier-actions {
        gap: 5px !important;
    }

    .mopw-picker-button.has-selection {
        padding-left: 42px !important;
    }
}

/* v24 cleanup: price next to logos, compact selected carrier bar, subtle success, city grouping */
.mopw-carrier-tab,
.mopw-carrier-logo-card {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 62px !important;
    padding: 9px 10px !important;
}

.mopw-carrier-logo-holder {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 38px !important;
    justify-content: flex-start !important;
}

.mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo-holder,
.mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo-holder {
    justify-content: flex-start !important;
}

.mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo-holder {
    justify-content: flex-start !important;
}

.mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
    max-width: 132px !important;
    height: 32px !important;
    max-height: 32px !important;
}

.mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
    max-width: 66px !important;
    height: 28px !important;
    max-height: 28px !important;
    transform: scale(0.95) !important;
}

.mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo {
    max-width: 100px !important;
    height: 24px !important;
    max-height: 24px !important;
}

.mopw-carrier-card-price {
    flex: 0 0 auto !important;
    margin-left: 6px !important;
    white-space: nowrap !important;
}

.mopw-selected-carrier-bar {
    align-items: center !important;
    gap: 10px !important;
    padding: 7px 9px !important;
    background: #ffffff !important;
    border: 1px solid rgba(254, 172, 0, 0.60) !important;
    box-shadow: 0 5px 14px rgba(44, 45, 50, 0.055) !important;
    overflow: visible !important;
}

.mopw-selected-carrier-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#mopw-selected-carrier-bar .mopw-selected-carrier-logo,
.mopw-selected-carrier-logo,
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="DPD"],
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="SmartPosti"] {
    flex: 0 0 86px !important;
    width: 86px !important;
    max-width: 86px !important;
    height: 32px !important;
    max-height: 32px !important;
    padding: 4px 6px !important;
    object-fit: contain !important;
}

.mopw-selected-carrier-text strong {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.mopw-selected-carrier-price {
    flex: 0 0 auto !important;
    margin-left: 2px !important;
    white-space: nowrap !important;
}

.mopw-selected-carrier-actions {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    overflow: visible !important;
}

.mopw-change-carrier-button {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: max-content !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.mopw-picker-button.has-selection {
    padding-left: 13px !important;
    border-color: rgba(44, 45, 50, 0.14) !important;
    background: linear-gradient(135deg, #effaf3 0%, #ffffff 62%, #ffffff 100%) !important;
    box-shadow: 0 8px 20px rgba(44, 45, 50, 0.075) !important;
}

.mopw-picker-button.has-selection::before {
    display: none !important;
    content: none !important;
}

.mopw-picker-button.has-selection:hover,
.mopw-picker-button.has-selection:focus {
    border-color: rgba(44, 45, 50, 0.18) !important;
    background: linear-gradient(135deg, #effaf3 0%, #ffffff 62%, #ffffff 100%) !important;
    box-shadow: 0 8px 20px rgba(44, 45, 50, 0.085) !important;
}

.mopw-result-card.is-selected {
    border-color: rgba(44, 45, 50, 0.16) !important;
    background: linear-gradient(135deg, #effaf3 0%, #ffffff 70%, #ffffff 100%) !important;
    box-shadow: 0 5px 14px rgba(44, 45, 50, 0.055) !important;
}

.mopw-city-group {
    width: 100%;
    min-width: 0;
    display: block;
}

.mopw-city-group + .mopw-city-group {
    margin-top: 10px;
}

.mopw-city-heading {
    position: sticky;
    top: 0;
    z-index: 2;
    display: block;
    margin: 0 0 6px;
    padding: 7px 9px;
    border-radius: 10px;
    background: rgba(248, 248, 248, 0.94);
    backdrop-filter: blur(8px);
    color: #2c2d32;
    font-size: 12.5px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.mopw-city-results {
    display: grid;
    gap: 7px;
    width: 100%;
    min-width: 0;
}

@media (max-width: 520px) {
    .mopw-carrier-tabs,
    .mopw-carrier-choice.mopw-carrier-count-3 {
        grid-template-columns: 1fr !important;
    }

    .mopw-carrier-tab,
    .mopw-carrier-logo-card {
        min-height: 56px !important;
        padding: 8px 10px !important;
    }

    .mopw-selected-carrier-bar {
        flex-wrap: wrap !important;
    }

    .mopw-selected-carrier-actions {
        margin-left: 0 !important;
    }

    #mopw-selected-carrier-bar .mopw-selected-carrier-logo,
    .mopw-selected-carrier-logo,
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="DPD"],
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="SmartPosti"] {
        flex-basis: 78px !important;
        width: 78px !important;
        max-width: 78px !important;
    }
}

.mopw-carrier-count-4,
.mopw-carrier-count-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mopw-carrier-tab[data-carrier="unisend"] .mopw-carrier-logo,
.mopw-carrier-tab[data-carrier="venipak"] .mopw-carrier-logo {
    max-width: min(118px, 84%);
    max-height: 30px;
}

#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Unisend"],
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Venipak"] {
    max-width: 82px;
    max-height: 28px;
}

.mopw-change-carrier-button {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

@media (max-width: 640px) {
    .mopw-carrier-count-3,
    .mopw-carrier-count-4,
    .mopw-carrier-count-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .mopw-carrier-count-3,
    .mopw-carrier-count-4,
    .mopw-carrier-count-5 {
        grid-template-columns: 1fr;
    }
}

/* v28 official Unisend and Venipak logo normalization */
.mopw-carrier-tab[data-carrier="unisend"] .mopw-carrier-logo {
    max-width: 126px !important;
    height: 25px !important;
    max-height: 25px !important;
}

.mopw-carrier-tab[data-carrier="venipak"] .mopw-carrier-logo {
    max-width: 124px !important;
    height: 25px !important;
    max-height: 25px !important;
}

#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Unisend"],
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Venipak"] {
    width: 86px !important;
    max-width: 86px !important;
    height: 30px !important;
    max-height: 30px !important;
}

/* v30 mobile provider grid + stable logos + compact reset button */
.mopw-carrier-logo-holder {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
}

.mopw-carrier-logo {
    display: block !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform-origin: left center !important;
}

.mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
    width: auto !important;
    max-width: 104px !important;
    height: 25px !important;
    max-height: 25px !important;
}

.mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
    width: auto !important;
    max-width: 49px !important;
    height: 25px !important;
    max-height: 25px !important;
    transform: scale(0.90) !important;
}

.mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo {
    width: auto !important;
    max-width: 92px !important;
    height: 24px !important;
    max-height: 24px !important;
}

.mopw-carrier-tab[data-carrier="unisend"] .mopw-carrier-logo,
.mopw-carrier-tab[data-carrier="venipak"] .mopw-carrier-logo {
    width: auto !important;
    max-width: 92px !important;
    height: 24px !important;
    max-height: 24px !important;
}

.mopw-selected-carrier-bar {
    flex-wrap: nowrap !important;
}

#mopw-selected-carrier-bar .mopw-selected-carrier-logo,
.mopw-selected-carrier-logo,
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="DPD"],
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="SmartPosti"],
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Unisend"],
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Venipak"] {
    flex: 0 0 68px !important;
    width: 68px !important;
    max-width: 68px !important;
    height: 28px !important;
    max-height: 28px !important;
    padding: 3px 4px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

@media (max-width: 640px) {
    .mopw-carrier-tabs,
    .mopw-carrier-choice,
    .mopw-carrier-count-2,
    .mopw-carrier-count-3,
    .mopw-carrier-count-4,
    .mopw-carrier-count-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .mopw-carrier-tab,
    .mopw-carrier-logo-card {
        min-width: 0 !important;
        min-height: 56px !important;
        padding: 8px 8px !important;
        gap: 6px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .mopw-carrier-logo-holder {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        height: 28px !important;
    }

    .mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
        max-width: 82px !important;
        height: 22px !important;
        max-height: 22px !important;
    }

    .mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
        max-width: 42px !important;
        height: 22px !important;
        max-height: 22px !important;
        transform: scale(0.90) !important;
    }

    .mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo,
    .mopw-carrier-tab[data-carrier="unisend"] .mopw-carrier-logo,
    .mopw-carrier-tab[data-carrier="venipak"] .mopw-carrier-logo {
        max-width: 76px !important;
        height: 21px !important;
        max-height: 21px !important;
    }

    .mopw-carrier-card-price {
        flex: 0 0 auto !important;
        margin-left: 4px !important;
        min-height: 20px !important;
        padding: 3px 6px !important;
        font-size: 11px !important;
        line-height: 1 !important;
    }

    .mopw-selected-carrier-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 7px 8px !important;
        overflow: hidden !important;
    }

    .mopw-selected-carrier-text {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        overflow: hidden !important;
    }

    #mopw-selected-carrier-bar .mopw-selected-carrier-logo,
    .mopw-selected-carrier-logo,
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="DPD"],
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="SmartPosti"],
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Unisend"],
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Venipak"] {
        flex: 0 0 48px !important;
        width: 48px !important;
        max-width: 48px !important;
        height: 24px !important;
        max-height: 24px !important;
        padding: 2px 2px !important;
        object-fit: contain !important;
        object-position: left center !important;
    }

    .mopw-selected-carrier-text strong {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        font-size: 12.5px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .mopw-selected-carrier-price {
        flex: 0 0 auto !important;
        min-height: 20px !important;
        padding: 3px 6px !important;
        font-size: 11px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .mopw-selected-carrier-actions {
        flex: 0 0 auto !important;
        min-width: 28px !important;
        margin-left: 0 !important;
    }

    .mopw-change-carrier-button {
        position: relative !important;
        flex: 0 0 28px !important;
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        height: 28px !important;
        min-height: 28px !important;
        padding: 0 !important;
        border-radius: 999px !important;
        font-size: 0 !important;
        line-height: 0 !important;
        overflow: hidden !important;
        color: #2c2d32 !important;
        background: #ffffff !important;
    }

    .mopw-change-carrier-button::before {
        content: '×';
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 21px;
        line-height: 1;
        font-weight: 500;
        color: #2c2d32;
    }
}

/* v31 provider grid + logo normalization - final override */
.mopw-carrier-tabs,
.mopw-carrier-choice {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.mopw-carrier-count-1 {
    grid-template-columns: 1fr !important;
}

.mopw-carrier-count-2,
.mopw-carrier-count-3,
.mopw-carrier-count-4,
.mopw-carrier-count-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.mopw-carrier-tab,
.mopw-carrier-logo-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 62px !important;
    padding: 9px 10px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    overflow: hidden !important;
}

.mopw-carrier-logo-holder {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 30px !important;
    max-height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
}

.mopw-carrier-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform-origin: left center !important;
    flex: 0 1 auto !important;
}

/* Perceived-size correction: the wider logos are intentionally smaller. */
.mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
    max-width: 102px !important;
    max-height: 24px !important;
    transform: none !important;
}

.mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
    max-width: 43px !important;
    max-height: 23px !important;
    transform: scale(0.92) !important;
}

.mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo {
    max-width: 78px !important;
    max-height: 21px !important;
    transform: none !important;
}

.mopw-carrier-tab[data-carrier="unisend"] .mopw-carrier-logo {
    max-width: 80px !important;
    max-height: 21px !important;
    transform: none !important;
}

.mopw-carrier-tab[data-carrier="venipak"] .mopw-carrier-logo {
    max-width: 78px !important;
    max-height: 21px !important;
    transform: none !important;
}

.mopw-carrier-card-price {
    flex: 0 0 auto !important;
    margin-left: 5px !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    padding: 3px 7px !important;
}

/* Selected carrier row: fixed logo box, no jump by provider, no wrapping button chaos. */
.mopw-selected-carrier-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    overflow: hidden !important;
}

.mopw-selected-carrier-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 7px !important;
    overflow: hidden !important;
}

#mopw-selected-carrier-bar .mopw-selected-carrier-logo,
.mopw-selected-carrier-logo,
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="DPD"],
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="SmartPosti"],
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Unisend"],
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Venipak"] {
    flex: 0 0 64px !important;
    width: 64px !important;
    max-width: 64px !important;
    height: 28px !important;
    max-height: 28px !important;
    padding: 3px 4px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
}

.mopw-selected-carrier-text strong {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mopw-selected-carrier-actions {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.mopw-selected-carrier-price {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

.mopw-change-carrier-button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

@media (max-width: 640px) {
    .mopw-carrier-tabs,
    .mopw-carrier-choice,
    .mopw-carrier-count-2,
    .mopw-carrier-count-3,
    .mopw-carrier-count-4,
    .mopw-carrier-count-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .mopw-carrier-tab,
    .mopw-carrier-logo-card {
        min-height: 54px !important;
        padding: 8px 7px !important;
        gap: 5px !important;
    }

    .mopw-carrier-logo-holder {
        height: 25px !important;
        max-height: 25px !important;
    }

    .mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
        max-width: 76px !important;
        max-height: 20px !important;
    }

    .mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
        max-width: 36px !important;
        max-height: 19px !important;
        transform: scale(0.90) !important;
    }

    .mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo,
    .mopw-carrier-tab[data-carrier="unisend"] .mopw-carrier-logo,
    .mopw-carrier-tab[data-carrier="venipak"] .mopw-carrier-logo {
        max-width: 61px !important;
        max-height: 18px !important;
    }

    .mopw-carrier-card-price {
        font-size: 10.5px !important;
        padding: 3px 5px !important;
        margin-left: 3px !important;
    }

    .mopw-selected-carrier-bar {
        gap: 5px !important;
        padding: 7px 7px !important;
    }

    #mopw-selected-carrier-bar .mopw-selected-carrier-logo,
    .mopw-selected-carrier-logo,
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="DPD"],
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="SmartPosti"],
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Unisend"],
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Venipak"] {
        flex-basis: 46px !important;
        width: 46px !important;
        max-width: 46px !important;
        height: 24px !important;
        max-height: 24px !important;
        padding: 2px !important;
    }

    .mopw-selected-carrier-text strong {
        font-size: 12.5px !important;
    }

    .mopw-selected-carrier-price {
        font-size: 10.5px !important;
        padding: 3px 5px !important;
    }

    .mopw-change-carrier-button {
        position: relative !important;
        flex: 0 0 28px !important;
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        height: 28px !important;
        min-height: 28px !important;
        padding: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
        overflow: hidden !important;
    }

    .mopw-change-carrier-button::before {
        content: '×' !important;
        position: absolute !important;
        inset: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 21px !important;
        line-height: 1 !important;
        font-weight: 500 !important;
    }
}


/* v31 final provider-card layout - max two columns everywhere, stable logo sizing */
.mopw-carrier-tabs,
.mopw-carrier-choice {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.mopw-carrier-count-1 {
    grid-template-columns: 1fr !important;
}

.mopw-carrier-count-2,
.mopw-carrier-count-3,
.mopw-carrier-count-4,
.mopw-carrier-count-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.mopw-carrier-tab,
.mopw-carrier-logo-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 9px 10px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    overflow: hidden !important;
}

.mopw-carrier-logo-holder {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 28px !important;
    max-height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
}

.mopw-carrier-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform-origin: left center !important;
}

.mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
    max-width: 88px !important;
    max-height: 22px !important;
    transform: none !important;
}

.mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
    max-width: 39px !important;
    max-height: 21px !important;
    transform: scale(.92) !important;
}

.mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo {
    max-width: 66px !important;
    max-height: 18px !important;
    transform: none !important;
}

.mopw-carrier-tab[data-carrier="unisend"] .mopw-carrier-logo {
    max-width: 66px !important;
    max-height: 18px !important;
    transform: none !important;
}

.mopw-carrier-tab[data-carrier="venipak"] .mopw-carrier-logo {
    max-width: 66px !important;
    max-height: 18px !important;
    transform: none !important;
}

.mopw-carrier-card-price {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    max-width: max-content !important;
    white-space: nowrap !important;
    margin-left: 4px !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
    padding: 4px 7px !important;
}

@media (max-width: 640px) {
    .mopw-carrier-tabs,
    .mopw-carrier-choice,
    .mopw-carrier-count-2,
    .mopw-carrier-count-3,
    .mopw-carrier-count-4,
    .mopw-carrier-count-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .mopw-carrier-tab,
    .mopw-carrier-logo-card {
        min-height: 52px !important;
        padding: 8px 7px !important;
        gap: 5px !important;
    }

    .mopw-carrier-logo-holder {
        height: 24px !important;
        max-height: 24px !important;
    }

    .mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
        max-width: 70px !important;
        max-height: 19px !important;
    }

    .mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
        max-width: 33px !important;
        max-height: 18px !important;
        transform: scale(.90) !important;
    }

    .mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo,
    .mopw-carrier-tab[data-carrier="unisend"] .mopw-carrier-logo,
    .mopw-carrier-tab[data-carrier="venipak"] .mopw-carrier-logo {
        max-width: 54px !important;
        max-height: 16px !important;
    }

    .mopw-carrier-card-price {
        font-size: 10px !important;
        padding: 3px 5px !important;
        margin-left: 2px !important;
    }
}


/* v32 hard fixes: carrier choice must hide after selection, max 2 columns, no provider-card stripe chaos */
#mopw-carrier-tabs[hidden],
.mopw-carrier-tabs[hidden],
.mopw-carrier-choice[hidden],
#mopw-carrier-tabs[style*="display: none"],
.mopw-carrier-tabs[style*="display: none"],
.mopw-carrier-choice[style*="display: none"] {
    display: none !important;
}

.mopw-carrier-tabs,
.mopw-carrier-choice,
.mopw-carrier-count-2,
.mopw-carrier-count-3,
.mopw-carrier-count-4,
.mopw-carrier-count-5 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.mopw-carrier-count-1 {
    grid-template-columns: 1fr !important;
}

.mopw-carrier-tab,
.mopw-carrier-logo-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 60px !important;
    padding: 9px 10px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    border-radius: 13px !important;
    overflow: hidden !important;
}

.mopw-carrier-tab::after,
.mopw-carrier-tab.is-active::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
}

.mopw-carrier-logo-holder {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 30px !important;
    max-height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
}

.mopw-carrier-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform-origin: left center !important;
}

.mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
    max-width: 98px !important;
    max-height: 24px !important;
    transform: none !important;
}

.mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
    max-width: 43px !important;
    max-height: 22px !important;
    transform: scale(.92) !important;
}

.mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo {
    max-width: 74px !important;
    max-height: 19px !important;
    transform: none !important;
}

.mopw-carrier-tab[data-carrier="unisend"] .mopw-carrier-logo {
    max-width: 75px !important;
    max-height: 19px !important;
    transform: none !important;
}

.mopw-carrier-tab[data-carrier="venipak"] .mopw-carrier-logo {
    max-width: 74px !important;
    max-height: 19px !important;
    transform: none !important;
}

.mopw-carrier-card-price {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    max-width: max-content !important;
    margin-left: 4px !important;
    white-space: nowrap !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
    padding: 4px 7px !important;
}

@media (max-width: 640px) {
    .mopw-carrier-tabs,
    .mopw-carrier-choice,
    .mopw-carrier-count-2,
    .mopw-carrier-count-3,
    .mopw-carrier-count-4,
    .mopw-carrier-count-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .mopw-carrier-tab,
    .mopw-carrier-logo-card {
        min-height: 54px !important;
        padding: 8px 7px !important;
        gap: 5px !important;
    }

    .mopw-carrier-logo-holder {
        height: 25px !important;
        max-height: 25px !important;
    }

    .mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
        max-width: 76px !important;
        max-height: 20px !important;
    }

    .mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
        max-width: 35px !important;
        max-height: 18px !important;
        transform: scale(.90) !important;
    }

    .mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo,
    .mopw-carrier-tab[data-carrier="unisend"] .mopw-carrier-logo,
    .mopw-carrier-tab[data-carrier="venipak"] .mopw-carrier-logo {
        max-width: 58px !important;
        max-height: 17px !important;
    }

    .mopw-carrier-card-price {
        font-size: 10px !important;
        padding: 3px 5px !important;
        margin-left: 2px !important;
    }
}


/* v34 logo normalization - one sizing system for desktop and mobile */
.mopw-carrier-tabs,
.mopw-carrier-choice,
.mopw-carrier-count-2,
.mopw-carrier-count-3,
.mopw-carrier-count-4,
.mopw-carrier-count-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.mopw-carrier-tab,
.mopw-carrier-logo-card {
    min-height: 62px !important;
    padding: 10px 11px !important;
    gap: 9px !important;
    align-items: center !important;
}

.mopw-carrier-logo-holder {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 32px !important;
    max-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
}

.mopw-carrier-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
    transform-origin: left center !important;
}

/* Desktop: visual correction by logo shape, not random per screen. */
.mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
    max-width: 116px !important;
    max-height: 27px !important;
}

.mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
    max-width: 58px !important;
    max-height: 28px !important;
}

.mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo {
    max-width: 96px !important;
    max-height: 24px !important;
}

.mopw-carrier-tab[data-carrier="unisend"] .mopw-carrier-logo {
    max-width: 100px !important;
    max-height: 24px !important;
}

.mopw-carrier-tab[data-carrier="venipak"] .mopw-carrier-logo {
    max-width: 98px !important;
    max-height: 24px !important;
}

.mopw-carrier-card-price {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    max-width: max-content !important;
    margin-left: 6px !important;
    font-size: 11.5px !important;
    padding: 4px 7px !important;
}

#mopw-selected-carrier-bar .mopw-selected-carrier-logo,
.mopw-selected-carrier-logo,
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="DPD"],
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="SmartPosti"],
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Unisend"],
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Venipak"] {
    flex: 0 0 76px !important;
    width: 76px !important;
    max-width: 76px !important;
    height: 30px !important;
    max-height: 30px !important;
    padding: 3px 4px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
}

@media (max-width: 640px) {
    .mopw-carrier-tabs,
    .mopw-carrier-choice,
    .mopw-carrier-count-2,
    .mopw-carrier-count-3,
    .mopw-carrier-count-4,
    .mopw-carrier-count-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .mopw-carrier-tab,
    .mopw-carrier-logo-card {
        min-height: 56px !important;
        padding: 8px 8px !important;
        gap: 5px !important;
    }

    .mopw-carrier-logo-holder {
        height: 28px !important;
        max-height: 28px !important;
    }

    .mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
        max-width: 92px !important;
        max-height: 23px !important;
    }

    .mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
        max-width: 48px !important;
        max-height: 23px !important;
    }

    .mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo {
        max-width: 76px !important;
        max-height: 20px !important;
    }

    .mopw-carrier-tab[data-carrier="unisend"] .mopw-carrier-logo {
        max-width: 80px !important;
        max-height: 20px !important;
    }

    .mopw-carrier-tab[data-carrier="venipak"] .mopw-carrier-logo {
        max-width: 78px !important;
        max-height: 20px !important;
    }

    .mopw-carrier-card-price {
        font-size: 10px !important;
        padding: 3px 5px !important;
        margin-left: 2px !important;
    }

    #mopw-selected-carrier-bar .mopw-selected-carrier-logo,
    .mopw-selected-carrier-logo,
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="DPD"],
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="SmartPosti"],
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Unisend"],
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Venipak"] {
        flex-basis: 58px !important;
        width: 58px !important;
        max-width: 58px !important;
        height: 25px !important;
        max-height: 25px !important;
        padding: 2px !important;
    }
}

@media (max-width: 380px) {
    .mopw-carrier-tab,
    .mopw-carrier-logo-card {
        padding: 8px 6px !important;
    }

    .mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
        max-width: 86px !important;
    }

    .mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
        max-width: 44px !important;
    }

    .mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo,
    .mopw-carrier-tab[data-carrier="unisend"] .mopw-carrier-logo,
    .mopw-carrier-tab[data-carrier="venipak"] .mopw-carrier-logo {
        max-width: 72px !important;
    }
}


/* v35 optical logo sizing - final override
   Goal: logos should feel equal visually, not mathematically equal by width/height.
   We keep one fixed logo slot, then tune only each brand inside it. */
.mopw-carrier-tabs,
.mopw-carrier-choice,
.mopw-carrier-count-2,
.mopw-carrier-count-3,
.mopw-carrier-count-4,
.mopw-carrier-count-5 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.mopw-carrier-count-1 {
    grid-template-columns: 1fr !important;
}

.mopw-carrier-tab,
.mopw-carrier-logo-card {
    min-height: 60px !important;
    padding: 9px 10px !important;
    gap: 8px !important;
    align-items: center !important;
    overflow: hidden !important;
}

.mopw-carrier-logo-holder {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 30px !important;
    max-height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
}

.mopw-carrier-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform-origin: left center !important;
    transform: none !important;
}

/* Optical desktop sizes. Only DPD is intentionally enlarged from the previous desktop size. */
.mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
    max-width: 98px !important;
    max-height: 24px !important;
}

.mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
    max-width: 50px !important;
    max-height: 25px !important;
}

.mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo {
    max-width: 74px !important;
    max-height: 19px !important;
}

.mopw-carrier-tab[data-carrier="unisend"] .mopw-carrier-logo {
    max-width: 75px !important;
    max-height: 19px !important;
}

.mopw-carrier-tab[data-carrier="venipak"] .mopw-carrier-logo {
    max-width: 74px !important;
    max-height: 19px !important;
}

.mopw-carrier-card-price {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    margin-left: 4px !important;
}

/* Selected provider row: one stable logo box, no provider-specific jumping. */
#mopw-selected-carrier-bar .mopw-selected-carrier-logo,
.mopw-selected-carrier-logo,
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="DPD"],
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="SmartPosti"],
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Unisend"],
#mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Venipak"] {
    flex: 0 0 64px !important;
    width: 64px !important;
    max-width: 64px !important;
    height: 28px !important;
    max-height: 28px !important;
    padding: 3px 4px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
}

@media (max-width: 640px) {
    .mopw-carrier-tabs,
    .mopw-carrier-choice,
    .mopw-carrier-count-2,
    .mopw-carrier-count-3,
    .mopw-carrier-count-4,
    .mopw-carrier-count-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .mopw-carrier-tab,
    .mopw-carrier-logo-card {
        min-height: 54px !important;
        padding: 8px 7px !important;
        gap: 5px !important;
    }

    .mopw-carrier-logo-holder {
        height: 25px !important;
        max-height: 25px !important;
    }

    /* Mobile returns to the pre-v34 balance instead of enlarging everything. */
    .mopw-carrier-tab[data-carrier="omniva"] .mopw-carrier-logo {
        max-width: 76px !important;
        max-height: 20px !important;
    }

    .mopw-carrier-tab[data-carrier="dpd"] .mopw-carrier-logo {
        max-width: 35px !important;
        max-height: 18px !important;
    }

    .mopw-carrier-tab[data-carrier="smartposti"] .mopw-carrier-logo,
    .mopw-carrier-tab[data-carrier="unisend"] .mopw-carrier-logo,
    .mopw-carrier-tab[data-carrier="venipak"] .mopw-carrier-logo {
        max-width: 58px !important;
        max-height: 17px !important;
    }

    #mopw-selected-carrier-bar .mopw-selected-carrier-logo,
    .mopw-selected-carrier-logo,
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="DPD"],
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="SmartPosti"],
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Unisend"],
    #mopw-selected-carrier-bar .mopw-selected-carrier-logo[alt^="Venipak"] {
        flex-basis: 46px !important;
        width: 46px !important;
        max-width: 46px !important;
        height: 24px !important;
        max-height: 24px !important;
        padding: 2px !important;
    }
}


/* v39 nearest parcel machines */
.mopw-picker-search-line {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

#mopw_terminal_search.mopw-terminal-search {
    flex: 1 1 auto;
    min-width: 0;
}

.mopw-nearest-button {
    flex: 0 0 auto;
    min-width: 92px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(44, 45, 50, 0.14);
    border-radius: 12px;
    background: #ffffff;
    color: #2c2d32;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(44, 45, 50, 0.06);
}

.mopw-nearest-button:hover,
.mopw-nearest-button:focus {
    border-color: var(--mopw-accent, #feac00);
    outline: none;
}

.mopw-geo-message {
    margin: 6px 0 0;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(44, 45, 50, 0.04);
    color: rgba(44, 45, 50, 0.76);
    font-size: 12px;
    line-height: 1.35;
}

.mopw-result-distance {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(254, 172, 0, 0.12);
    color: #2c2d32;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 520px) {
    .mopw-picker-search-line {
        gap: 6px;
    }

    .mopw-nearest-button {
        min-width: 76px;
        padding: 0 9px;
        font-size: 12px;
    }
}

/* v44 selected carrier bar border override */
.mopw-selected-carrier-bar {
    border-color: white !important;
}


/* v46 guest fallback: never collapse the selector to label-only. */
#mopw-terminal-wrap:not([style*="display: none"]) #mopw-carrier-tabs:not([hidden]) {
    display: grid !important;
}
/* v47: do not force the unselected picker button visible. The inline list is shown directly after carrier selection. */
#mopw-terminal-wrap:not([style*="display: none"]) #mopw-selected-carrier-bar:not([hidden]) {
    display: flex !important;
}


/* v47: hide the extra "choose parcel machine" trigger when no exact locker is selected. */
#mopw-terminal-wrap #mopw-picker-button:not(.has-selection) {
    display: none !important;
}

/* Local pickup option (v1.53) */
.mopw-delivery-type-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 0 0 12px;
}

.mopw-delivery-type-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    min-height: 54px;
    padding: 11px 13px;
    border: 1.5px solid rgba(44, 45, 50, 0.16);
    border-radius: 13px;
    background: #fff;
    color: #2c2d32;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(44, 45, 50, 0.06);
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, transform 140ms ease;
}

.mopw-delivery-type-card:hover,
.mopw-delivery-type-card:focus {
    outline: none;
    border-color: var(--mopw-checkout-accent, #feac00);
    box-shadow: 0 8px 20px rgba(254, 172, 0, 0.18);
}

.mopw-delivery-type-card:active {
    transform: scale(0.987);
}

.mopw-delivery-type-card.is-active {
    border-color: var(--mopw-checkout-accent, #feac00);
    background: color-mix(in srgb, var(--mopw-checkout-accent, #feac00) 12%, #ffffff);
    box-shadow: 0 0 0 3px rgba(254, 172, 0, 0.15), 0 7px 18px rgba(44, 45, 50, 0.06);
}

.mopw-delivery-type-card strong {
    min-width: 0;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 750;
}

.mopw-delivery-type-card small {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(44, 45, 50, 0.06);
    color: #5e665f;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.mopw-pickup-info {
    display: grid;
    gap: 5px;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(44, 45, 50, 0.11);
    border-radius: 13px;
    background: #fff;
    color: var(--mopw-checkout-text, #2c2d32);
}

.mopw-pickup-info[hidden],
.mopw-parcel-options[hidden] {
    display: none !important;
}

.mopw-pickup-info strong {
    font-size: 14px;
    line-height: 1.25;
    font-weight: 750;
}

.mopw-pickup-info span {
    color: #667068;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-line;
}

.mopw-parcel-options {
    width: 100%;
}

@media (max-width: 520px) {
    .mopw-delivery-type-choice {
        grid-template-columns: 1fr;
    }
}
