html.dostawa_i_platnosc #delivery-inpost-plugin,
html.dostawa_i_platnosc #delivery-inpost-plugin * {
    box-sizing: border-box !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin {
    color: #FFF !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    position: relative !important;
    z-index: 1 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin h1,
html.dostawa_i_platnosc #delivery-inpost-plugin h2,
html.dostawa_i_platnosc #delivery-inpost-plugin h3,
html.dostawa_i_platnosc #delivery-inpost-plugin h4,
html.dostawa_i_platnosc #delivery-inpost-plugin h5,
html.dostawa_i_platnosc #delivery-inpost-plugin h6,
html.dostawa_i_platnosc #delivery-inpost-plugin p,
html.dostawa_i_platnosc #delivery-inpost-plugin a,
html.dostawa_i_platnosc #delivery-inpost-plugin span,
html.dostawa_i_platnosc #delivery-inpost-plugin div,
html.dostawa_i_platnosc #delivery-inpost-plugin li,
html.dostawa_i_platnosc #delivery-inpost-plugin label,
html.dostawa_i_platnosc #delivery-inpost-plugin input,
html.dostawa_i_platnosc #delivery-inpost-plugin button {
    color: inherit !important;
    font-family: var(--inter) !important;
    line-height: inherit !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin h4 {
    margin: 0 0 16px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #B2965C !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin #easypack-map {
    border: 1px solid #d1d5db !important;
    overflow: hidden !important;
    background: #ffffff !important;
    position: relative !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .search-widget {
    display: flex !important;
    align-items: center !important;
    padding: 16px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    position: relative !important;
    z-index: 999 !important;
    min-height: 88px !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .search-group {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    position: relative !important;
    top: 0 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .search-input {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #d1d5db !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 14px !important;
    line-height: 44px !important;
    box-shadow: none !important;
    position: relative !important;
    top: 0 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .search-input::placeholder {
    color: #6b7280 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .search-group-btn {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    top: 0 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .btn-search {
    display: block !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d1d5db !important;
    background-color: #f9fafb !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 18px !important;
    cursor: pointer !important;
    position: relative !important;
    top: 0 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .map-list-row {
    display: flex !important;
    min-height: 520px !important;
    position: relative !important;
    z-index: 1 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .map-list-flex {
    display: flex !important;
    width: 100% !important;
    min-height: 520px !important;
    align-items: stretch !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .map-widget {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 520px !important;
    position: relative !important;
    z-index: 1 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .leaflet-container {
    z-index: 1 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .search-widget {
    position: relative !important;
    z-index: 1000 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .map-list-row {
    position: relative !important;
    z-index: 1 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .map-widget {
    position: relative !important;
    z-index: 1 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .leaflet-container {
    position: relative !important;
    z-index: 1 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .list-widget {
    width: 360px !important;
    min-width: 360px !important;
    background: #ffffff !important;
    border-left: 1px solid #e5e7eb !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin #point-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin #point-list li {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .list-point-link {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
    padding: 14px 16px !important;
    text-decoration: none !important;
    color: #111827 !important;
    background: #ffffff !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .list-point-link:hover {
    background: #f9fafb !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .image-wrapper {
    flex: 0 0 28px !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .image-wrapper img {
    display: block !important;
    width: 28px !important;
    height: auto !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .data-wrapper .title,
html.dostawa_i_platnosc #delivery-inpost-plugin .data-wrapper .title b {
    color: #111827 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .data-wrapper .address {
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #6b7280 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .leaflet-popup-content-wrapper {
    padding: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
    background: #1f2937 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .leaflet-popup-content,
html.dostawa_i_platnosc #delivery-inpost-plugin .popup-container {
    margin: 0 !important;
    padding: 16px !important;
    color: #ffffff !important;
    background: #1f2937 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .popup-container h1,
html.dostawa_i_platnosc #delivery-inpost-plugin .popup-container p,
html.dostawa_i_platnosc #delivery-inpost-plugin .popup-container a {
    color: #ffffff !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .popup-container .address {
    color: #d1d5db !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .popup-container .links {
    display: flex !important;
    gap: 8px !important;
    margin-top: 14px !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .popup-container .details-link,
html.dostawa_i_platnosc #delivery-inpost-plugin .popup-container .select-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .popup-container .details-link {
    background: rgba(255, 255, 255, 0.12) !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .popup-container .select-link {
    background: #facc15 !important;
    color: #111827 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .leaflet-popup-tip,
html.dostawa_i_platnosc #delivery-inpost-plugin .leaflet-popup-close-button {
    background: #1f2937 !important;
    color: #ffffff !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .view-chooser {
    display: flex !important;
    border-top: 1px solid #e5e7eb !important;
    background: #ffffff !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .view-chooser .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    background: #ffffff !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .validationMessage {
    margin-top: 12px !important;
    font-size: 14px !important;
    color: #dc2626 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .leaflet-popup-content p:empty {
    display: none !important;
}

html.dostawa_i_platnosc div.point-wrapper h1 {
    font-size: 28px !important;
}

html.dostawa_i_platnosc div.details-content div.point-box h1 {
    font-size: 20px!important;
}

html.dostawa_i_platnosc div.details-content div.description-photo,
html.dostawa_i_platnosc div.details-content div.description,
html.dostawa_i_platnosc div.details-content div.close-button {
    background: #ffffff !important;
}

html.dostawa_i_platnosc div.point-wrapper p.address {
    font-size: 14px!important;
}

@media screen and (max-width: 767px) {
    html.dostawa_i_platnosc div.point-wrapper h1 {
        font-size: 16px !important;
    }
}

/* === DOSTAWA I PŁATNOŚĆ – układ kroku ===
   Tylko /Order/DeliveryAndPayment, wszystko pod html.dostawa_i_platnosc #delivery-and-payment.
   Kafelki (.lz-opts) i ramkę „Twoje zamówienie” (.lz-sum) wstawia skrypt z panelu (widget lz-checkout);
   bez skryptu zostają zwykłe listy rozwijane, tylko ciemne. */

html.dostawa_i_platnosc #delivery-and-payment {
    --kz-gold: #B2965C;
    --kz-gold-hi: #e2c98f;
    --kz-text: #f2efe9;
    --kz-muted: #a9a49a;
    --kz-field: #242424;
    --kz-warn: #f0a868;
    color: var(--kz-text);
}

/* kolejność: dostawa → paczkomat → płatność (w HTML paczkomat jest po płatności) */
html.dostawa_i_platnosc #deliveryAndPaymentForm {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 40px;
    align-items: start;
}

html.dostawa_i_platnosc #deliveryAndPaymentForm.lz-has-sum {
    grid-template-columns: minmax(0, 1fr) 320px;
}

html.dostawa_i_platnosc #deliveryAndPaymentForm .checkout-deliveries {
    display: contents;
}

html.dostawa_i_platnosc #deliveryAndPaymentForm .checkout-deliveries::before,
html.dostawa_i_platnosc #deliveryAndPaymentForm .checkout-deliveries::after {
    content: none; /* clearfix z Vendero zajmuje komórki siatki */
}

html.dostawa_i_platnosc #deliveryAndPaymentForm .checkout-deliveries > .form-group {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    width: auto;
    margin: 0;
    padding: 0 0 20px;
}

html.dostawa_i_platnosc #deliveryAndPaymentForm .checkout-deliveries > .form-group + .form-group {
    grid-row: 3;
}

html.dostawa_i_platnosc #deliveryAndPaymentForm > #delivery-inpost-plugin {
    grid-column: 1;
    grid-row: 2;
}

html.dostawa_i_platnosc #deliveryAndPaymentForm > .lz-sum {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 38px;
}

html.dostawa_i_platnosc #deliveryAndPaymentForm > .basket-area-footer {
    grid-column: 1 / -1;
    grid-row: 4;
}

/* nagłówki sekcji */
html.dostawa_i_platnosc #deliveryAndPaymentForm .checkout-deliveries > .form-group > label {
    display: block;
    width: auto;
    margin: 0 0 14px;
    font-family: var(--playFair);
    font-size: 22px;
    font-weight: 600;
    color: var(--kz-text);
}

/* listy rozwijane: widoczne tylko, gdy skrypt nie zamienił ich na kafelki */
html.dostawa_i_platnosc #deliveryAndPaymentForm select.form-control {
    width: 100%;
    max-width: 480px;
    height: 48px;
    padding: 0 12px;
    font-family: var(--inter);
    font-size: 16px;
    color: var(--kz-text);
    background-color: var(--kz-field);
    border: 1px solid rgba(201, 169, 110, .3);
    border-radius: 4px;
    box-shadow: none;
}

html.dostawa_i_platnosc #deliveryAndPaymentForm .lz-optgroup select.form-control {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

html.dostawa_i_platnosc #deliveryAndPaymentForm .form-group .validationMessage,
html.dostawa_i_platnosc #delivery-inpost-plugin .validationMessage {
    margin: 8px 0 0 !important; /* reguła dla #delivery-inpost-plugin wyżej ma !important */
    padding: 0;
    font-family: var(--inter);
    font-size: 14px !important;
    color: var(--kz-warn) !important;
    background: none;
}

/* kafelki */
html.dostawa_i_platnosc .lz-opts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    font-family: var(--inter);
}

html.dostawa_i_platnosc #deliveryAndPaymentForm .lz-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    min-height: 58px;
    margin: 0;
    padding: 14px 16px;
    font-family: var(--inter);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--kz-text);
    background: #212121;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

html.dostawa_i_platnosc #deliveryAndPaymentForm .lz-opt:hover {
    border-color: rgba(178, 150, 92, .6);
}

