/* Okno po dodaniu produktu - kolory marki zamiast niebieskiego. */
.pk-product-bundle-popup__backdrop,
.xboats-related-popup__backdrop {
    background: rgba(31, 42, 25, .58) !important;
}

.pk-product-bundle-popup__footer .button,
.xboats-related-popup__footer .button {
    border-color: #526b3f !important;
    background: #526b3f !important;
    color: #fff !important;
    box-shadow: none !important;
}

.pk-product-bundle-popup__footer .button:hover,
.pk-product-bundle-popup__footer .button:focus,
.xboats-related-popup__footer .button:hover,
.xboats-related-popup__footer .button:focus {
    border-color: #435833 !important;
    background: #435833 !important;
    color: #fff !important;
}

/* PayU - zwarta, czytelna siatka zamiast długiej pionowej listy. */
.woocommerce-checkout .payu-list-banks {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 12px 0 16px !important;
    padding: 0 !important;
}

.woocommerce-checkout .payu-list-banks .payu-bank {
    display: flex !important;
    width: auto !important;
    min-width: 0;
    height: 72px !important;
    margin: 0 !important;
    padding: 8px !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #e3ddd4;
    border-radius: 13px;
    background: #fff;
    list-style: none;
}

.woocommerce-checkout .payu-list-banks .payu-bank label,
.woocommerce-checkout .payu-list-banks .payu-bank label > div {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.woocommerce-checkout .payu-list-banks .payu-bank img {
    width: auto;
    max-width: 96px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.woocommerce-checkout .payu-list-banks .payu-bank:has(input:checked),
.woocommerce-checkout .payu-list-banks .payu-bank.payu-active,
body.woocommerce-checkout #payment .payu-list-banks .payu-bank.payu-active {
    border-color: #526b3f !important;
    background: #f1f5ed !important;
    box-shadow: 0 0 0 2px rgba(82, 107, 63, .22) !important;
}

.woocommerce-checkout .pk-locker-hidden {
    display: none !important;
}

/* Strona podziękowania - jeden równy rząd informacji na komputerze. */
.woocommerce-order-received .woocommerce-order-overview {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    margin: 24px 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #e3ddd4;
    border-radius: 16px;
    background: #fff;
}

.woocommerce-order-received .woocommerce-order-overview li {
    display: block !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 18px !important;
    border: 0 !important;
    border-right: 1px solid #e3ddd4 !important;
    line-height: 1.35;
    float: none !important;
    clear: none !important;
    grid-column: auto !important;
    grid-row: auto !important;
    max-width: none !important;
    flex: none !important;
}

.woocommerce-order-received .woocommerce-order-overview li.woocommerce-order-overview__payment-method {
    grid-column: 4 !important;
    grid-row: 1 !important;
}

.woocommerce-order-received .woocommerce-order-overview li:last-child {
    border-right: 0 !important;
}

@media (max-width: 767px) {
    .woocommerce-checkout .payu-list-banks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .woocommerce-checkout .payu-list-banks .payu-bank {
        height: 66px !important;
    }

    .woocommerce-order-received .woocommerce-order-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .woocommerce-order-received .woocommerce-order-overview li:nth-child(2n) {
        border-right: 0 !important;
    }

    .woocommerce-order-received .woocommerce-order-overview li:nth-child(-n+2) {
        border-bottom: 1px solid #e3ddd4 !important;
    }
}

@media (max-width: 380px) {
    .woocommerce-order-received .woocommerce-order-overview {
        grid-template-columns: 1fr;
    }

    .woocommerce-order-received .woocommerce-order-overview li {
        border-right: 0 !important;
        border-bottom: 1px solid #e3ddd4 !important;
    }

    .woocommerce-order-received .woocommerce-order-overview li:last-child {
        border-bottom: 0 !important;
    }
}
