/**
 * WooCommerce Bold Cart Styles
 */

/* Algemene stijlen voor de winkelwagen */
.wbc-cart-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Reset WooCommerce notice styling */
body.woocommerce-cart .woocommerce-notices-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* WooCommerce Notices */
.woocommerce-notices-wrapper {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    position: relative;
    z-index: 999999;
}

/* Reset WooCommerce default notice styles */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info,
.wc-popup-notice {
    margin: 0 0 20px;
    padding: 1em 2em 1em 3.5em;
    position: relative;
    list-style: none outside;
    width: auto;
    word-wrap: break-word;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 999999;
}

/* Remove ALL possible overlay styles */
.woocommerce-notices-wrapper::before,
.woocommerce-notices-wrapper::after,
.wc-popup-notice::before,
.wc-popup-notice::after,
#wc-popup-notice-overlay,
.wc-popup-notice-overlay,
.popup-notice-overlay,
.notice-overlay,
body > .overlay,
.modal-overlay,
#modal-overlay,
.woocommerce-notices-wrapper > *::before,
.woocommerce-notices-wrapper > *::after,
.wc-notices-wrapper::before,
.wc-notices-wrapper::after,
.wc-notices-overlay,
#wc-notices-overlay,
.notices-overlay,
#notices-overlay,
[class*="overlay"],
[id*="overlay"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Reset body styles */
body::before,
body::after,
html::before,
html::after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background: transparent !important;
    content: none !important;
}

body,
html {
    overflow: visible !important;
    background: transparent !important;
}

/* Ensure notices are always on top and visible */
.woocommerce-message,
.wc-popup-notice.is-success,
.woocommerce-error,
.wc-popup-notice.is-error,
.woocommerce-info,
.wc-popup-notice.is-info,
.wc-popup-notice {
    position: relative !important;
    z-index: 999999 !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Notice colors */
.woocommerce-message,
.wc-popup-notice.is-success {
    border-top: 3px solid #679C36 !important;
    color: #515151 !important;
}

.woocommerce-error,
.wc-popup-notice.is-error {
    border-top: 3px solid #b81c23 !important;
    color: #515151 !important;
}

.woocommerce-info,
.wc-popup-notice.is-info {
    border-top: 3px solid #1e85be !important;
    color: #515151 !important;
}

/* Close button styles */
.woocommerce-message .button.wc-forward,
.wc-popup-notice-close {
    position: relative;
    float: right;
    padding: 0;
    margin: -1em -2em -1em 2em;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    line-height: 1;
    cursor: pointer;
    color: #515151 !important;
    font-weight: bold;
    text-decoration: none;
    font-size: 20px;
    z-index: 999999;
}

.woocommerce-message .button.wc-forward::before {
    content: '×';
    font-size: 20px;
    font-weight: bold;
    margin-right: 5px;
}

.woocommerce-message .button.wc-forward:hover,
.wc-popup-notice-close:hover {
    color: #000 !important;
    background: none !important;
}

/* Winkelwagen layout */
.wbc-cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

@media (max-width: 768px) {
    .wbc-cart-layout {
        grid-template-columns: 1fr;
    }
}

/* Producten tabel */
.wbc-cart-items {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wbc-cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr auto;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    color: #555;
}

.wbc-cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr auto;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.wbc-cart-item:last-child {
    border-bottom: none;
}

.wbc-product-info {
    display: flex;
    flex-direction: column;
}

.wbc-product-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.wbc-quantity {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.wbc-quantity-input {
    width: 50px;
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f8f8;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 10px;
    -moz-appearance: textfield; /* Verwijdert pijltjes in Firefox */
}

/* Verwijdert pijltjes in Chrome, Safari, Edge, Opera */
.wbc-quantity-input::-webkit-outer-spin-button,
.wbc-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wbc-price, .wbc-subtotal {
    font-weight: 500;
    font-size: 14px;
}

.wbc-remove {
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.wbc-remove:hover {
    color: #ff6b6b;
}

/* Order samenvatting */
.wbc-order-summary {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.wbc-summary-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.wbc-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.wbc-summary-row.wbc-total {
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.wbc-checkout-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #679C36;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin: 20px 0;
    transition: background-color 0.2s;
}

.wbc-checkout-btn:hover {
    background-color: #528029;
}

/* Knoppen onderaan */
.wbc-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
}

.wbc-cart-buttons {
    display: flex;
    gap: 1rem;
}

.wbc-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wbc-primary-color);
    text-decoration: none;
    font-weight: 500;
}

.wbc-continue-shopping:hover {
    color: var(--wbc-primary-hover-color);
}

.wbc-continue-shopping svg {
    transition: transform 0.2s ease;
}

.wbc-continue-shopping:hover svg {
    transform: translateX(-4px);
}

.wbc-refresh-cart,
.wbc-clear-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wbc-refresh-cart:hover,
.wbc-clear-cart:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

.wbc-refresh-cart svg {
    transition: transform 0.2s ease;
}

.wbc-refresh-cart:hover svg {
    transform: rotate(180deg);
}

/* Lege winkelwagen */
.wbc-empty-cart {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    margin-bottom: 20px;
}

.wbc-empty-cart p {
    margin: 0 0 20px;
    font-size: 16px;
    color: #333;
}

.wbc-empty-cart p:last-child {
    margin-bottom: 0;
}

.wbc-empty-cart .wbc-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wbc-empty-cart .wbc-continue-shopping:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

.wbc-empty-cart .wbc-continue-shopping svg {
    transition: transform 0.2s ease;
}

.wbc-empty-cart .wbc-continue-shopping:hover svg {
    transform: translateX(-4px);
} 