html.dostawa_i_platnosc #deliveryAndPaymentForm .lz-opt.is-checked {
    background: #231f17;
    border-color: var(--kz-gold);
    box-shadow: inset 0 0 0 1px var(--kz-gold);
}

html.dostawa_i_platnosc #deliveryAndPaymentForm .lz-opt.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}

html.dostawa_i_platnosc #deliveryAndPaymentForm .lz-opt input[type="radio"] {
    position: static;
    float: none;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--kz-gold);
    cursor: inherit;
}

html.dostawa_i_platnosc .lz-opt__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

html.dostawa_i_platnosc .lz-opt__name {
    font-weight: 600;
}

html.dostawa_i_platnosc .lz-opt__sub {
    font-size: 13px;
    color: var(--kz-muted);
}

html.dostawa_i_platnosc .lz-opt__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    font-size: 12px;
}

html.dostawa_i_platnosc .lz-opt__chip {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 9px;
    color: #d8d2c4;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 4px;
}

html.dostawa_i_platnosc .lz-opt__chip--main {
    font-weight: 700;
    letter-spacing: .04em;
    color: #1a1a1a;
    background: #f2efe9;
    border-color: #f2efe9;
}

html.dostawa_i_platnosc .lz-opt__price {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

html.dostawa_i_platnosc .lz-opt__price--free {
    color: var(--kz-gold-hi);
}

/* wybór paczkomatu jako karta pod kafelkami dostawy */
html.dostawa_i_platnosc #deliveryAndPaymentForm > #delivery-inpost-plugin:has(> h4) {
    margin: 0 0 24px;
    padding: 18px;
    background: #1e1e1e;
    border: 1px solid rgba(201, 169, 110, .15);
    border-radius: 6px;
}

