/* =========================================================
   SQ CUSTOM - SHOP / SNIPCART
   TABLE OF CONTENTS
   =========================================================
   01. Detailed cart
       01.1 General styling
       01.2 Empty cart / back to store button
       01.3 Cart container / left drop shadow
       01.4 Cart header
       01.5 Product row
       01.6 Product custom fields
       01.7 Quantity selector and +/- buttons
       01.8 Product price
       01.9 Remove item button
       01.10 Cart footer / shipping / taxes / total
       01.11 Checkout button
       01.12 Payment methods

   02. Desktop side cart
       02.1 Side cart heading
       02.2 Custom fields
       02.3 Product layout
       02.4 Remove button
       02.5 Quantity and price
       02.6 Side-cart links

   03. Checkout
       03.1 General styling and auto-height modal
       03.2 Box shadow and step icons
       03.3 Order summary
       03.4 Form labels and validation errors
       03.5 Form fields
       03.6 Checkbox field
       03.7 Dropdown field
       03.8 Billing / shipping text
       03.9 Checkout hyperlinks
       03.10 Desktop edit-cart footer

   04. Mobile cart and checkout (max-width: 767px)
       04.1 Cart wrapper / header
       04.2 Product row
       04.3 Product custom fields
       04.4 Quantity / price / remove
       04.5 Button feedback
       04.6 Cart footer
       04.7 Checkout header
       04.8 Order-summary arrow
       04.9 Step title / badge alignment
       04.10 First name / last name
       04.11 Space between checkout steps
       04.12 Mobile edit-cart product layout
       04.13 Mobile edit-cart quantity / price / remove
       04.14 Mobile edit-cart footer

   05. Order details / payment confirmation
       05.1 Order details / payment confirmation
       05.2 Velden Company Name & VAT Number
       05.3 Layout Company/VAT Date in de Billing Summary
   ========================================================= */
/* =========================================================
   01.1 GENERAL STYLING
   ---------------------------------------------------------
   Houdt de achtergrond van de cart volledig wit.
   ========================================================= */

#snipcart .snipcart-layout, #snipcart .snipcart-cart-header, #snipcart .snipcart-cart__content {
    background-color: #ffffff;
}
#snipcart .snipcart-empty-cart__title {
    color: #777777 !important;
    font-family: Poppins !important;
    font-size: 18px !important;
    font-weight: 500 !important;
}

/* =========================================================
   01.2 EMPTY CART - BACK TO STORE BUTTON
   ---------------------------------------------------------
   Custom shop look & feel:
   - zwarte achtergrond
   - witte tekst
   - rechte hoeken
   - geen schaduw
   - hover: wit met zwarte rand
   ========================================================= */

#snipcart .snipcart-empty-cart .snipcart-button-secondary.snipcart-base-button {
    min-width: 180px !important;
    height: 50px !important;

    margin: 25px 0 0 !important;
    padding: 0 30px !important;

    border: 1px solid #000000 !important;
    border-radius: 0 !important;

    background-color: #000000 !important;
    box-shadow: none !important;

    color: #ffffff !important;
}
#snipcart .snipcart-empty-cart .snipcart-button-secondary .snipcart-base-button__label {
    margin: 0 !important;
    padding: 0 !important;

    color: inherit !important;

    font-family: Poppins !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}
#snipcart .snipcart-empty-cart .snipcart-button-secondary.snipcart-base-button:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}
#snipcart .snipcart-empty-cart .snipcart-button-secondary .snipcart-base-button__icon {
    display: none !important;
}
/* =========================================================
   01.3 CART CONTAINER - LEFT DROP SHADOW
   ---------------------------------------------------------
   Geeft de cart-overlay een subtiele schaduw aan de linkerzijde
   zodat de cart visueel loskomt van de achterliggende pagina.
   ========================================================= */

#snipcart .snipcart-modal__container {
    box-shadow: -12px 0 24px -12px rgba(0, 0, 0, 0.20) !important;
    background-color: #fff
}

/* =========================================================
   01.4 CART HEADER
   ---------------------------------------------------------
   De custom cart-header bestaat uit twee rijen:

   Rij 1:
                Cart summary

   Rij 2:
   Continue shopping                       Cart + aantal

   De header gebruikt 80% van de beschikbare breedte,
   met maximaal 1440px.
   ========================================================= */

#snipcart .snipcart-cart-header {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;

    width: 80% !important;
    max-width: 1440px;

    margin: 50px auto 20px !important;
    padding: 0 !important;
}
#snipcart .snipcart-cart-header > div:first-child {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;

    justify-self: center !important;

    margin-bottom: 30px !important;
}

#snipcart .snipcart-cart-header__title {
    font-family: Poppins !important;
    font-size: 24px !important;
    font-weight: 500 !important;
}
#snipcart .snipcart-modal__close-icon {
    color: #000000 !important;
}
#snipcart .snipcart-modal__close-title.snipcart__font--std {
    display: block !important;
    color: #000 !important;
    font-family: Poppins !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}

