
/* Chatknop strakker: foto van Arno met groene 'online'-stip, twee regels tekst, licht en rustig */
.cmc .cmc-knop{height:auto;min-height:62px;padding:8px 20px 8px 8px;gap:12px;background:#FFFFFF;color:#28180D;border:1px solid #E4E0DC;border-radius:999px;box-shadow:0 14px 34px -12px rgba(40,24,13,.35)}
.cmc .cmc-knop:hover{background:#FFFFFF;border-color:#28180D;transform:translateY(-2px)}
.cmc .cmc-knop:after{display:none}
.cmc-avatar{position:relative;flex:none;width:46px;height:46px;border-radius:50%;background-color:#F7F5F3;background-size:165%;background-repeat:no-repeat;background-position:80% 22%}
.cmc-avatar i,.cmc-foto:after{position:absolute;right:-1px;bottom:-1px;width:14px;height:14px;border-radius:50%;background:#25D366;border:2px solid #FFFFFF}
.cmc-foto:after{content:"";border-color:#28180D}
.cmc .cmc-foto{background-size:165%;background-position:80% 22%;border-color:#FFFDEF}
.cmc .cmc-tekst{display:flex;flex-direction:column;align-items:flex-start;line-height:1.2;text-align:left}
.cmc .cmc-tekst b{font-size:15px;font-weight:700;color:#28180D}
.cmc .cmc-tekst small{font-size:12px;font-weight:600;color:#6B5D52;margin-top:3px}
.cmc .cmc-stip{display:none}
.cmc.is-open .cmc-avatar{display:none}
.cmc.is-open .cmc-knop{padding:8px 20px 8px 16px}
.cmc.is-open .cmc-knop .cmc-dicht{display:block;width:22px;height:22px}
.cmc-online{display:inline-block;width:8px;height:8px;border-radius:50%;background:#25D366;margin-right:6px;vertical-align:1px}
@media (max-width:600px){
.cmc .cmc-knop{width:auto;min-height:0;padding:5px;border-radius:999px}
.cmc .cmc-knop .cmc-tekst{display:none}
.cmc-avatar{width:50px;height:50px}
.cmc.is-open .cmc-knop{width:60px;height:60px;padding:0;justify-content:center}
}


/* ===== Afrekenen in Shopify-stijl: rustig, overzichtelijk, vertrouwd =====
   Geldt alleen voor de stappen Adres, Levering en Betalen (header met .cmh-afrekenen). */

/* -- Header: alleen logo, 'Veilig afrekenen' en het mandje -- */
header.cmh-afrekenen .cmh-usp,
header.cmh-afrekenen .cmh-account{display:none!important}
header.cmh-afrekenen .cmh-mandje{background:transparent!important;color:#28180D!important;border:0!important;box-shadow:none!important;padding:8px!important}
header.cmh-afrekenen .cmh-mandje .cmh-label{display:none!important}

/* -- Stappen bovenaan -- */
body:has(header.cmh-afrekenen) .o_wizard{font-size:13px}
body:has(header.cmh-afrekenen) .o_wizard a p{color:#8A5A1C}
body:has(header.cmh-afrekenen) .o_wizard .text-muted p{color:#A99D92!important}

/* -- Formulier -- */
body:has(header.cmh-afrekenen) .oe_cart .form-control,
body:has(header.cmh-afrekenen) .oe_cart .form-select{min-height:48px;border-radius:8px!important;border:1px solid #D6CCC0!important;font-size:15px;background-color:#fff;box-shadow:none!important}
body:has(header.cmh-afrekenen) .oe_cart .form-control:focus,
body:has(header.cmh-afrekenen) .oe_cart .form-select:focus{border-color:#28180D!important;box-shadow:0 0 0 3px rgba(40,24,13,.12)!important}
body:has(header.cmh-afrekenen) .oe_cart label:not(.form-check-label):not(.o_payment_option_label){font-size:13px;font-weight:600;color:#4A3A2E}
/* Provincie alleen tonen als het verplicht is (bijv. VS), niet bij Nederland of België */
body:has(header.cmh-afrekenen) form.address_autoformat div:has(> select[name="state_id"]:not([required])){display:none!important}

/* -- Keuzelijsten (levering en betaalmethode) -- */
body:has(header.cmh-afrekenen) #o_delivery_methods,
body:has(header.cmh-afrekenen) #o_payment_methods .list-group{border:1px solid #D6CCC0;border-radius:12px;overflow:hidden}
body:has(header.cmh-afrekenen) #o_delivery_methods .list-group-item,
body:has(header.cmh-afrekenen) #o_payment_methods .list-group-item{border-left:0!important;border-right:0!important;border-radius:0!important;transition:background .15s}
body:has(header.cmh-afrekenen) #o_delivery_methods .list-group-item:first-child,
body:has(header.cmh-afrekenen) #o_payment_methods .list-group-item:first-child{border-top:0!important}
body:has(header.cmh-afrekenen) #o_delivery_methods .list-group-item:last-child,
body:has(header.cmh-afrekenen) #o_payment_methods .list-group-item:last-child{border-bottom:0!important}
body:has(header.cmh-afrekenen) #o_delivery_methods .list-group-item:has(input:checked),
body:has(header.cmh-afrekenen) #o_payment_methods .list-group-item:has(input:checked){background:#FAF7F2!important;box-shadow:inset 3px 0 0 #28180D}
body:has(header.cmh-afrekenen) #o_payment_methods > p.h4::after{content:'Alle betalingen zijn beveiligd en versleuteld.';display:block;margin-top:6px;font-family:'Quicksand',Arial,sans-serif;font-size:13.5px;font-weight:500;color:#6F6259}

/* -- Overzicht van de bestelling -- */
body:has(header.cmh-afrekenen) .o_total_card,
body:has(header.cmh-afrekenen) .o_total_card .card-body{background:transparent!important;border:0!important;box-shadow:none!important}
body:has(header.cmh-afrekenen) .o_cart_products_table td{border:0!important;vertical-align:middle}
body:has(header.cmh-afrekenen) .o_cart_product_image img{width:64px!important;height:64px!important;object-fit:contain;background:#fff;border:1px solid #E8DCCB;border-radius:10px;padding:4px}
body:has(header.cmh-afrekenen) .o_cart_product_image .o_cart_item_count{background:#6F6259!important;color:#fff!important;font-size:12px;min-width:22px;height:22px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
body:has(header.cmh-afrekenen) .td-product_name .text-wrap{font-weight:600;font-size:14.5px}
body:has(header.cmh-afrekenen) .o_cart_total{border-top:1px solid #E8DCCB!important;margin-top:14px;padding-top:16px!important}
body:has(header.cmh-afrekenen) .o_cart_total tbody{display:flex;flex-direction:column}
body:has(header.cmh-afrekenen) .o_cart_total tr{display:flex;justify-content:space-between;align-items:baseline;gap:12px;order:5;border:0!important}
body:has(header.cmh-afrekenen) .o_cart_total td{width:auto!important;padding:0 0 10px!important;border:0!important;font-size:14.5px}
body:has(header.cmh-afrekenen) .o_cart_total tr[name="o_order_delivery"]{order:1}
body:has(header.cmh-afrekenen) .o_cart_total tr[name="o_order_total_untaxed"]{display:none!important}
body:has(header.cmh-afrekenen) .o_cart_total tr[name="o_order_total"]{order:3;padding-top:6px}
body:has(header.cmh-afrekenen) .o_cart_total tr[name="o_order_total"] td strong{font-size:17px;font-weight:700}
body:has(header.cmh-afrekenen) .o_cart_total tr[name="o_order_total"] td:last-child strong{font-size:22px}
body:has(header.cmh-afrekenen) .o_cart_total tr[name="o_order_total_taxes"]{order:4;margin-top:-8px}
body:has(header.cmh-afrekenen) .o_cart_total tr[name="o_order_total_taxes"] td:first-child{display:none}
body:has(header.cmh-afrekenen) .o_cart_total tr[name="o_order_total_taxes"] td:last-child{text-align:left!important;font-size:12.5px;color:#6F6259;padding:0 0 12px!important}
body:has(header.cmh-afrekenen) .o_cart_total tr[name="o_order_total_taxes"] td:last-child::before{content:'Inclusief '}
body:has(header.cmh-afrekenen) .o_cart_total tr[name="o_order_total_taxes"] td:last-child::after{content:' btw'}
body:has(header.cmh-afrekenen) .o_cart_total tr:not([name]) td{flex:1 1 auto;padding-bottom:6px!important}
body:has(header.cmh-afrekenen) .coupon_form .input-group .form-control{min-height:44px;border-radius:8px 0 0 8px!important;border:1px solid #D6CCC0!important}
body:has(header.cmh-afrekenen) .coupon_form .input-group .btn{border-radius:0 8px 8px 0!important;border:1px solid #D6CCC0!important;font-weight:600}
/* Geen upsell-balk meer tijdens het afrekenen: die staat al in het winkelmandje */
body:has(header.cmh-afrekenen) .cma-gratis{display:none!important}

/* -- Knoppen -- */
body:has(header.cmh-afrekenen) .o_cta_navigation_container .btn-primary,
body:has(header.cmh-afrekenen) .o_mobile_summary .btn-primary{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%!important;min-height:54px;padding:0 20px!important;margin:0!important;border-radius:10px!important;background:#28180D!important;border-color:#28180D!important;color:#fff!important;font-size:16px!important;font-weight:700!important;box-shadow:none!important}
body:has(header.cmh-afrekenen) .o_cta_navigation_container .btn-primary:hover,
body:has(header.cmh-afrekenen) .o_mobile_summary .btn-primary:hover{background:#45291A!important;border-color:#45291A!important}
body:has(header.cmh-afrekenen) button[name="o_payment_submit_button"]::before{content:'';width:16px;height:16px;flex:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center/contain no-repeat}
body:has(header.cmh-afrekenen) .o_cta_navigation_container .position-relative.d-lg-flex,
body:has(header.cmh-afrekenen) .o_mobile_summary .position-relative.d-lg-flex{display:none!important}
body:has(header.cmh-afrekenen) .o_cta_navigation_container a.text-center,
body:has(header.cmh-afrekenen) .o_mobile_summary a.text-center{font-size:14px;font-weight:600;color:#6F6259!important;margin-top:6px!important}
body:has(header.cmh-afrekenen) .cma-voorwaarden{font-size:12.5px;color:#6F6259;text-align:center;margin:2px 0 0}
body:has(header.cmh-afrekenen) .cma-vertrouwen{margin-top:14px!important;padding-top:14px!important;border-top:1px solid #E8DCCB}
body:has(header.cmh-afrekenen) .cma-vertrouwen li{font-size:13px;color:#4A3A2E}

/* -- Computer: formulier links, overzicht rechts op een eigen achtergrond tot aan de rand -- */
@media (min-width:992px){
 body:has(header.cmh-afrekenen) #wrap{overflow:clip}
 body:has(header.cmh-afrekenen) .o_website_sale_checkout_container{max-width:1180px}
 body:has(header.cmh-afrekenen) .o_website_sale_checkout_container > .row > .oe_cart{padding-right:56px}
 body:has(header.cmh-afrekenen) .o_website_sale_checkout_container > .row > div:has(> .o_total_card){position:relative;z-index:0;padding-left:44px}
 body:has(header.cmh-afrekenen) .o_website_sale_checkout_container > .row > div:has(> .o_total_card)::before{content:'';position:absolute;z-index:-1;top:-400px;bottom:-3000px;left:0;width:100vw;background:#FAF7F2;border-left:1px solid #E8DCCB}
 body:has(header.cmh-afrekenen) .o_total_card .card-body{padding:4px 0 32px!important}
}

/* -- Telefoon: niets meer dat het formulier afdekt; knop gewoon onderaan, zoals bij Shopify -- */
@media (max-width:991.98px){
 body:has(header.cmh-afrekenen) .o_mobile_summary{position:static!important;box-shadow:none!important;background:transparent!important;margin:12px 0 0!important;padding:16px 0 28px!important;border-top:1px solid #E8DCCB;width:auto!important}
 body:has(header.cmh-afrekenen) .o_address_signin{background:#FAF7F2!important;border:1px solid #E8DCCB;border-radius:10px}
 body:has(header.cmh-afrekenen) .o_mobile_summary > .btn-light{min-height:50px;background:#FAF7F2!important;border:1px solid #E8DCCB!important;border-radius:10px!important;font-weight:600;margin-bottom:12px!important}
 body:has(header.cmh-afrekenen) .cmc{display:none!important}
 /* extra 'Totaal'-balkje onderin: dubbel met de knop, weg tijdens het afrekenen */
 body:has(header.cmh-afrekenen) .cma-balkje{display:none!important}
}

/* 04-12-2026: chatknop met uitgeknipte foto van Arno: schouders in een rondje, hoofd steekt erboven uit */
.cmc .cmc-knop{position:relative;overflow:visible;padding-left:72px}
.cmc .cmc-knop .cmc-avatar{position:absolute;left:12px;bottom:7px;top:auto;width:48px;height:72px;margin:0;border:0;border-radius:0;box-shadow:none;flex:none;background:url('/web/image/17302/arno-chat-uitgeknipt.png') center bottom/56px auto no-repeat,radial-gradient(circle 24px at 50% calc(100% - 24px),#F3E6D3 99%,transparent 100%)!important;-webkit-mask:radial-gradient(circle 24px at 50% calc(100% - 24px),#000 99%,transparent 100%),linear-gradient(#000,#000) top/100% calc(100% - 24px) no-repeat;mask:radial-gradient(circle 24px at 50% calc(100% - 24px),#000 99%,transparent 100%),linear-gradient(#000,#000) top/100% calc(100% - 24px) no-repeat}
.cmc .cmc-knop .cmc-avatar i{display:none}
.cmc .cmc-knop:before{content:"";position:absolute;left:49px;bottom:7px;width:12px;height:12px;border-radius:50%;background:#25D366;border:2px solid #FFFFFF;z-index:2}
.cmc.is-open .cmc-knop .cmc-avatar,.cmc.is-open .cmc-knop:before{display:none}
.cmc.is-open .cmc-knop{padding-left:16px}
@media (max-width:600px){
.cmc .cmc-knop{width:54px;height:54px;min-height:0;padding:0}
.cmc .cmc-knop .cmc-avatar{left:5px;bottom:5px;width:44px;height:64px;background:url('/web/image/17302/arno-chat-uitgeknipt.png') center bottom/50px auto no-repeat,radial-gradient(circle 22px at 50% calc(100% - 22px),#F3E6D3 99%,transparent 100%)!important;-webkit-mask:radial-gradient(circle 22px at 50% calc(100% - 22px),#000 99%,transparent 100%),linear-gradient(#000,#000) top/100% calc(100% - 22px) no-repeat;mask:radial-gradient(circle 22px at 50% calc(100% - 22px),#000 99%,transparent 100%),linear-gradient(#000,#000) top/100% calc(100% - 22px) no-repeat}
.cmc .cmc-knop:before{left:37px;bottom:4px}
.cmc.is-open .cmc-knop{padding:0}
}