html.dostawa_i_platnosc #delivery-inpost-plugin #easypack-map {
    border-color: var(--kz-gold) !important; /* reguła wyżej ma !important */
    border-radius: 4px;
}

/* reguła wyżej daje wszystkim linkom w mapie kolor tekstu strony – przez to + i − były białe na białym */
html.dostawa_i_platnosc #delivery-inpost-plugin .leaflet-bar a {
    color: #111827 !important;
}

/* Wstecz / Dalej – jak na kroku „Dane zamówienia” */
html.dostawa_i_platnosc #delivery-and-payment .basket-area-footer {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .25);
}

html.dostawa_i_platnosc #delivery-and-payment .basket-area-footer::before,
html.dostawa_i_platnosc #delivery-and-payment .basket-area-footer::after {
    content: none;
}

/* ZamowieniaWspolne124 ustawia tym przyciskom tło, kolor i padding z !important */
html.dostawa_i_platnosc #delivery-and-payment .basket-area-footer .btn-checkout {
    float: none;
    width: auto;
    min-height: 48px;
    margin: 0;
    padding: 14px 36px;
    font-family: var(--inter);
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: .1em;
    color: #1a1a1a !important;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

html.dostawa_i_platnosc #delivery-and-payment .basket-area-footer .btn-return {
    float: none;
    width: auto;
    min-height: 44px;
    margin: 0;
    font-family: var(--inter);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    border-bottom: 0 !important;
    text-decoration: underline;
    text-decoration-color: var(--kz-gold);
    text-underline-offset: 6px;
    cursor: pointer;
}

