/* Winkelwagenpagina in vloerenmarkt-stijl. Maten en kleuren zijn 1:1 gemeten
   op vloerenmarkt.nl/cart (computed styles, sessie-12l). */

body.woocommerce-cart .vg-content > .vg-article > h1 { display: none; }
body.woocommerce-cart .vg-content { max-width: 1500px; padding-top: 10px; }
body.woocommerce-cart .vg-article__body { max-width: none; }
body.woocommerce-cart { background: #f7f8fa; }

.vs-cartpage { padding: 8px 0 48px; }
.vs-cartpage__title { font-size: 28px; font-weight: 700; color: #14231A; margin: 18px 0 22px; }
.vs-cartpage__count { color: #6b7280; font-weight: 400; }

.vs-cartpage__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(min(360px, 100%), 1fr); gap: 28px; align-items: start; }
/* minmax(0, 1fr) en niet 1fr: een grid-kind mag standaard niet kleiner worden
   dan zijn inhoud, en daardoor liep de winkelwagen op een telefoon 26px
   buiten beeld. */
@media (max-width: 980px) {
    .vs-cartpage__grid { grid-template-columns: minmax(0, 1fr); }
    .vs-cartpage__main, .vs-cartpage__side { min-width: 0; }
}

/* ---- Item-kaarten ---- */
.vs-cpi { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; margin-bottom: 12px; overflow: hidden; }
.vs-cpi__row { display: flex; align-items: stretch; min-width: 0; }
.vs-cpi__media { flex: 0 0 130px; align-self: center; }
.vs-cpi__media img { width: 130px; height: auto; display: block; object-fit: cover; }
.vs-cpi__info { flex: 1 1 auto; min-width: 0; padding: 18px 16px; }
/* min-width: 0 op de kop én op de naam: een flex-item krimpt standaard niet
   onder zijn langste woord, dus een lange productnaam ("Renoboard 9 mm | 12 dB
   Contactgeluidreductie") rekte de kop op en duwde het prullenbakje deels
   buiten beeld op een smal toestel (DLV 9ac0990). */
.vs-cpi__head { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.vs-cpi__head > * { min-width: 0; }
.vs-cpi__name { color: #18803A; font-size: 16px; font-weight: 700; text-decoration: none; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.vs-cpi__name:hover { text-decoration: underline; }
.vs-cpi__badge { background: #C62828; color: #fff; font-size: 11px; font-weight: 800; border-radius: 5px; padding: 3px 7px; letter-spacing: .3px; flex: 0 0 auto; }
.vs-cpi__remove { position: relative; background: none; border: 0; padding: 2px; cursor: pointer; color: #d1d5db; line-height: 0; flex: 0 0 auto; }
.vs-cpi__remove:hover { color: #9ca3af; }
/* Het kruisje is 18 x 19 px en dat is op een telefoon niet te raken. Het
 * klikgebied vergroten we met een onzichtbaar vlak van 44 x 44 px in plaats van
 * met padding, zodat het icoontje zelf klein en rustig blijft en de kop van de
 * regel niet uit elkaar wordt geduwd. */
.vs-cpi__remove::before { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.vs-cpi__meta { font-size: 12px; font-weight: 700; color: #6b7280; line-height: 18px; margin: 2px 0 0; }
.vs-cpi__chip { display: inline-block; background: #f3f4f6; border-radius: 6px; font-size: 13px; color: #6b7280; padding: 3px 9px; margin-top: 10px; }
/* Wat er per pak/rol/lat wordt afgerekend, naast de eenheidsprijs. */
.vs-cpi__chip--pak { background: transparent; font-size: 12px; color: #9ca3af; padding-left: 4px; padding-right: 0; }

.vs-cpi__qtycol { flex: 0 0 168px; border-left: 1px solid #e5e7eb; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 14px 12px; }
.vs-cpi__qtylabel { font-size: 15px; font-weight: 700; color: #14231A; }
.vs-cpi__qtysub { font-size: 12px; color: #9ca3af; margin-bottom: 8px; }
.vs-cpi__stepper { display: flex; align-items: center; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #fff; }
.vs-cpi__stepper button { width: 36px; height: 36px; background: #f9fafb; border: 0; color: #374151; font-size: 17px; cursor: pointer; }
.vs-cpi__stepper button:hover { background: #EAF5EC; }
.vs-cpi__stepper input { width: 44px; height: 36px; border: 0; border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; text-align: center; font-size: 15px; font-weight: 700; color: #14231A; }
.vs-cpi__stepper input:focus { outline: none; background: #f9fafb; }
/* Proefstaal: vast aantal, geen plus- en minknop. */
.vs-cpi__vast { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f9fafb; font-size: 13.5px; font-weight: 600; color: #374151; }

.vs-cpi__pricecol { flex: 0 0 168px; border-left: 1px solid #e5e7eb; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: 14px 18px; }
.vs-cpi__old { color: #9ca3af; font-size: 14px; }
.vs-cpi__old .woocommerce-Price-amount, .vs-cpi__old bdi { color: inherit; }
.vs-cpi__price, .vs-cpi__price bdi { color: #C62828; font-size: 24px; font-weight: 800; line-height: 1.2; }
/* Een proefstaal kost niets: groen "Gratis" in plaats van een oranje € 0,00. */
.vs-cpi__price--gratis { color: #166534; }
.vs-cpi__pricesub { font-size: 12px; color: #9ca3af; }

.vs-cpi__warn { border-top: 1px solid #e5e7eb; background: #fffbeb; color: #92400e; font-size: 12px; padding: 8px 16px; }

/* ---- Advies (bestaande vs-instadv) VM-tint geven op de cartpagina ---- */
.vs-cartpage .vs-instadv { background: #fff7f0; border: 1px solid #fddcbc; border-radius: 16px; padding: 20px; margin: 18px 0 12px; }
.vs-cartpage .vs-instadv__card { background: #ffedd8; border: 0; }
.vs-cartpage .vs-instadv__badge { background: #C62828; color: #fff; text-transform: uppercase; letter-spacing: .5px; font-size: 10px; font-weight: 800; }
.vs-cartpage .vs-instadv .vs-button, .vs-cartpage .vs-instadv a.button,
.vs-cartpage .vs-instadv__add { background: #18803A !important; color: #fff !important; border-radius: 8px; }
.vs-cartpage .vs-instadv__add:hover { background: #116A2F !important; }

/* ---- Bestelnotitie ---- */
.vs-cartpage__note { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 18px; margin-top: 12px; }
.vs-cartpage__note h3 { font-size: 15px; font-weight: 700; color: #14231A; margin: 0 0 12px; }
.vs-cartpage__note textarea { width: 100%; max-width: 100%; box-sizing: border-box; min-height: 150px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 15px; padding: 12px; font-family: inherit; resize: vertical; }
.vs-cartpage__note textarea:focus { outline: none; border-color: #18803A; }

/* ---- Samenvatting rechts ---- */
.vs-cartpage__side { position: sticky; top: 130px; }
.vs-cartpage__summary { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; box-shadow: 0 2px 12px rgba(0,0,0,.05); padding: 22px; }
.vs-cartpage__section { padding-bottom: 18px; border-bottom: 1px solid #e5e7eb; margin-bottom: 18px; }
.vs-cartpage__h3 { display: flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 700; color: #18803A; margin: 0 0 10px; }
.vs-cartpage__h3 svg { width: 21px; height: 21px; }
.vs-cartpage__intro { font-size: 13px; color: #374151; line-height: 1.55; margin: 0 0 14px; }

.vs-cartpage__pcrow { display: flex; gap: 12px; margin-bottom: 12px; }
.vs-cartpage__field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: #14231A; flex: 1 1 auto; min-width: 0; }
.vs-cartpage__field--land { flex: 0 0 72px; }
.vs-cartpage__field input, .vs-cartpage__field select { border: 1px solid #ccc; border-radius: 6px; height: 44px; font-size: 14px; padding: 0 12px; font-weight: 400; /* zonder deze twee telt de padding bij de breedte op en steekt het
   postcodeveld op een telefoon net buiten de kolom */
box-sizing: border-box; min-width: 0; max-width: 100%; }
.vs-cartpage__field input:focus, .vs-cartpage__field select:focus { outline: none; border-color: #18803A; }

.vs-cartpage__alert { display: flex; gap: 9px; border-radius: 8px; padding: 10px 13px; font-size: 13px; line-height: 1.5; margin-top: 10px; }
.vs-cartpage__alert svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; }
.vs-cartpage__alert--blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.vs-cartpage__alert--yellow { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.vs-cartpage__alert--green { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.vs-cartpage__alert--red { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* Bevestigingen boven de winkelwagen ("2 x Egaline toegevoegd"). Iets groter
   dan de vaste bezorgmeldingen eronder, want dit is een antwoord op wat de
   klant zojuist deed en moet opvallen zonder te schreeuwen. */
.vs-cartpage__notices { margin: 0 0 18px; }
.vs-cartpage__alert--notice { margin-top: 0; margin-bottom: 8px; font-size: 14px; padding: 12px 15px; align-items: center; }
.vs-cartpage__alert--notice:last-child { margin-bottom: 0; }
.vs-cartpage__alert--notice svg { width: 19px; height: 19px; flex-basis: 19px; margin-top: 0; }
.vs-cartpage__alert--notice a { color: inherit; text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .vs-cartpage__alert--notice { animation: vs-cartpage-notice-in .25s ease-out; }
  @keyframes vs-cartpage-notice-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* kalender */
.vs-cartpage__calendar { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #fff; }
.vs-cartpage__calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.vs-cartpage__calhead strong { font-size: 14px; color: #14231A; }
.vs-cartpage__calhead button { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; width: 28px; height: 28px; cursor: pointer; color: #374151; }
.vs-cartpage__calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.vs-cartpage__calgrid span { text-align: center; font-size: 11px; font-weight: 700; color: #9ca3af; padding: 4px 0; }
.vs-cartpage__calgrid button { border: 0; background: none; border-radius: 999px; height: 32px; font-size: 13px; color: #d1d5db; cursor: default; }
.vs-cartpage__calgrid button.is-avail { color: #1e40af; background: #eff6ff; cursor: pointer; font-weight: 700; }
.vs-cartpage__calgrid button.is-avail:hover { background: #bfdbfe; }
.vs-cartpage__calgrid button.is-selected { background: #18803A; color: #fff; }
.vs-cartpage__datechosen { font-size: 13px; font-weight: 700; color: #16a34a; margin: 0 0 4px; }

/* kortingscode */
.vs-cartpage__coupontoggle { width: 100%; background: none; border: 0; cursor: pointer; padding: 0; text-align: left; }
.vs-cartpage__chev { margin-left: auto; width: 18px !important; height: 18px !important; color: #9ca3af; transition: transform .18s ease; }
.vs-cartpage__coupon.is-open .vs-cartpage__chev { transform: rotate(180deg); }
.vs-cartpage__couponbody { padding-top: 6px; }
.vs-cartpage__couponrow { display: flex; gap: 10px; }
.vs-cartpage__couponrow input { flex: 1 1 auto; border: 1px solid #ccc; border-radius: 6px; height: 44px; font-size: 14px; padding: 0 12px; min-width: 0; }
.vs-cartpage__couponrow button { background: #18803A; color: #fff; border: 0; border-radius: 8px; padding: 0 18px; font-size: 14px; font-weight: 700; cursor: pointer; }
.vs-cartpage__couponrow button:hover { background: #116A2F; }
.vs-cartpage__couponerror { color: #dc2626; font-size: 13px; margin: 8px 0 0; }
.vs-cartpage__couponapplied { display: flex; align-items: center; justify-content: space-between; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 700; margin-top: 10px; }
.vs-cartpage__couponapplied button { background: none; border: 0; color: #166534; font-size: 17px; cursor: pointer; line-height: 1; }

/* totalen */
.vs-cartpage__trow { display: flex; justify-content: space-between; font-size: 14px; color: #374151; padding: 3px 0; }
.vs-cartpage__trow--discount span:last-child { color: #16a34a; font-weight: 700; }
.vs-cartpage__muted { font-size: 13px; color: #9ca3af; }
.vs-cartpage__grand { display: flex; align-items: flex-start; justify-content: space-between; border-top: 1px solid #e5e7eb; margin-top: 14px; padding-top: 16px; }
.vs-cartpage__grandlabel strong { display: block; font-size: 17px; color: #14231A; }
.vs-cartpage__grandlabel small { display: block; font-size: 12px; color: #9ca3af; max-width: 240px; line-height: 1.45; margin-top: 3px; }
.vs-cartpage__grandvalue, .vs-cartpage__grandvalue bdi { font-size: 34px; font-weight: 800; color: #C62828; line-height: 1; white-space: nowrap; }

.vs-cartpage__checkout { display: flex; align-items: center; justify-content: center; gap: 10px; background: #16a34a; color: #fff !important; border-radius: 12px; padding: 14px; font-size: 16px; font-weight: 700; text-decoration: none; margin-top: 18px; transition: background .15s ease; }
.vs-cartpage__checkout:hover { background: #15803d; }
.vs-cartpage__checkout svg { width: 20px; height: 20px; }
.vs-cartpage__secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #6b7280; margin: 10px 0 0; }
.vs-cartpage__secure svg { width: 14px; height: 14px; color: #16a34a; }

/* lege wagen */
.vs-cartpage__emptybox { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 48px; text-align: center; }
.vs-cartpage__emptybox p { font-size: 17px; color: #374151; margin: 0 0 18px; }
.vs-cartpage__emptybtn { display: inline-block; background: #16a34a; color: #fff !important; border-radius: 12px; padding: 13px 26px; font-weight: 700; text-decoration: none; }

/* laadstatus */
.vs-cpi.is-busy, .vs-cartpage__summary.is-busy { opacity: .55; pointer-events: none; }

/* ---- Mobiel ---- */
@media (max-width: 700px) {
    .vs-cpi__row { flex-wrap: wrap; }
    .vs-cpi__media { flex-basis: 96px; }
    .vs-cpi__media img { width: 96px; }
    .vs-cpi__info { flex: 1 1 60%; padding: 14px 12px; }
    /* min-width: 0 op de kolommen, anders krimpen ze niet onder hun inhoud en
       steekt de kaart op 320px buiten het scherm (DLV 0f41ae4). */
    .vs-cpi__qtycol { flex: 1 1 50%; min-width: 0; border-left: 0; border-top: 1px solid #e5e7eb; }
    .vs-cpi__pricecol { flex: 1 1 40%; min-width: 0; border-top: 1px solid #e5e7eb; }
    .vs-cpi__row > * { min-width: 0; }
    .vs-cartpage__side { position: static; }
    .vs-cartpage__grandvalue, .vs-cartpage__grandvalue bdi { font-size: 28px; }
}

/* Melding over de bezorgroute onder de postcode: welke regio is herkend, welke
   dag daaruit volgt, en of het schema nog voorlopig is. */
.vs-cartpage__routemelding {
    margin: 8px 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--vs-soft, #F4F7F3);
    border: 1px solid var(--vs-line, #DFE6DF);
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--vs-muted, #5E6A62);
}

.vs-cartpage__routemelding[hidden] {
    display: none;
}

/* Postcode zonder vaste route: de bezorging gaat in overleg. Amber en niet
   rood, want er is niets mis; de klant moet het alleen wel lezen. */
.vs-cartpage__routemelding--overleg {
    background: #fff6e5;
    border-color: #f0d9ab;
    color: #7a4a00;
    font-weight: 600;
}

/* De bezorgdagkiezer in de winkelwagen. De opmaak zelf komt uit
   checkout-classic.css, want het is letterlijk hetzelfde blok als op de kassa;
   hier alleen de ruimte eromheen. */
.vs-cartpage__dagen:empty {
    display: none;
}

.vs-cartpage__dagen {
    margin: 10px 0 4px;
}