#snipcart .snipcart-modal__close-title.snipcart__font--std:hover {
    color: #989898 !important;
}
#snipcart .snipcart-cart-header__options {
    grid-column: 2 !important;
    grid-row: 2 !important;

    justify-self: end !important;

    margin-right: 10px !important;
}
#snipcart .snipcart-cart-header__count {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 8px !important;

    font-family: Poppins !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}
#snipcart .snipcart-cart-header__count .icon--cart {
    width: 32px !important;
    height: auto !important;

    flex-shrink: 0 !important;
}


/* =========================================================
   01.5 PRODUCT ROW
   ---------------------------------------------------------
   Horizontale structuur van ieder product:

   afbeelding | beschrijving | aantal | prijs | verwijderen
   ========================================================= */

#snipcart .product-wrapper {
    display: flex;
    align-items: flex-start;

    gap: 25px;

    padding: 25px 0;
    margin-right: 10px;

    border-bottom: 1px solid #e5e5e5;
}
#snipcart .image-wrapper {
    width: 125px;
    height: 125px;

    flex-shrink: 0;

    overflow: hidden;
}


#snipcart .product-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}
#snipcart .product-description {
    width: 450px;
}
#snipcart .product-name {
    width: fit-content;

    margin: 0 0 10px;

    color: #000000;

    font-family: Poppins;
    font-size: 16px;
    font-weight: 500;
}


/* =========================================================
   01.6 PRODUCT CUSTOM FIELDS
   ---------------------------------------------------------
   Voorbeeld:
   Option label: Selected value
   Label en waarde staan op dezelfde regel.
   Meerdere productopties staan onder elkaar.
   De selectors met "*" zijn bewust behouden:
   dynamisch ingevoegde elementen blijven zo correct gestyled.
   ========================================================= */

#snipcart .snipcart-custom-field-wrapper__label, #snipcart .snipcart-custom-field-wrapper__label * {
    color: #000000 !important;
    font-family: Poppins !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}
#snipcart .snipcart-custom-field-wrapper__input, #snipcart .snipcart-custom-field-wrapper__input * {
    color: #777777 !important;
    font-family: Poppins !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}
#snipcart .snipcart-item-custom-fields {
    display: flex !important;
    flex-direction: column !important;

    gap: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
}
#snipcart .snipcart-item-custom-fields__field + .snipcart-item-custom-fields__field {
    margin-top: -2px !important;
}
#snipcart .snipcart-item-custom-fields__field {
    display: flex !important;
    align-items: baseline !important;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
}
#snipcart .snipcart-custom-field-wrapper__label {
    display: inline-flex !important;
    align-items: baseline !important;

    flex: 0 0 auto !important;

    white-space: nowrap !important;
}
#snipcart .snipcart-custom-field-wrapper__label::after {
    content: ":" !important;
}
#snipcart .snipcart-custom-field-wrapper__input {
    flex: 1 1 auto !important;
    min-width: 0 !important;

    margin-left: 4px !important;
    padding: 0 !important;

    overflow: visible !important;
}
#snipcart .snipcart-custom-field-wrapper__input span {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    white-space: nowrap !important;
    overflow: visible !important;
}


/* =========================================================
   01.7 QUANTITY SELECTOR
   ---------------------------------------------------------
   Verbergt Snipcarts eigen label en totaalprijs.
   Houdt uitsluitend over:

             -     1     +

   De volledige quantity-component wordt 20px omhoog gezet
   om visueel met de productregel uit te lijnen.
   ========================================================= */

#snipcart .snipcart-item-quantity {
    display: flex;
    flex: 1;

    flex-direction: row;
    align-items: center;

    gap: 30px;

    margin-left: 30px;

    transform: translateY(-20px) !important;
}
#snipcart .snipcart-item-quantity__quantity {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
#snipcart .snipcart-item-quantity__label {
    display: none !important;
}
#snipcart .snipcart-item-quantity__total-price {
    display: none !important;
}


/* ---------------------------------------------------------
   QUANTITY +/- BUTTONS
   ---------------------------------------------------------
   Beide buttons hebben een transparante ronde klikzone.
   Bij hover verschijnt een lichtgrijze cirkel.
   --------------------------------------------------------- */

#snipcart .snipcart-item-quantity__quantity .snipcart-button-icon.is-small.is-secondary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 36px !important;
    height: 36px !important;

    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    border: none !important;
    border-radius: 50% !important;

    background-color: transparent !important;
    box-shadow: none !important;

    color: #000000 !important;
}
#snipcart .snipcart-item-quantity__quantity .snipcart-button-icon.is-small.is-secondary .snipcart__icon {
    width: 20px !important;
    height: 20px !important;

    color: #000000 !important;

    transform: scale(1.35);
    transform-origin: center;
}
#snipcart .snipcart-item-quantity__quantity .snipcart-button-icon.is-small.is-secondary:hover {
    background-color: #e7e7e7 !important;
}
#snipcart .snipcart-item-quantity__quantity .snipcart__font--secondary.snipcart__font--regular {
    width: 40px;

    flex-shrink: 0;

    color: #000000 !important;

    font-family: Poppins !important;
    font-size: 16px !important;
    font-weight: 400 !important;

    text-align: center;
}