html.dostawa_i_platnosc #delivery-and-payment button:focus-visible,
html.dostawa_i_platnosc #deliveryAndPaymentForm .lz-opt:has(input:focus-visible) {
    outline: 2px solid var(--kz-gold-hi);
    outline-offset: 3px;
}

@media (max-width: 991px) {
    html.dostawa_i_platnosc #deliveryAndPaymentForm.lz-has-sum {
        grid-template-columns: minmax(0, 1fr);
    }

    html.dostawa_i_platnosc #deliveryAndPaymentForm > .lz-sum {
        grid-column: 1;
        grid-row: 4;
        margin-top: 4px;
    }

    html.dostawa_i_platnosc #deliveryAndPaymentForm > .basket-area-footer {
        grid-row: 5;
    }
}

@media (max-width: 640px) {
    html.dostawa_i_platnosc .lz-opts {
        grid-template-columns: minmax(0, 1fr);
    }

    html.dostawa_i_platnosc #deliveryAndPaymentForm > #delivery-inpost-plugin:has(> h4) {
        padding: 12px;
    }
}

/* wybrany paczkomat: po wyborze skrypt z panelu chowa mapę i pokazuje tę kartę (.lz-point) z przyciskiem „Zmień”.
   Kolory z !important, bo reguła na górze pliku wymusza w #delivery-inpost-plugin kolor i font z !important. */
html.dostawa_i_platnosc #delivery-inpost-plugin .lz-point {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #1a231d;
    border: 1px solid rgba(178, 150, 92, .55);
    border-radius: 6px;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .lz-point[hidden] {
    display: none;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .lz-point__icon {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    height: 30px;
    color: #1a1a1a !important;
    background: linear-gradient(135deg, #e2c98f, #b8955a);
    border-radius: 50%;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .lz-point__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .lz-point__label {
    font-size: 12px;
    color: #a9a49a !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .lz-point__name {
    font-size: 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .lz-point__addr {
    font-size: 13px;
    color: #d8d2c4 !important;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .lz-point__change {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #e2c98f !important;
    background: transparent;
    border: 1px solid #B2965C;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

html.dostawa_i_platnosc #delivery-inpost-plugin .lz-point__change:hover {
    color: #1a1a1a !important;
    background: #B2965C;
}

/* linijka „Wybrany paczkomat: …” z Vendero – zastępuje ją karta */
html.dostawa_i_platnosc #delivery-inpost-plugin.lz-has-point > h4 + div {
    display: none;
}

html.dostawa_i_platnosc #delivery-inpost-plugin.lz-has-point .lz-point {
    margin-bottom: 16px;
}

/* mapa schowana: zostaje sama karta, bez ramki i nagłówka „Wybierz paczkomat” */
html.dostawa_i_platnosc #deliveryAndPaymentForm > #delivery-inpost-plugin.lz-point-collapsed:has(> h4) {
    padding: 0;
    background: none;
    border: 0;
}

html.dostawa_i_platnosc #delivery-inpost-plugin.lz-point-collapsed > h4 {
    display: none;
}

html.dostawa_i_platnosc #delivery-inpost-plugin.lz-point-collapsed .lz-point {
    margin-bottom: 0;
}
