/* Shipping Minimum Pro v2.4.0 */

/* ════════════════════════════════════════════════════════════════════
   CART BAR OUTER — rendered via PHP before cart content
   Position: in the content flow, before the cart block
   ════════════════════════════════════════════════════════════════════ */
#smp-cart-bar-outer {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 14px;
}

/* ── Bar wrapper ─────────────────────────────────────────────────── */
#smp-bar-wrap {
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ── Notice card ─────────────────────────────────────────────────── */
.smp-notice {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    border-left-style: solid;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    box-sizing: border-box;
    width: 100% !important;
    font-family: inherit;
}

/* ── Header: klasse naam + status + bedragen op 1 regel ──────────── */
.smp-notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.smp-notice-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #1a1a2e;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}
.smp-title-icon { flex-shrink: 0; font-size: 14px; line-height: 1; }
.smp-title-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0; margin-top: 1px;
}
.smp-class-name { font-weight: 700; font-size: 14px; }
.smp-status-text { font-size: 13px; font-weight: 400; color: #666; white-space: nowrap; }
.smp-status-text.smp-status-met { color: #27ae60; }
.smp-status-text strong { font-weight: 700; color: #222; }

/* Bedragen rechts */
.smp-amounts-inline {
    display: flex; align-items: baseline; gap: 3px;
    flex-shrink: 0; white-space: nowrap;
}
.smp-cur  { font-size: 18px; font-weight: 700; color: #111; line-height: 1; }
.smp-sep  { font-size: 13px; color: #ccc; font-weight: 400; }
.smp-min  { font-size: 15px; font-weight: 600; line-height: 1; color: #888; }

/* ── Progress bar ────────────────────────────────────────────────── */
.smp-progress-track {
    background: #edf2f7;
    border-radius: 50px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    width: 100% !important;
}
.smp-progress-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    min-width: 3px;
    /* width en background worden via inline style + JS gezet */
}

/* ── Knoppen ─────────────────────────────────────────────────────── */
.smp-notice-actions { margin-top: 4px; }
.smp-btn {
    display: inline-flex; align-items: center;
    padding: 6px 14px; border-radius: 6px;
    font-size: 12px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: opacity .15s; box-sizing: border-box;
    white-space: nowrap; color: #fff;
    border: 1px solid transparent;
}
.smp-btn:hover { opacity: .85; text-decoration: none; color: #fff; }

/* ── Suggesties ──────────────────────────────────────────────────── */
#smp-suggestions-wrap { width: 100% !important; box-sizing: border-box !important; }
.smp-suggestions { margin: 0 0 14px; width: 100% !important; }
.smp-suggestions-title { font-size: 13px; font-weight: 600; color: #444; margin: 0 0 8px; }
.smp-suggestions-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.smp-card {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 8px; padding: 8px 10px;
    box-sizing: border-box; flex: 1 1 260px; min-width: 0; max-width: 100%;
}
.smp-card-img { display: block; position: relative; flex-shrink: 0; border-radius: 6px; overflow: hidden; text-decoration: none; }
.smp-card-img img { display: block; object-fit: cover; border-radius: 6px; }
.smp-card-badge { position: absolute; top: 3px; left: 3px; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 4px; border-radius: 3px; }
.smp-card-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.smp-card-name { font-size: 13px; font-weight: 600; color: #222; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.smp-card-name:hover { text-decoration: underline; }
.smp-card-price { font-size: 13px; font-weight: 700; color: #111; }
.smp-btn-add { padding: 6px 10px; font-size: 12px; flex-shrink: 0; border-radius: 6px; color: #fff; }

/* ── Checkout note ───────────────────────────────────────────────── */
.smp-checkout-note { font-size: 12px; color: #888; text-align: center; margin: 8px 0 0; }

/* ── Product label (productpagina/shop) ──────────────────────────── */
.smp-product-label { display: inline-block; font-size: 15px; color: #555; background: #f4f4f4; border-radius: 4px; padding: 2px 8px; margin: 3px 0 5px; }

/* ── Cart product badge ──────────────────────────────────────────── */
.smp-cart-label {
    display: inline-block;
    font-size: 11px; font-weight: 600;
    color: #5a6475; background: #f0f4ff;
    border: 1px solid #dce4f5; border-radius: 4px;
    padding: 2px 7px; margin-top: 3px; letter-spacing: 0.3px;
}

/* ── Cart klasse sectiekoppen ────────────────────────────────────── */
.smp-class-header { width: 100%; padding: 8px 0 5px; }
.smp-class-header-label {
    display: inline-block; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: #6b7280; border-bottom: 2px solid #e5e7eb; padding-bottom: 3px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 500px) {
    .smp-notice-header { flex-wrap: wrap; }
    .smp-cur { font-size: 16px; }
    .smp-card { flex: 1 1 100%; }
}

/* ════════════════════════════════════════════════════════════════════
   SHOP / PRODUCT PAGINA BALK
   ════════════════════════════════════════════════════════════════════ */
/* Shop bar — geïnjecteerd na .col-full-nav (onder nav) */
#smp-float-bar {
    width: 100%; box-sizing: border-box;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    position: sticky; top: 0; z-index: 9000;
}
.smp-float-inner { max-width: 1200px; margin: 0 auto; padding: 14px 20px 0; box-sizing: border-box; }
#smp-float-bar .smp-notice { background: transparent; border: none; border-left: none; border-radius: 0; padding: 0 0 10px; box-shadow: none; width: 100%; }
#smp-float-bar .smp-bar-wrap { gap: 0 !important; }
#smp-float-bar .smp-notice:last-child { padding-bottom: 20px !important; }
#smp-float-bar .smp-notice-header { margin-bottom: 4px; }
#smp-float-bar .smp-progress-track { margin-bottom: 0; }

/* ── Product pagina: blokken stijl (zelfde als cart) ─────────────── */
body.single-product #smp-float-bar {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    position: static;
}
body.single-product .smp-float-inner { padding: 14px 0 0; }
body.single-product #smp-float-bar .smp-notice {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    border-left-style: solid;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    margin-bottom: 10px;
}
body.single-product #smp-float-bar .smp-bar-wrap { gap: 0 !important; }
body.single-product #smp-float-bar .smp-notice:last-child { margin-bottom: 20px; }
body.single-product #smp-float-bar .smp-notice-header { margin-bottom: 6px; }
body.single-product #smp-float-bar .smp-progress-track { margin-bottom: 0; }
.smp-float-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 16px; color: #aaa; cursor: pointer; line-height: 1; padding: 4px; }
.smp-float-close:hover { color: #555; }
/* ── Verberg WC block store notice na cart validatie ─────────── */
.wc-block-store-notice.wc-block-components-notice-banner.is-error { display: none !important; }

@media (max-width: 600px) { .smp-float-inner { padding: 8px 14px 6px; } }

/* ── Cart block melding (na doorgaan klik) ───────────────────────── */
#smp-cart-block-notice {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #92400e;
}
.smp-cart-notice-text { display: block; margin-bottom: 6px; font-weight: 500; }
.smp-cart-notice-why-wrap { margin-top: 4px; }
.smp-cart-why-btn { font-size: 12px; padding: 3px 10px; }
.smp-cart-notice-why-wrap .smp-why-content { margin-top: 8px; font-size: 12px; color: #78350f; }
.smp-cart-notice-why-wrap .smp-why-content strong { display: block; margin-bottom: 4px; }

/* ── "Waarom?" knop (outline, niet opvallend) ────────────────────── */
.smp-btn-why {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    transition: border-color .15s, color .15s;
    white-space: nowrap;
}
.smp-btn-why:hover { border-color: #9ca3af; color: #374151; }

/* ── "Waarom?" uitklap panel in de notice ────────────────────────── */
.smp-why-panel {
    margin-top: 8px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}
.smp-why-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #111;
}
.smp-why-body { margin: 0; }

/* ════════════════════════════════════════════════════════════════════
   SUBTIELE MELDING — onder "Doorgaan naar afrekenen" / bestelknop
   ════════════════════════════════════════════════════════════════════ */
.smp-cart-notice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding: 7px 10px;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #78350f;
}
.smp-cart-notice-text { flex: 1 1 auto; }
.smp-cart-notice-why-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: none;
    border: 1px solid #d97706;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: #92400e;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
    transition: background .15s;
}
.smp-cart-notice-why-btn:hover { background: #fef3c7; }
.smp-cart-notice-why-btn[aria-expanded="true"] { background: #fef3c7; }
.smp-cart-notice-panel {
    width: 100%;
    flex-basis: 100%;
    margin-top: 6px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.6;
    color: #374151;
}

/* ── Verzendkosten in de progressiebalk (subtiele regel) ──────────── */
.smp-shipping-in-bar {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    padding: 0 1px;
    line-height: 1.3;
}

/* ── Verzendkosten in de notice ──────────────────────────────────── */
.smp-shipping-cost {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    align-self: flex-end;
    margin-left: 4px;
}

/* ── Verzendlocatie label onder productnaam in cart ─────────────── */
.smp-cart-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6b7280;
    margin-top: 3px;
    line-height: 1.3;
    width: fit-content;
    max-width: 100%;
}
.smp-cart-label-icon { font-size: 12px; flex-shrink: 0; }
.smp-cart-label-text { font-weight: 500; }
