/**
 * Catering cart rows only — loaded on cart page via gerbou-catering.php.
 * Does not affect shop, checkout, or other WooCommerce pages.
 */

 .ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering td.product-thumbnail {
	width: 110px;
	min-width: 110px;
	padding-right: 20px;
	vertical-align: middle;
}

.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering td.product-thumbnail a,
.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering td.product-thumbnail .gerbou-cart-thumb {
	display: block;
	width: 96px;
	height: 96px;
	flex-shrink: 0;
}

.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .gerbou-cart-thumb,
.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering td.product-thumbnail img,
.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .gerbou-cart-item-thumb {
	width: 96px !important;
	height: 96px !important;
	min-width: 96px;
	min-height: 96px;
	max-width: none !important;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .product-remove a {
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
}

.woocommerce-cart-form tr.gerbou-cart-row--updating {
	opacity: 0.65;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.woocommerce-cart-form tr.gerbou-cart-row--updating td {
	position: relative;
}

.woocommerce-cart-form tr.gerbou-cart-row--updated td {
	animation: gerbou-cart-row-flash 1.2s ease;
}

@keyframes gerbou-cart-row-flash {
	0%,
	100% {
		background-color: transparent;
	}
	35% {
		background-color: rgba(181, 144, 77, 0.14);
	}
}

.woocommerce-cart-form tr.gerbou-cart-row--removing {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.woocommerce-cart-form tr.gerbou-cart-row--removed {
	opacity: 0;
	transition: opacity 0.25s ease;
}

.woocommerce-cart-form .product-remove a.is-removing {
	opacity: 0.35;
	pointer-events: none;
	cursor: wait;
	position: relative;
	color: transparent;
}

.woocommerce-cart-form .product-remove a.is-removing::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(192, 172, 146, 0.35);
	border-top-color: rgba(157, 127, 54, 1);
	border-radius: 50%;
	animation: gerbou-cart-remove-spin 0.65s linear infinite;
}

@keyframes gerbou-cart-remove-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Grouped cart sections (Figma: Set Package / Custom Package) */
.ger-cart-wrapper--grouped .gerbou-cart-sections {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	margin-bottom: 2rem;
}

.gerbou-cart-section__title {
	margin: 0 0 1.25rem;
	font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 600;
	line-height: 1.2;
	color: #000;
}

.ger-cart-wrapper--grouped .gerbou-cart-section__table {
	margin-bottom: 0;
}

.ger-cart-wrapper--grouped .gerbou-cart-section__table thead th {
	font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-transform: none;
	color: #717171;
	border-bottom: 1px solid #e8e0d0;
	padding-bottom: 12px;
}

.ger-cart-wrapper--grouped .gerbou-cart-form-actions {
	margin-top: 1.5rem;
	padding-top: 1rem;
}

.ger-cart-wrapper--has-catering .woocommerce-cart-form.processing .gerbou-cart-form-actions [name="update_cart"] {
	opacity: 0.7;
	cursor: wait;
}

.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .product-selection,
.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .product-qty,
.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .product-quantity {
	text-align: center;
	vertical-align: middle;
}

/* Qty stepper */
.gerbou-cart-qty {
	display: inline-flex;
	align-items: stretch;
	background: #faf6ef;
	border: 1px solid #e8e0d0;
	border-radius: 9999px;
	overflow: hidden;
	min-height: 44px;
}

.gerbou-cart-qty.is-loading {
	opacity: 0.65;
	pointer-events: none;
}

.gerbou-cart-qty__btn {
	width: 44px;
	flex-shrink: 0;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 1.25rem;
	line-height: 1;
	color: #262626;
	cursor: pointer;
	transition: background 0.2s ease;
}

.gerbou-cart-qty__btn:hover {
	background: #ffe6ba;
}

.gerbou-cart-qty__input {
	width: 2.75rem;
	min-width: 2.75rem;
	padding: 0;
	border: none;
	border-left: 1px solid #e8e0d0;
	border-right: 1px solid #e8e0d0;
	background: #fff;
	text-align: center;
	font-size: 1rem;
	font-weight: 600;
	color: #000;
	-moz-appearance: textfield;
}

.gerbou-cart-qty__input::-webkit-outer-spin-button,
.gerbou-cart-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .gerbou-cart-size,
.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .gerbou-cart-size-select {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 113px;
	padding: 10px 20px;
	border: 1px solid rgba(192, 172, 146, 1);
	border-radius: 100px;
	font-size: 14px;
	color: #000;
	background: #fff;
	font-family: inherit;
	line-height: 1.2;
}

.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .gerbou-cart-size-field {
	display: inline-block;
}

.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .gerbou-cart-size-select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 36px;
	cursor: pointer;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
	text-align: center;
	text-align-last: center;
}

.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .gerbou-cart-size-field.is-loading,
.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .gerbou-cart-size-select.is-loading {
	opacity: 0.65;
	pointer-events: none;
}

.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .gerbou-cart-size-field.is-loading {
	position: relative;
}

.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .gerbou-cart-size-field.is-loading::after {
	content: '';
	position: absolute;
	right: 14px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid rgba(157, 127, 54, 0.25);
	border-top-color: rgba(157, 127, 54, 1);
	border-radius: 50%;
	animation: gerbou-cart-remove-spin 0.65s linear infinite;
}

/* Cart page toasts (same pattern as custom package popup) */
.gerbou-catering-toast-root {
	position: fixed;
	z-index: 100050;
	top: clamp(1rem, 4vw, 1.5rem);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	pointer-events: none;
	max-width: min(24rem, calc(100vw - 2rem));
}

.gerbou-catering-toast {
	padding: 0.75rem 1.25rem;
	border-radius: 9999px;
	font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	color: #fff;
	background: #262626;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	opacity: 0;
	transform: translateY(-0.5rem);
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.gerbou-catering-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.gerbou-catering-toast--loading {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #262626;
}

.gerbou-catering-toast__spinner {
	flex-shrink: 0;
	width: 0.875rem;
	height: 0.875rem;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: gerbou-cart-remove-spin 0.7s linear infinite;
}

.gerbou-catering-toast--success {
	background: #85652c;
}

.gerbou-catering-toast--error {
	background: #8b2e2e;
}

.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .gerbou-cart-size-select:focus {
	outline: 2px solid rgba(157, 127, 54, 0.45);
	outline-offset: 2px;
}

.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .product-name {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
}

.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .product-name .wc-item-meta,
.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .product-name dl.variation {
	display: none;
}


.gerbou-cart-cell-value-mobile{ display: none  ;}





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

.woocommerce .woocommerce-cart-form table.shop_table td{ padding: 38px 9px !important;}
.woocommerce-cart-form{margin-bottom: 30px !important;}
}

@media only screen and (min-width: 768px) {
.ger-cart-wrapper--has-catering span.gerbou-cart-cell-label
 {
    display: none !important;
}
}






@media only screen and (max-width: 768px) {
	.ger-cart-wrapper .woocommerce-cart-form table.shop_table_responsive thead {
		display: none;
	}

	.ger-cart-wrapper .woocommerce-cart-form table.shop_table_responsive,
	.ger-cart-wrapper .woocommerce-cart-form table.shop_table_responsive tbody,
	.ger-cart-wrapper .woocommerce-cart-form table.shop_table_responsive tr,
	.ger-cart-wrapper .woocommerce-cart-form table.shop_table_responsive td {
		display: block;
		width: 100%;
	}

	.ger-cart-wrapper .woocommerce-cart-form table.shop_table_responsive tr {
		margin-bottom: 20px;
		padding: 15px;
		border: 1px solid #e5e5e5;
		border-radius: 10px;
		background: #fff;
	}

	.ger-cart-wrapper .woocommerce-cart-form table.shop_table_responsive td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 10px 0;
		border: 0 !important;
		text-align: right !important;
	}

	/* .ger-cart-wrapper .woocommerce-cart-form table.shop_table_responsive td ::before {
		content: attr(data-title);
		font-weight: 600;
		text-align: left;
		margin-right: 15px;
		float: none;
		flex-shrink: 0;
	} */

	.ger-cart-wrapper .woocommerce-cart-form table.shop_table_responsive .product-remove::before,
	.ger-cart-wrapper .woocommerce-cart-form table.shop_table_responsive .product-thumbnail::before {
		display: none;
	}

	.ger-cart-wrapper .woocommerce-cart-form table.shop_table_responsive .product-remove,
	.ger-cart-wrapper .woocommerce-cart-form table.shop_table_responsive .product-thumbnail {
		justify-content: center;
	}

	.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .gerbou-cart-thumb,
	.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering td.product-thumbnail img,
	.ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .gerbou-cart-item-thumb {
		width: 72px !important;
		height: 72px !important;
		min-width: 72px;
		min-height: 72px;
	}

	.gerbou-cart-thumb ::before{ display: none !important;}

	.gerbou-cart-cell-value-mobile{ display: block !important;}
	.gerbou-cart-cell-value-mobile a{ width: 25px !important; height: 25px !important; line-height: 15px !important; font-size: 15px !important; border: solid 1px #000 !important; display: flex !important;
        align-items: center;
        justify-content: center;}


	.product-remove.hide-mobile{ display: none !important;}

 .product-thumbnail-mobile{ display: flex !important;  justify-content: space-between;  }


 .ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering td.product-thumbnail{ justify-content: space-between !important;}
 .ger-cart-wrapper--has-catering .woocommerce-cart-form tr.gerbou-cart-item--catering .gerbou-cart-size-select{min-width: 134px;}


 .cart-collaterals .shop_table.shop_table_responsive th { display: flex !important;  }
 .cart-collaterals .shop_table.shop_table_responsive tr { display: inline-flex !important; width: 100%;  }
 .woocommerce-cart-form{ margin-bottom: 25px;}
 .gerbou-cart-sections .gerbou-cart-section__title{ font-size: 20px;}
 .ger-cart-wrapper .woocommerce-cart-form table.shop_table_responsive tr{padding: 0;}
 .woocommerce-cart-form__cart-item .product-selection .gerbou-cart-size{ min-width: 134px !important;}
 .woocommerce .woocommerce-cart-form table.shop_table td { padding: 10px 9px !important; }
}