/* =========================================================
   01.8 PRODUCT PRICE
   ========================================================= */

#snipcart .item-price-wrapper {
    flex-shrink: 0;

    color: #000000;

    font-family: Poppins;
    font-size: 16px;
    font-weight: 400;
}


/* =========================================================
   01.9 REMOVE ITEM BUTTON
   ---------------------------------------------------------
   Zelfde 36x36px hovercirkel als de quantity buttons.
   De volledige wrapper wordt 10px naar rechts en 10px
   omhoog geschoven voor de gewenste uitlijning.
   ========================================================= */

#snipcart .remove-item-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex-shrink: 0 !important;

    transform: translate(10px, -10px) !important;
}
#snipcart .remove-item-wrapper .snipcart-button-icon.is-small.is-secondary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 36px !important;
    height: 36px !important;

    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    border: none !important;
    border-radius: 50% !important;

    background-color: transparent !important;
    box-shadow: none !important;

    color: #000000 !important;
}
#snipcart .remove-item-wrapper .snipcart-button-icon.is-small.is-secondary:hover {
    background-color: #e7e7e7 !important;
}
#snipcart .remove-item-wrapper .snipcart__icon {
    display: block !important;

    width: 16px !important;
    height: 16px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #000000 !important;

    transform: none !important;

    pointer-events: none !important;
}


/* =========================================================
   01.10 CART FOOTER - SHIPPING / TAXES / TOTAL
   ========================================================= */

#snipcart .snipcart-cart__footer-col {
    margin-right: 10px !important;
}
#snipcart .snipcart-summary-fees__amount, #snipcart .snipcart-summary-fees__title {
    color: #777777 !important;

    font-family: Poppins !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}
#snipcart .snipcart-summary-fees__title.snipcart-summary-fees__title--highlight.snipcart__font--large, #snipcart .snipcart-summary-fees__amount.snipcart-summary-fees__amount--highlight.snipcart__font--large {
    margin: 20px 0 30px !important;

    color: #000000 !important;

    font-family: Poppins !important;
    font-size: 22px !important;
    font-weight: 500 !important;
}


/* =========================================================
   01.11 CHECKOUT BUTTON
   ---------------------------------------------------------
   Zwarte custom shop-knop.
   Hover = wit met zwarte rand.
   ========================================================= */

#snipcart .snipcart-button-primary.snipcart-base-button.is-icon-right {
    height: 60px !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 0 !important;

    background-color: #000000 !important;
    box-shadow: none !important;

    color: #ffffff !important;
}


#snipcart .snipcart-button-primary.snipcart-base-button.is-icon-right:hover {
    border: 1px solid #000000 !important;

    background-color: #ffffff !important;

    color: #000000 !important;
}
#snipcart .snipcart-base-button__label {
    margin: 0 !important;
    padding: 0 !important;

    font-family: Poppins !important;
    font-size: 20px !important;
    font-weight: 500 !important;
}
#snipcart .snipcart-base-button__icon {
    display: none !important;
}


/* =========================================================
   01.12 PAYMENT METHODS
   ---------------------------------------------------------
   Snipcarts extra payment-method sectie wordt niet getoond.
   ========================================================= */

#snipcart .snipcart-featured-payment-methods {
    display: none !important;
}

/* =========================================================
   02.1 SIDE CART HEADING
   ========================================================= */

#snipcart .snipcart-layout__content--side .snipcart-cart__secondary-header-title {
    font-family: Poppins !important;
    font-size: 24px !important;
    font-weight: 500 !important;
}

/* =========================================================
   02.2 SIDE CART - CUSTOM FIELDS
   ---------------------------------------------------------
   Productopties worden verticaal weergegeven:
   label
   waarde

   Meerdere custom fields staan onder elkaar.
   ========================================================= */

#snipcart .snipcart-layout__content--side .snipcart-item-custom-fields {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    gap: 10px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
}
#snipcart .snipcart-layout__content--side .snipcart-item-custom-fields__field {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
}
#snipcart .snipcart-layout__content--side .snipcart-custom-field-wrapper__label, #snipcart .snipcart-layout__content--side .snipcart-custom-field-wrapper__label * {
    display: block !important;

    width: 100% !important;

    margin: 0 0 2px !important;
    padding: 0 !important;

    color: #000000 !important;

    font-family: Poppins !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;

    white-space: normal !important;
}
#snipcart .snipcart-layout__content--side .snipcart-custom-field-wrapper__label::after {
    content: "" !important;
}
#snipcart .snipcart-layout__content--side .snipcart-custom-field-wrapper__input {
    display: block !important;

    flex: none !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
}
#snipcart .snipcart-layout__content--side .snipcart-custom-field-wrapper__input span, #snipcart .snipcart-layout__content--side .snipcart-custom-field-wrapper__input span * {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #777777 !important;

    font-family: Poppins !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;

    overflow-wrap: break-word !important;
    word-break: normal !important;
}


