/* =============================================================
   ADD-TO-CART POPUP - Kristalonline
   Montserrat, frisse opmaak, groene checkout-knop
   MCE Digital
   ============================================================= */

/* --- Magnific container transparant (punt 1: witte rand rond hoeken weg) --- */
.mfp-cart-popup .mfp-content {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.mc-popup-cart {
    background: var(--color-darkblue, #444D60);
    margin: 0 auto;
    max-width: 640px;
    width: 92%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--color-darkblue, #444D60);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* --- Titel --- */
.mc-popup-heading {
    background: var(--color-darkblue, #444D60);
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    padding: 16px 22px;
    position: relative;
    /* Negatieve marge zodat de darkblue tot in de afgeronde hoeken loopt
       en er geen witte parent-achtergrond doorheen schemert (bleed-fix).
       De overflow:hidden van de parent knipt het overschot netjes weg. */
    margin: -1px -1px 0 -1px;
}

/* Close-button dunner (punt 5) - dun kruisje via twee lijnen ipv dik fa-icoon */
.mc-popup-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.15s;
}
.mc-popup-close:hover { opacity: 1; }
.mc-popup-close:before,
.mc-popup-close:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 1px;                 /* dun */
    background: #ffffff;
}
.mc-popup-close:before { transform: translate(-50%, -50%) rotate(45deg); }
.mc-popup-close:after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* --- Content --- */
.mc-popup-content { padding: 18px 22px; background:#fff ; }

/* --- Productregel --- */
.mc-popup-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #eceae7;
}
.mc-popup-row:first-child { padding-top: 4px; }

.mc-popup-thumb {
    flex: 0 0 64px;
    text-align: center;
}
.mc-popup-thumb img {
    max-width: 64px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #eceae7;
}

.mc-popup-info {
    flex: 1 1 auto;
    min-width: 0;
}
.mc-popup-name {
    font-weight: 600;
    color: var(--color-darkblue, #444D60);
    text-decoration: none;
    font-size: 14px;
    display: block;
    line-height: 1.3;
}
.mc-popup-name:hover { color: var(--color-lightblue, #5C79AC); }

.mc-popup-model {
    font-size: 12px;
    color: #9a938a;
    margin-top: 2px;
}
.mc-popup-option {
    font-size: 12px;
    color: #9a938a;
    margin-top: 2px;
}

/* --- Voorraadstatus (punt 7: eigen SVG-stijl, geen achtergrond) --- */
.mc-popup-stock {
    margin-top: 6px;
    font-size: 13px;
}
/* De availability-module output netjes tonen zonder Bootstrap-label achtergrond */
.mc-popup-stock .label {
    background: transparent !important;
    padding: 0 !important;
    font-size: 13px;
    font-weight: 500;
    white-space: normal;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    line-height: 18px;
}
/* Kleuren per status */
.mc-popup-stock .label-success { color: #2e9d3a; }   /* op voorraad = groen */
.mc-popup-stock .label-info,
.mc-popup-stock .label-primary { color: #0B3058; }    /* alleen afhalen = blauw */
.mc-popup-stock .label-warning { color: var(--color-lightblue, #5C79AC); }
.mc-popup-stock .label-danger  { color: #c0392b; }

/* Iconen voor de voorraadstatus (SVG, geen achtergrond) */
.mc-popup-stock .label-success:before {
    content: url("../image/opvoorraad.svg");
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 2px;
}
.mc-popup-stock .label-info:before,
.mc-popup-stock .label-primary:before {
    content: url("../image/alleenafhalen.svg");
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 2px;
}

/* --- Aantal plus/minus (punt 3: zoals winkelwagenpagina) ---
   Hele blok een border in darkblue; knoppen zonder achtergrond/border;
   icons in darkblue. */
.mc-popup-qty {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    overflow: hidden;
}
.mc-popup-qty-btn {
    width: 30px;
    height: 32px;
    border: none;
    background: none;
    color: var(--color-darkblue, #444D60);
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}
.mc-popup-qty-btn:hover { color: var(--color-lightblue, #5C79AC); }
.mc-popup-qty-input {
    width: 38px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
    color: var(--color-darkblue, #444D60);
    background: #fff;
    -moz-appearance: textfield;
}

.mc-popup-total {
    flex: 0 0 auto;
    font-weight: 600;
    font-size: 14px;
    min-width: 72px;
    text-align: right;
}

.mc-popup-remove { flex: 0 0 auto; }
.mc-popup-btn-remove {
    border: none;
    background: none;
    color: #c0392b;
    padding: 6px;
    cursor: pointer;
    font-size: 16px;
}
.mc-popup-btn-remove:hover { color: #a52c1f; }

/* --- Totalen (punt 2: laatste regel = Totaal duidelijk apart) --- */
.mc-popup-totals {
    margin-top: 14px;
    padding-top: 12px;
}
.mc-popup-total-row {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    padding: 4px 0;
    font-size: 14px;
}
.mc-popup-total-title { color: inherit; }
.mc-popup-total-text { min-width: 90px; text-align: right; }
.mc-popup-total-last {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-darkblue, #444D60);
    border-top: 1px solid #eceae7;
    margin-top: 6px;
    padding-top: 10px;
}
.mc-popup-total-last .mc-popup-total-title,
.mc-popup-total-last .mc-popup-total-text {
    color: var(--color-darkblue, #444D60);
}

/* --- Buttons --- */
.mc-popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eceae7;
    gap: 12px;
}
.mc-popup-btn-back {
    color: var(--color-darkblue, #444D60);
    background: #f5f3f1;
    border: 1px solid #dcd8d3;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
}
.mc-popup-btn-back:hover {
    background: #e9e6e2;
    text-decoration: none;
    color: var(--color-darkblue, #444D60);
}
.mc-popup-btn-checkout {
    background: #2e9d3a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 40px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
}
.mc-popup-btn-checkout:hover {
    background: #278233;
    text-decoration: none;
    color: #ffffff;
}

.mc-popup-empty {
    text-align: center;
    padding: 20px;
    color: #7a736b;
}

/* --- Standaard OC add-to-cart notificatie verbergen --- */
#product-product > .alert-success,
.product-info > .alert-success {
    display: none !important;
}

/* --- Mobiel --- */
@media (max-width: 540px) {
    .mc-popup-row {
        flex-wrap: wrap;
    }
    .mc-popup-thumb { flex: 0 0 50px; }
    .mc-popup-thumb img { max-width: 50px; }
    .mc-popup-info { flex: 1 1 60%; }
    .mc-popup-total {
        min-width: 0;
        flex: 1 1 100%;
        text-align: right;
        margin-top: 6px;
    }
    .mc-popup-footer {
        flex-direction: column-reverse;
    }
    .mc-popup-btn-back,
    .mc-popup-btn-checkout {
        width: 100%;
        text-align: center;
    }
}