/* 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;
    color: #5d6670; /* steel text, 5.5:1 on #f9f9f9 (gray #808080 was 3.7:1) */
}

/* 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;
}

/* Icons: one steel colour in a light round badge on every screen
   (owner 2026-11-09, variant C, also on desktop) */
.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-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-sizing: border-box;
    width: 2.8rem;
    height: 2.8rem;
    margin: 0;
    border-radius: 50%;
    background: #eceef1;
    color: #6b7684;
    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.3rem;
    line-height: 1;
}

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

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

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

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

/* "Norsk bedrift" row with the vector heart flag (config markup p.np-norsk > span.np-heart > img) */
.custom_product_block .pay-ship > p.np-norsk {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #5d6670;
}

.custom_product_block .pay-ship > p.np-norsk .np-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: #eceef1;
}

.custom_product_block .pay-ship > p.np-norsk .np-heart img {
    display: block;
    width: 18px;
    height: 17px;
    margin: 0;
}

/* Short wording of the "Norsk bedrift" row on small screens (owner 2026-11-12: one line on a phone) */
.custom_product_block .pay-ship > p.np-norsk .np-norsk-short {
    display: none;
}

/* 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: three columns, badge and text side by side */
@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: one tidy list aligned left, badge and text in each row */
@media only screen and (max-width: 1023px) {
    .pay-ship-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }

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

    .custom_product_block .pay-ship > p.np-norsk {
        justify-content: flex-start;
        text-align: left;
    }
}

@media only screen and (max-width: 1023px) {
    .custom_product_block .pay-ship > p.np-norsk .np-norsk-full {
        display: none;
    }

    .custom_product_block .pay-ship > p.np-norsk .np-norsk-short {
        display: inline;
    }
}