/* =========================================================
   02.3 SIDE CART - PRODUCT LAYOUT
   ---------------------------------------------------------
   Rij 1:
   afbeelding | productinformatie | remove

   Rij 2:
              | quantity + prijs  |
   ========================================================= */

#snipcart .snipcart-layout__content--side .product-wrapper {
    display: grid !important;

    grid-template-columns:
        65px
        minmax(0, 1fr)
        36px !important;

    grid-template-rows:
        auto
        auto !important;

    column-gap: 16px !important;
    row-gap: 10px !important;

    align-items: start !important;

    margin: 0 32px !important;
}
#snipcart .snipcart-layout__content--side .image-wrapper {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;

    width: 65px !important;
    height: 65px !important;
}
#snipcart .snipcart-layout__content--side .product-description {
    grid-column: 2 !important;
    grid-row: 1 !important;

    width: auto !important;
    min-width: 0 !important;
}

/* =========================================================
   02.4 DESKTOP SIDE CART - REMOVE BUTTON
   ---------------------------------------------------------
   Plaatst het remove-kruisje onderaan rechts,
   op dezelfde rij als quantity en item price.

   Quantity     Price     Remove
   -  1  +      €360      ×
   ========================================================= */

#snipcart .snipcart-layout__content--side .remove-item-wrapper {
    grid-column: 3 !important;
    grid-row: 2 !important;

    justify-self: end !important;
    align-self: center !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;
}

/* =========================================================
   02.5 SIDE CART - QUANTITY + PRICE
   ---------------------------------------------------------
   Beide elementen staan op de tweede rij over de volledige
   breedte van de productregel.

   Quantity = volledig links
   Price    = volledig rechts
   ========================================================= */

#snipcart .snipcart-layout__content--side .snipcart-item-quantity {
    grid-column: 1 / 2 !important;
    grid-row: 2 !important;

    justify-self: start !important;
    align-self: center !important;

    margin: 0 !important;
    transform: none !important;
}


#snipcart .snipcart-layout__content--side .item-price-wrapper {
    grid-column: 2 !important;
    grid-row: 2 !important;

    justify-self: end !important;
    align-self: center !important;

    margin: 0 10px 0 0 !important;
}

#snipcart .snipcart-layout__content--side .snipcart-item-quantity__quantity.snipcart__font--std {
    transform: translateX(-10px) !important;
}

#snipcart .snipcart-layout__content--side .remove-item-wrapper {
    transform: translateX(10px) !important;
}

#snipcart .snipcart-layout__content--side .snipcart__icon--medium.snipcart__icon--angled.snipcart__icon {
    position: relative !important;
    left: 5px !important;
}

#snipcart .snipcart-layout__content--side .snipcart-button-link {
    color: #000 !important;
    font-family: Poppins !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    border: 0 !important;
}

#snipcart .snipcart-layout__content--side .snipcart-button-link:hover {
    color: #989898 !important;
}

/* =========================================================
   03.1 CHECKOUT - GENERAL STYLING / AUTO-HEIGHT MODAL
   ========================================================= */

#snipcart .snipcart-modal {
    height: 100% !important;
}

#snipcart .snipcart__font--subtitle {
    color: #000 !important;
    font-family: Poppins !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    margin-left: 5px !important;
}

#snipcart .snipcart__box--badge {
    width: 35px !important;
    height: 35px !important;

    min-width: 35px !important;
    min-height: 35px !important;

    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background-color: #fff !important;

    border: 1px solid #000 !important;
    border-radius: 50% !important;

    color: #000 !important;
    font-family: Poppins !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1 !important;

    box-sizing: border-box !important;
}

/* =========================================================
   03.2 CHECKOUT BOX SHADOW
   ---------------------------------------------------------
   Alleen de witte, geopende checkout-secties krijgen
   een drop shadow.

   De grijze / ingeklapte secties blijven volledig vlak.
   ========================================================= */

#snipcart .snipcart__box:not(.snipcart__box--gray) {
    box-shadow:
        0 5px 20px -7px rgba(0, 0, 0, 0.5) !important;
}
#snipcart .snipcart__box.snipcart__box--gray {
    box-shadow: none !important;
}

/* =========================================================
   03.2 CHECKOUT STEP ICONS
   ========================================================= */
#snipcart .snipcart-checkout-step__icon .snipcart__icon {
    color: #000000 !important;
}

/* =========================================================
   03.3 CHECKOUT ORDER SUMMARY
   ========================================================= */
#snipcart .snipcart-cart-summary__title {
    margin: 0px !important;
}

#snipcart .snipcart-cart-summary-item {
    margin-right: 0px !important;
}

