/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/


/* ============================================
   ĎAKOVNÁ STRÁNKA — INŠTRUKCIE PRE PLATBU
   ============================================ */

/* Inštrukčné odstavce → súdržný info box (bez medzier medzi p) */
.woocommerce-order > p:not([class]) {
    background: #FAF5F0;
    border-left: 4px solid #976F55;
    border-radius: 0;
    padding: 4px 22px 4px 56px;
    margin: 0 !important;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    position: relative;
}

.woocommerce-order > p:not([class]) strong {
    color: #976F55;
    font-weight: 600;
}

/* Prvý odstavec — zaobli hore + info ikonka + horný padding */
.woocommerce-order > ul.woocommerce-order-overview + p {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding-top: 20px;
    margin-top: 2rem !important;
}

.woocommerce-order > ul.woocommerce-order-overview + p::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 22px;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23976F55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='16' x2='12' y2='12'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>") center/contain no-repeat;
}

/* Posledný odstavec (pred bankovými údajmi) — zaobli dole */
.woocommerce-order > p:has(+ section.woocommerce-bacs-bank-details) {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding-bottom: 20px;
    margin-bottom: 1.5rem !important;
}

/* ============================================
   BANKOVÉ ÚDAJE — INFO KARTA
   ============================================ */

section.woocommerce-bacs-bank-details {
    background: #fff;
    border: 2px solid #976F55;
    border-radius: 12px;
    padding: 24px;
    margin: 0 0 2.5rem;
    box-shadow: 0 4px 12px rgba(151, 111, 85, 0.08);
}

.wc-bacs-bank-details-heading {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 4px 0 !important;
    color: #2C2C2A !important;
    padding-left: 34px;
    position: relative;
}

.wc-bacs-bank-details-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23976F55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='3' y1='21' x2='21' y2='21'/><line x1='3' y1='10' x2='21' y2='10'/><polyline points='5 6 12 3 19 6'/><line x1='4' y1='10' x2='4' y2='21'/><line x1='20' y1='10' x2='20' y2='21'/></svg>") center/contain no-repeat;
}

.wc-bacs-bank-details-account-name {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #888 !important;
    margin: 0 0 18px 0 !important;
}

/* Grid s troma "kartičkami" */
ul.wc-bacs-bank-details {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 12px;
}

ul.wc-bacs-bank-details li {
    background: #FAF5F0;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    list-style: none;
    margin: 0;
}

ul.wc-bacs-bank-details li::before,
ul.wc-bacs-bank-details li::marker {
    display: none !important;
    content: none !important;
}

ul.wc-bacs-bank-details li strong {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    color: #2C2C2A;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    word-break: break-word;
    line-height: 1.4;
}

/* IBAN — monospace pre lepšiu čitateľnosť čísiel */
ul.wc-bacs-bank-details li.iban strong {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 14px;
}

/* === VARIABILNÝ SYMBOL — najdôležitejší prvok === */
ul.wc-bacs-bank-details li.bic {
    background: #976F55;
    color: rgba(255, 255, 255, 0.85);
}

ul.wc-bacs-bank-details li.bic strong {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 600px) {
    ul.wc-bacs-bank-details {
        grid-template-columns: 1fr;
    }
    
    ul.wc-bacs-bank-details li.bic strong {
        font-size: 24px;
    }
    
    .woocommerce-order > p:not([class]) {
        padding-left: 50px;
    }
}