/* CustomProductBlock: pay-ship-grid responsive layout */
.pay-ship-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 2rem;
    color: gray;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    width: 100%;
    align-items: stretch;
}

.pay-ship-grid > div {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    gap: 0.6rem;
    min-width: 0; /* allow proper text wrapping in grid cells */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Livechat container */
.livechat-container {
    text-align: center;
}

/* Custom block container styling */
.product-info-main .custom_product_block .custom-block {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 1.6rem;
    margin-top: 3rem;
    text-align: left;
}

.custom_product_block .pay-ship-grid .col-shipment,
.custom_product_block .pay-ship-grid .col-payment,
.custom_product_block .pay-ship-grid .col-invoice {
    font-size: 1.4rem;
}

/* Style linków aby wyglądały jak zwykły tekst */
.custom_product_block .pay-ship-grid .col-shipment a,
.custom_product_block .pay-ship-grid .col-payment a,
.custom_product_block .pay-ship-grid .col-invoice a {
    color: inherit;
    text-decoration: none;
}

.custom_product_block .pay-ship-grid .col-shipment a:hover,
.custom_product_block .pay-ship-grid .col-payment a:hover,
.custom_product_block .pay-ship-grid .col-invoice a:hover {
    color: #333333;
    text-decoration: none;
}

.custom_product_block .pay-ship-grid .col-shipment::before,
.custom_product_block .pay-ship-grid .col-payment::before,
.custom_product_block .pay-ship-grid .col-invoice::before {
    display: inline-block;
    font-family: 'Font Awesome 6 Pro', 'Font Awesome 5 Pro', 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'Font Awesome';
    font-style: normal;
    font-weight: 900;
    font-size: 1.6rem;
    margin-right: 0.6rem;
    line-height: 1;
    vertical-align: middle;
}

.custom_product_block .pay-ship-grid .col-shipment::before {
    content: "\f0d1"; /* fa-truck */
    color: #D67D3E;
}

.custom_product_block .pay-ship-grid .col-payment::before {
    content: "\f09d"; /* fa-credit-card */
    color: #5B8AB8;
}

.custom_product_block .pay-ship-grid .col-invoice::before {
    content: "\f3b3"; /* fa-building */
    color: #6BA388;
}

/* Drugi wiersz: "Norsk bedrift" - wyrównanie do środka */
.custom_product_block .pay-ship > p {
    text-align: center;
}

/* Trzeci wiersz: Livechat */
.custom_product_block .livechat-container .livechat_button {
    font-size: 1.6rem;
}

.custom_product_block .livechat-container .livechat_button::before {
    display: none;
}

/* Desktop ≥1024px: left aligned text with icons */
@media only screen and (min-width: 1024px) {
    .pay-ship-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pay-ship-grid > div {
        text-align: left;
        justify-content: flex-start;
    }
}

/* Mobile/Tablet <1024px: single column, centered, icons hidden */
@media only screen and (max-width: 1023px) {
    .pay-ship-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        text-align: center;
    }

    .pay-ship-grid > div {
        justify-content: center;
        text-align: center;
    }

    .custom_product_block .pay-ship-grid .col-shipment::before,
    .custom_product_block .pay-ship-grid .col-payment::before,
    .custom_product_block .pay-ship-grid .col-invoice::before {
        display: none !important;
    }
}