#snipcart .snipcart-cart-summary-item span {
    color: #000 !important;
    font-family: Poppins !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
}

/* =========================================================
   03.4 CHECKOUT FORM LABELS
   ---------------------------------------------------------
   Geldt voor checkout-labels, maar niet voor product custom 
   fields in de cart.
   ========================================================= */
#snipcart .snipcart-form__label:not(.snipcart-custom-field-wrapper__label) {
    color: #000 !important;

    font-family: Poppins !important;
    font-size: 14px !important;
    font-weight: 300 !important;

    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* =========================================================
   03.4 FORM VALIDATION ERRORS
   ========================================================= */
   
#snipcart .snipcart-field-error {
    font-family: Poppins !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    color: #d04f3d !important;
}

/* =========================================================
   03.5 CHECKOUT FORM FIELDS
   ========================================================= */
#snipcart .snipcart-input:focus, #snipcart .snipcart-input:focus-within, #snipcart .snipcart-input__input:focus {
    outline: none !important;
    box-shadow: none !important;
}
#snipcart .snipcart-input {
    border-color: #bbb !important;
    color: #000 !important;
}
#snipcart .snipcart-input:hover {
    border-color: #000 !important;
}
#snipcart .snipcart-input:focus-within {
    border-color: #000 !important;
}
#snipcart .snipcart-input--invalid {
    border-color: #d04f3d !important;
    color: #000 !important;
}
#snipcart .snipcart-textbox {
    border-color: #bbb !important;
    color: #000 !important;
}
#snipcart .snipcart-textbox:hover {
    border-color: #000 !important;
}
#snipcart .snipcart-textbox:focus-within {
    border-color: #000 !important;
    box-shadow: none !important;
    outline: none !important;
}

#snipcart .snipcart-form__select-wrapper .snipcart__icon {
    color: #000 !important;
}
#snipcart .snipcart-typeahead--invalid, #snipcart .snipcart-textbox--invalid {
    border-color: #d04f3d !important;
}

/* =========================================================
   03.6 CHECKOUT CHECKBOX FIELD
   ========================================================= */

/* Normaal */
#snipcart .snipcart-form__label--checkbox::before {
    border: 1px solid #aaa !important;
    background: #fff !important;
}
#snipcart .snipcart-form__label--checkbox:hover::before {
    border-color: #000 !important;
}
#snipcart .snipcart-checkbox:focus  + .snipcart-form__label--checkbox::before,
#snipcart .snipcart-checkbox:focus-visible + .snipcart-form__label--checkbox::before {
    box-shadow: none !important;
}
#snipcart .snipcart-checkbox:checked + .snipcart-form__label--checkbox::before {
    background: #000 !important;
    border-color: #000 !important;
    box-shadow: none !important;
}

#snipcart .snipcart-form__label--checkbox {
    color: #000 !important;
    font-family: Poppins !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
}

/* =========================================================
   03.7 CHECKOUT DROPDOWN FIELD
   ========================================================= */

#snipcart .snipcart-typeahead__suggestions {
    border-color: #000000 !important;
}

#snipcart .snipcart-typeahead__select {
    border-color: #000000 !important;
}

#snipcart .snipcart-typeahead__content {
    border-color: #000000 !important;
}

#snipcart .snipcart-typeahead__suggestion--active {
    background-color: #eee;
}

#snipcart .snipcart-typeahead__suggestion--option {
    color: #000 !important;
    font-family: Poppins !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
}

/* =========================================================
   03.8 BILLING / SHIPPING TEXT
   ========================================================= */

#snipcart .snipcart-billing-completed__information,
#snipcart .snipcart-shipping-completed__information,
#snipcart .snipcart__notice--with-icon {
    color: #000 !important;
    font-family: Poppins !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
}

/* =========================================================
   03.8 BILLING / SHIPPING TEXT
   ========================================================= */
#snipcart .snipcart-shipping-address__subtitle {
    color: #000 !important;
    font-family: Poppins !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
}

/* =========================================================
   SHIPPING RATE - SELECTED
   Zwarte rand + zwarte radio button
   ========================================================= */

/* Geselecteerde verzendmethode: blauwe rand -> zwart */
#snipcart .snipcart-shipping-rates-list-item--highlight {
    border-color: #000000 !important;
}

/* Originele Snipcart radio: blauw -> zwart */
#snipcart .snipcart-shipping-rates-list-item--highlight
.snipcart-form-radio__label::before {
    border-color: #000000 !important;
    background-color: #000000 !important;
}

/* =========================================================
   03.9 CHECKOUT HYPERLINKS
   ========================================================= */
#snipcart .snipcart-button-link {
    color: #000 !important;
    font-family: Poppins !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-underline-offset: 2px;
}

#snipcart .snipcart-button-link:hover {
    color: #989898 !important;
}

/* =========================================================
    DESKTOP CHECKOUT - EDIT CART FOOTER
    ---------------------------------------------------------
    Maakt de footer van de Edit Cart even breed als de
    productregels erboven.

    Alleen desktop + side cart.
    ========================================================= */

