/* Overlay */
.cmcm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    display: none;
}

.cmcm-overlay.active {
    display: block;
}

/* Custom Cart Popup - Center Modal */
.cmcm-cart-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    background: #F6F3ED;
    border: 1px solid #E4E4E5;
    z-index: 99999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
	overflow: hidden;
}

.cmcm-cart-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Cart Header - Removed */

/* Cart Content */
.cmcm-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    position: relative;
}

/* WooCommerce Notices */
.cmcm-notices {
    padding: 0;
}

.cmcm-notices .woocommerce-message,
.cmcm-notices .woocommerce-error,
.cmcm-notices .woocommerce-info {
    padding: 12px 20px;
    margin: 0;
    border: none;
    border-radius: 0;
    list-style: none;
}

.cmcm-notices .woocommerce-message {
    background: #d4edda;
    color: #155724;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(62, 149, 81, 0.25);
	font-weight: 700;
}

.cmcm-notices .woocommerce-error {
    background: #f8d7da;
    color: #721c24;
	border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(62, 149, 81, 0.25);
	font-weight: 700;
}

.cmcm-notices .woocommerce-info {
    background: #d1ecf1;
    color: #0c5460;
	border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(62, 149, 81, 0.25);
	font-weight: 700;
}

.cmcm-notices ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cmcm-notices li {
    list-style: none;
}
.cmcm-winkelwagen-tekst{
	color: #000;
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	line-height: 150%; /* 24px */
	margin-bottom: 10px;
}

/* Vestiging Header */
.cmcm-vestiging-header {
    padding: 15px 20px;
    background: #F6F3ED;
    border-bottom: 1px solid #E4E4E5;
    font-size: 13px;
    line-height: 1.6;
}
.cmcm-vestiging-header .cmcm-vestiging-item {
    display: flex;
    justify-content: space-between;
}

.cmcm-vestiging-plaats {
display: block;
    margin-bottom: 4px;
    color: var(--base-800, #121214);
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%;
}

.cmcm-vestiging-adres {
	color: var(--base-600, #73737D);
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 150%; /* 24px */
}

.cmcm-vestiging-ophaaltijd {
	color: var(--base-800, #121214);
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: 150%; /* 22.5px */
}

/* Cart Items */
.cmcm-cart-items {
    list-style: none;
    margin: 0;
    padding: 1rem;
    background: #F6F3ED;
}

.cmcm-cart-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0px;
    position: relative;
    gap: 15px;
    background: #F6F3ED;
}

.cmcm-remove {
    right: 10px;
    background: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.2s;
    align-self: center;
}

.cmcm-remove:hover {
    color: #dc2626;
}

.cmcm-item-image img {
    display: block;
    border-radius: 4px;
    height: 36px;
    width: 25px;
}

.cmcm-item-details {
    flex: 1;
	display: inline-flex;
}

.cmcm-item-name {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    padding-right: 30px;
}

.cmcm-item-price {
    margin-top: 10px;
    font-weight: 600;
    margin-left: 20px;
    color: #121214;
}

/* Quantity Controls */
.cmcm-qty-controls {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-top: 0px;
    background: #fff;
    margin-left: auto;
    color: #73737D;
    border-radius: 4px;
    border: 1px solid var(--base-300, #E4E4E5);
}

.cmcm-qty {
    cursor: pointer;
    background: #fff;
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    line-height: 1;
}

.cmcm-qty:hover {
    background: #f5f5f5;
    border-color: #999;
}

.cmcm-qty-number {
    min-width: 28px;
    display: inline-block;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

/* Loader */
.cmcm-inline-loader {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top-color: #E73F0C;
    border-radius: 50%;
    animation: cmcm-spin 0.8s linear infinite;
}

/* Cart-level loader overlay */
.cmcm-cart-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.cmcm-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #E73F0C;
    border-radius: 50%;
    animation: cmcm-spin-full 0.8s linear infinite;
}

@keyframes cmcm-spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

@keyframes cmcm-spin-full {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty Cart */
.cmcm-empty-cart {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

/* Cart Footer */
.cmcm-cart-footer {
    padding: 20px;
    border-top: 2px solid #E4E4E5;
    background: #F6F3ED;
    border-radius: 0 0 8px 8px;
}

.cmcm-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    font-size: 16px;
}

.cmcm-cart-total strong {
color: var(--base-600, #73737D);
text-align: right;
/* body styles/body md */
font-family: var(--body-font, Arial);
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 150%; /* 24px */
}

.cmcm-total-amount {
    font-size: 18px;
    font-weight: 700;
}

.cmcm-total-amount del {
	color: var(--base-600, #73737D);
	text-align: right;
	/* body styles/body md */
	font-family: var(--body-font, Arial);
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 150%; /* 24px */
	text-decoration-line: line-through;
}
.cmcm-total-amount ins {
	color: var(--base-800, #121214);
	text-align: right;
	font-family: var(--heading-font, Arial);
	font-size: 24px;
	font-style: normal;
	font-weight: 700;
	line-height: 125%; /* 30px */
	text-decoration: none;
}

.cmcm-cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cmcm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.cmcm-btn-checkout {
    background: #E73F0C;
    color: #fff;
    border: 1px solid #F0643A;
}

.cmcm-btn-checkout:hover {
    background: #d63809;
    border-color: #d63809;
}

.cmcm-btn-continue {
    background: #FFF;
    color: #333;
    border: 1px solid #E4E4E5;
}

.cmcm-btn-continue:hover {
    background: #f5f5f5;
    border-color: #d4d4d4;
}

/* Global Messages */
.cmcm-global-message {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #111;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    display: none;
    z-index: 100000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
}

.cmcm-global-message.error {
    background: #dc2626;
}

.cmcm-global-message.success {
    background: #16a34a;
}

.cmcm-cart-buttons i{
	    font-family: 'fontawesome';
    font-weight: 400;
    opacity: 0.5;
}

/* Add to Cart Loading State */
.add_to_cart_button.cmcm-adding-to-cart {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.add_to_cart_button.cmcm-adding-to-cart::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cmcm-spin-button 0.6s linear infinite;
}

@keyframes cmcm-spin-button {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .cmcm-cart-popup {
        width: 95%;
        max-height: 90vh;
    }
	.cmcm-vestiging-header .cmcm-vestiging-item {
		flex-direction: column;
	}
}