#snipcart .snipcart-layout__content--side .snipcart-cart__footer {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
}
#snipcart .snipcart-layout__content--side .snipcart-cart__footer-col {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
#snipcart .snipcart-layout__content--side .snipcart-summary-fees {
    width: 100% !important;
}

#snipcart .snipcart-layout__content--side .snipcart-summary-fees__item {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* =========================================================
   04. MOBILE CART AND CHECKOUT (MAX-WIDTH: 767PX)
   ---------------------------------------------------------
   Geldt uitsluitend voor schermen t/m 767px.

   Structuur:
   - Cart summary bovenaan
   - Continue shopping links / cart rechts
   - Productafbeelding + productinformatie
   - Quantity links / prijs + remove rechts
   - Footer op dezelfde horizontale uitlijning
   ========================================================= */

@media screen and (max-width: 767px) {

    /* =====================================================
       04.1 CART WRAPPER / HEADER
       ===================================================== */

    #snipcart .snipcart-cart-header.sq-custom-cart-header {
        position: static !important;

        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;

        width: auto !important;
        max-width: none !important;

        margin-top: 25px !important;
        margin-right: 16px !important;
        margin-bottom: 20px !important;
        margin-left: 16px !important;

        padding: 0 !important;

        row-gap: 10px !important;

        box-sizing: border-box !important;
        background-color: #ffffff !important;
    }


    /* -----------------------------------------------------
       Cart summary
       Volledige eerste rij
       ----------------------------------------------------- */

    #snipcart .sq-custom-cart-header-title {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        justify-self: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #snipcart .snipcart-cart-header__title {
        margin: 0 !important;
        padding: 0 !important;
        color: #000000 !important;
        font-family: Poppins !important;
        font-size: 30px !important;
        font-weight: 500 !important;
        text-align: center !important;
    }

    /* -----------------------------------------------------
       Cart + item count
       Tweede rij, volledig rechts
       ----------------------------------------------------- */

    #snipcart .snipcart-cart-header__options {
        grid-column: 2 !important;
        grid-row: 2 !important;

        justify-self: stretch !important;
        align-self: center !important;

        display: flex !important;
        justify-content: flex-end !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    #snipcart .snipcart-cart-header__count {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;

        gap: 8px !important;

        margin: 0 !important;
        padding: 0 5px 0 0 !important;

        color: #000000 !important;

        font-family: Poppins !important;
        font-size: 18px !important;
        font-weight: 400 !important;
        line-height: 1 !important;
    }
    #snipcart .snipcart-cart-header__count .icon--cart {
        width: 30px !important;
        height: auto !important;

        flex-shrink: 0 !important;
    }


    /* =====================================================
       04.2 PRODUCT ROW
       -----------------------------------------------------
       Rij 1:
       afbeelding | productinformatie

       Rij 2:
       quantity | prijs | remove
       ===================================================== */

    #snipcart .product-wrapper {
        display: grid !important;

        grid-template-columns:
            110px
            minmax(0, 1fr)
            36px !important;

        grid-template-rows:
            auto
            auto !important;

        column-gap: 16px !important;
        row-gap: 12px !important;

        width: calc(100% - 40px) !important;

        margin: 0 20px !important;
        padding: 20px 0 !important;

        box-sizing: border-box !important;
    }


    /* -----------------------------------------------------
       Productafbeelding
       ----------------------------------------------------- */

    #snipcart .image-wrapper {
        grid-column: 1 !important;
        grid-row: 1 !important;

        width: 110px !important;
        height: 110px !important;
    }


    /* -----------------------------------------------------
       Productinformatie
       ----------------------------------------------------- */

    #snipcart .product-description {
        grid-column: 2 / 4 !important;
        grid-row: 1 !important;

        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;

        overflow: visible !important;
    }
    #snipcart .product-name {
        width: 100% !important;
        max-width: 100% !important;

        white-space: normal !important;

        overflow-wrap: break-word !important;
        word-break: normal !important;

        line-height: 1.35 !important;
    }


    /* =====================================================
       04.3 PRODUCT CUSTOM FIELDS
       -----------------------------------------------------
       Labels blijven volledig zichtbaar.
       Lange waarden mogen over meerdere regels lopen.
       ===================================================== */

    #snipcart .snipcart-item-custom-fields {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        min-width: 0 !important;

        gap: 12px !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    #snipcart .snipcart-item-custom-fields__field {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
    }
    #snipcart .snipcart-custom-field-wrapper__label, #snipcart .snipcart-custom-field-wrapper__label * {
        display: block !important;

        width: 100% !important;

        margin: 0 0 2px !important;
        padding: 0 !important;

        color: #000000 !important;

        font-family: Poppins !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.4 !important;

        white-space: normal !important;
    }
    #snipcart .snipcart-custom-field-wrapper__label::after {
        content: "" !important;
    }
    #snipcart .snipcart-custom-field-wrapper__input {
        display: block !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
    }

    #snipcart .snipcart-custom-field-wrapper__input span {
        display: block !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        color: #777777 !important;

        font-family: Poppins !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.45 !important;

        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;

        overflow-wrap: break-word !important;
        word-break: normal !important;
    }


    /* =====================================================
       04.4 QUANTITY / PRICE / REMOVE
       ===================================================== */
    #snipcart .snipcart-item-quantity {
        grid-column: 1 !important;
        grid-row: 2 !important;

        justify-self: start !important;
        align-self: center !important;

        margin: 0 0 0 -15px !important;

        transform: none !important;
    }
    #snipcart .item-price-wrapper {
        grid-column: 2 !important;
        grid-row: 2 !important;

        justify-self: end !important;
        align-self: center !important;

        margin: 0 !important;
    }
    #snipcart .remove-item-wrapper {
        grid-column: 3 !important;
        grid-row: 2 !important;

        justify-self: end !important;
        align-self: center !important;

    margin: 0 -5px 0 0 !important;

        transform: none !important;
    }

    /* =========================================================
       04.5 BUTTON FEEDBACK
       ---------------------------------------------------------
       Desktop:
       cirkel verschijnt bij hover.

       Mobile:
       cirkel verschijnt uitsluitend zolang de knop wordt
       ingedrukt en verdwijnt onmiddellijk na loslaten.
       ========================================================= */
    #snipcart .snipcart-button-icon.is-small.is-secondary {
        background-color: transparent !important;
    }
    #snipcart .snipcart-button-icon.is-small.is-secondary:active {
        background-color: #e7e7e7 !important;
    }
    #snipcart .snipcart-button-icon.is-small.is-secondary:hover:not(:active) {
        background-color: transparent !important;
    }

    /* =====================================================
       04.6 CART FOOTER
       -----------------------------------------------------
       Zelfde horizontale uitlijning als header/producten.
       ===================================================== */

    #snipcart .snipcart-cart__footer {
        padding: 0 16px 0 16px !important;
        box-sizing: border-box !important;
    }

    /* =========================================================
       04.7 CHECKOUT HEADER
       ---------------------------------------------------------
       In de cart bestaat de header uit:
       rij 1 = Cart summary
       rij 2 = Continue shopping + cart

       In de checkout is er geen Cart summary.
       Daarom plaatsen we de controls daar in rij 1.
       ========================================================= */

    #snipcart .snipcart-checkout__header {
        grid-template-rows: auto !important;
        row-gap: 0 !important;
    }
    #snipcart .snipcart-checkout__header .snipcart-cart-header__close-button {
        grid-column: 1 !important;
        grid-row: 1 !important;

        align-self: center !important;
    }
    #snipcart .snipcart-checkout__header .snipcart-cart-header__options {
        grid-column: 2 !important;
            grid-row: 1 !important;

        align-self: center !important;
    }

    /* =========================================================
        MOBILE CHECKOUT - ORDER SUMMARY ARROW
        ---------------------------------------------------------
        Maakt zowel het neerwaartse als opwaartse pijltje zwart
        ========================================================= */

    #snipcart .snipcart-checkout__header .snipcart__icon--medium, #snipcart .snipcart-checkout__header .snipcart__icon--medium path {
        color: #000 !important;
        stroke: #000 !important;
        fill: none !important;
    }

    /* =========================================================
        MOBILE CHECKOUT - STEP TITLE + BADGE ALIGNMENT
        ---------------------------------------------------------
        Lijnt Billing / Shipping / Payment uit met de linkerzijde
        van de form fields en verplaatst de step badge iets verder
        naar links.
        ========================================================= */
        
    #snipcart .snipcart__box--slim .snipcart__box--header {
        transform: translateX(-17px) !important;
    }
    #snipcart .snipcart__box--title {
            transform: translateX(-5px) !important;
    }

    /* =========================================================
       04.10 FIRST NAME / LAST NAME
       ---------------------------------------------------------
       Desktop: naast elkaar
       Mobiel: onder elkaar
       ========================================================= */

    #snipcart .snipcart-form__row {
        display: flex !important;
        flex-direction: column !important;

        gap: 0 !important;

        width: 100% !important;
    }

    #snipcart .snipcart-form__row > .snipcart-form__field {
        width: 100% !important;
        max-width: none !important;

        flex: 0 0 auto !important;
    }

    /* =========================================================
       04.11 SPACE BETWEEN CHECKOUT STEPS
       ========================================================= */

    #snipcart .snipcart-checkout-step + .snipcart-checkout-step {
        margin-top: 24px !important;
    }

    /* =========================================================
       04.12 MOBILE EDIT CART - PRODUCT LAYOUT
       ---------------------------------------------------------
       Geeft de Edit Cart dezelfde layout als de gewone
       mobiele cart.

       Rij 1:
       afbeelding | productinformatie

       Rij 2:
       quantity   | prijs | remove
       ========================================================= */
    #snipcart .snipcart-layout__content--side .product-wrapper {
        display: grid !important;

        grid-template-columns:
            110px
            minmax(0, 1fr)
            36px !important;

        grid-template-rows:
            auto
            auto !important;

        column-gap: 16px !important;
        row-gap: 12px !important;

        width: calc(100% - 40px) !important;

        margin: 0 20px !important;
        padding: 20px 0 !important;

        box-sizing: border-box !important;
    }
    #snipcart .snipcart-layout__content--side .image-wrapper {
        grid-column: 1 !important;
        grid-row: 1 !important;

        width: 110px !important;
        height: 110px !important;

        margin: 0 !important;
    }
    #snipcart .snipcart-layout__content--side .product-description {
        grid-column: 2 / 4 !important;
        grid-row: 1 !important;

        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;

        margin: 0 !important;

        overflow: visible !important;
    }
    #snipcart .snipcart-layout__content--side .product-name {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 0 10px !important;

        white-space: normal !important;
        overflow-wrap: break-word !important;
    }


    /* =========================================================
       04.13 MOBILE EDIT CART - QUANTITY / PRICE / REMOVE
       ========================================================= */
    #snipcart .snipcart-layout__content--side .snipcart-item-quantity {
        grid-column: 1 !important;
        grid-row: 2 !important;

        justify-self: start !important;
        align-self: center !important;

        margin: 0 0 0 -15px !important;

        transform: none !important;
    }
    #snipcart .snipcart-layout__content--side .item-price-wrapper {
        grid-column: 2 !important;
        grid-row: 2 !important;

        justify-self: end !important;
        align-self: center !important;

        margin: 0 !important;
    }
    #snipcart .snipcart-layout__content--side .remove-item-wrapper {
        grid-column: 3 !important;
        grid-row: 2 !important;

        justify-self: end !important;
        align-self: center !important;

        margin: 0 -5px 0 0 !important;

        transform: none !important;
    }
    #snipcart .snipcart-layout__content--side .snipcart-item-quantity__quantity.snipcart__font--std {
        transform: none !important;
    }

    /* =========================================================
       04.14 MOBILE EDIT CART - FOOTER
       ---------------------------------------------------------
       Geeft extra ruimte tussen het laatste product
       en Subtotal / Shipping / Taxes / Total.
       ========================================================= */

    #snipcart .snipcart-layout__content--side .snipcart-cart__footer {
        margin-top: 20px !important;
    }

}

/* =========================================================
   05.1 ORDER DETAILS / PAYMENT CONFIRMATION
   ---------------------------------------------------------
   De volledige orderbevestiging krijgt dezelfde drop shadow
   als de geopende checkout-secties.

   De interne order-boxen blijven vlak en krijgen zelf
   geen afzonderlijke schaduw.
   ========================================================= */

#snipcart .snipcart-order__details {
    box-shadow:
        0 5px 20px -7px rgba(0, 0, 0, 0.5) !important;
}

/* Geen afzonderlijke shadow op de child boxes */
#snipcart .snipcart-order__details > .snipcart__box,
#snipcart .snipcart-order__details
    .snipcart-order__details__content > .snipcart__box,
#snipcart .snipcart-order__details
    .snipcart-order__details__content > footer.snipcart__box {
    box-shadow: none !important;
}

/* Alle iconen binnen de order confirmation zwart */
#snipcart .snipcart-order__details .snipcart__icon,
#snipcart .snipcart-order__details svg {
    color: #000000 !important;
    stroke: #000000 !important;
}

#snipcart .snipcart-order__details svg path,
#snipcart .snipcart-order__details svg line,
#snipcart .snipcart-order__details svg polyline,
#snipcart .snipcart-order__details svg circle {
    stroke: #000000 !important;
}

/* =========================================================
   05.2 VELDEN COMPANY NAME & VAT NUMBER
   ---------------------------------------------------------
   De volgende CSS code regelt het al dan niet tonen van
   de velden Company Name en VAT Number in het checkout form
   ========================================================= */

/* De velden Company Name en VAT Number worden standaard verborgen */
#sq-custom-customer-type-field-block {
    display: none;
}

/* Zodra de checkbox "I'm ordering for business" gecheckt is, 
   worden de velden Company Name en VAT Number getoond */
#sq-custom-customer-type:checked ~ #sq-custom-customer-type-field-block {
    display: block;
}

/* =========================================================
   05.3 LAYOUT COMPANY/VAT DATA IN DE BILLING SUMMARY
   ---------------------------------------------------------
   De volgende CSS code zorgt ervoor dat de Company Name en
   het VAT Nummer mooi worden weergegeven binnen het grijze
   Billing Summary blok
   ========================================================= */

#snipcart .snipcart-checkout-step__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#snipcart .sq-custom-billing-company-summary {
    grid-column: 1 / span 2;
}

#snipcart .snipcart-checkout-step__col{
    width: 100% !important;
}
