/* Gift bundle cart — page layout + hamper card */

body.woocommerce-cart {
	background: #faf9f6;
}

body.woocommerce-cart .ttl-shop-wrapper {
	padding: 28px 0 44px;
	margin: 0 auto 12px;
	max-width: 1280px;
}

body.woocommerce-cart .ttl-shop-wrapper::before {
	content: "Your Order";
	display: block;
	max-width: 1280px;
	margin: 0 auto 20px;
	padding: 0 20px;
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 400;
	line-height: 1.2;
	color: #1a1f2c;
}

.ttl-cart-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
	gap: 32px;
	align-items: start;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

.ttl-cart-page__items {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ttl-cart-page__items--bundle {
	gap: 20px;
}

.ttl-cart-page__items--regular {
	gap: 12px;
	margin-top: 4px;
}

.ttl-cart-page__section-title {
	margin: 24px 0 12px;
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: 20px;
	font-weight: 400;
	color: #1a1f2c;
}

/* Remove link */

.ttl-cart-page__remove-link {
	font-size: 14px;
	font-weight: 500;
	color: #c53030;
	text-decoration: none;
	white-space: nowrap;
}

.ttl-cart-page__remove-link:hover {
	color: #9b2c2c;
	text-decoration: underline;
}

/* Quantity stepper */

.ttl-cart-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e8dfd4;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}

.ttl-cart-qty-stepper__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	background: transparent;
	color: #1a1f2c;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.ttl-cart-qty-stepper__btn:hover {
	background: #f5f0ea;
}

.ttl-cart-qty-stepper .quantity {
	display: contents;
}

.ttl-cart-qty-stepper .qty {
	width: 36px;
	min-width: 36px;
	text-align: center;
	border: none;
	padding: 8px 2px;
	font-size: 15px;
	font-weight: 500;
	color: #1a1f2c;
	background: transparent;
	-moz-appearance: textfield;
}

.ttl-cart-qty-stepper .qty::-webkit-outer-spin-button,
.ttl-cart-qty-stepper .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Bundle hamper card */

.ttl-bundle-cart-card {
	position: relative;
	padding: 20px;
	border: 1px solid #ece1d4;
	border-radius: 16px;
	background: #fff;
}

.ttl-bundle-cart-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.ttl-bundle-cart-card__meta-wrap {
	flex: 1;
	min-width: 0;
}

.ttl-bundle-cart-card__remove {
	flex-shrink: 0;
}

.ttl-bundle-cart-card__row {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ttl-bundle-cart-card__thumb {
	flex-shrink: 0;
}

.ttl-bundle-cart-card__thumb img,
.ttl-bundle-cart-card__thumb .ttl-bundle-cart-thumb {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.ttl-bundle-cart-card__qty {
	flex-shrink: 0;
}

.ttl-bundle-cart-card__price {
	margin-left: auto;
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: 22px;
	font-weight: 600;
	color: #1a1f2c;
	white-space: nowrap;
}

.ttl-bundle-cart-card__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.ttl-bundle-cart-card__badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: #fde2e4;
	color: #b5485a;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ttl-bundle-cart-card__title {
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.25;
	color: #1a1f2c;
}

.ttl-bundle-cart-card__subtitle {
	font-size: 14px;
	color: #8c7b69;
}

/* Regular cart items */

.ttl-cart-page__item--simple {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 16px 18px;
	border: 1px solid #ece1d4;
	border-radius: 16px;
	background: #fff;
}

.ttl-cart-page__item-thumb {
	flex-shrink: 0;
}

.ttl-cart-page__item-thumb img {
	width: 84px;
	height: 84px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.ttl-cart-page__item-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ttl-cart-page__item-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.ttl-cart-page__item-name {
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	color: #1a1f2c;
}

.ttl-cart-page__item-name a {
	color: inherit;
	text-decoration: none;
}

.ttl-cart-page__item-name a:hover {
	text-decoration: underline;
}

.ttl-cart-page__item-subtitle {
	font-size: 12px;
	line-height: 1.3;
	color: #6d6a73;
	display: inline-flex;
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f4f0ea;
}

.ttl-cart-page__item-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 4px;
}

.ttl-cart-page__item-total {
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: 18px;
	font-weight: 600;
	color: #1a1f2c;
	white-space: nowrap;
}

.ttl-cart-page__item-note {
	margin-top: 4px;
	width: 100%;
	max-width: 520px;
}

.ttl-cart-page__item-note-toggle {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	color: #c53030;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.ttl-cart-page__item-note-toggle:hover {
	color: #9b2c2c;
}

.ttl-cart-page__item-note-panel {
	margin-top: 10px;
}

.ttl-cart-page__item-note-field {
	display: block;
	width: 100%;
	min-height: 78px;
	margin-top: 12px;
	padding: 12px 14px;
	border: 1px solid #e8dfd4;
	border-radius: 14px;
	background: #fff;
	color: #1a1f2c;
	font: inherit;
	font-size: 14px;
	line-height: 1.45;
	resize: vertical;
}

.ttl-cart-page__item-note-panel[hidden] .ttl-cart-page__item-note-field {
	display: none;
}

.ttl-cart-page__item-note-panel:not([hidden]) .ttl-cart-page__item-note-field {
	display: block;
}

.ttl-cart-page__item-note-field:focus {
	outline: none;
	border-color: #1a1f2c;
	box-shadow: 0 0 0 3px rgba(26, 31, 44, 0.08);
}

.ttl-cart-page__item-note-actions {
	margin-top: 12px;
}

.ttl-cart-page__item-note-save {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 18px;
	border: 1px solid #1a1f2c;
	border-radius: 10px;
	background: #1a1f2c;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.ttl-cart-page__item-note-save:hover {
	background: #2d3344;
	border-color: #2d3344;
}

/* What's inside accordion */

.ttl-bundle-cart-inside {
	margin-top: 16px;
	width: 100%;
}

.ttl-bundle-cart-inside__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border: none;
	border-radius: 12px 12px 0 0;
	background: #f5f0ea;
	color: #5b524a;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	text-align: left;
	list-style: none;
}

.ttl-bundle-cart-inside__toggle::-webkit-details-marker {
	display: none;
}

.ttl-bundle-cart-inside:not([open]) .ttl-bundle-cart-inside__toggle {
	border-radius: 12px;
}

.ttl-bundle-cart-inside__chevron {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.ttl-bundle-cart-inside[open] .ttl-bundle-cart-inside__chevron {
	transform: rotate(180deg);
}

.ttl-bundle-cart-inside__panel {
	border: 1px solid #efe6dc;
	border-top: none;
	border-radius: 0 0 12px 12px;
	background: #fff;
	overflow: hidden;
}

.ttl-bundle-cart-inside__table {
	width: 100%;
}

.ttl-bundle-cart-inside__head,
.ttl-bundle-cart-inside__row {
	display: grid;
	grid-template-columns: 1fr 72px 100px;
	gap: 12px;
	align-items: center;
	padding: 14px 18px;
}

.ttl-bundle-cart-inside__head {
	font-size: 12px;
	color: #8c7b69;
	border-bottom: 1px solid #efe6dc;
}

.ttl-bundle-cart-inside__row {
	border-bottom: 1px solid #f5f0ea;
}

.ttl-bundle-cart-inside__row:last-child {
	border-bottom: none;
}

.ttl-bundle-cart-inside__col--qty,
.ttl-bundle-cart-inside__col--value {
	text-align: center;
	font-size: 14px;
	color: #1a1f2c;
}

.ttl-bundle-cart-inside__col--value {
	text-align: right;
}

.ttl-bundle-cart-inside__col--value .woocommerce-Price-amount {
	justify-content: flex-end;
	width: 100%;
}

.ttl-bundle-cart-inside__col--item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.ttl-bundle-cart-inside__link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
	flex: 1;
}

.ttl-bundle-cart-inside__link:hover .ttl-bundle-cart-inside__item-name {
	text-decoration: underline;
}

.ttl-bundle-cart-inside__thumb {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	overflow: hidden;
	background: #f9f5f0;
}

.ttl-bundle-cart-inside__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ttl-bundle-cart-inside__item-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ttl-bundle-cart-inside__item-name {
	font-size: 15px;
	font-weight: 600;
	color: #1a1f2c;
}

.ttl-bundle-cart-inside__item-desc {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	font-size: 13px;
	color: #8c7b69;
	line-height: 1.35;
}

.ttl-bundle-cart-inside__included {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: #e2f3e7;
	color: #2e7d32;
	font-size: 12px;
	font-weight: 600;
}

.ttl-bundle-cart-inside__note {
	margin: 0;
	padding: 12px 18px 16px;
	font-size: 13px;
	color: #5b524a;
	border-top: 1px solid #efe6dc;
}

.ttl-bundle-product-link {
	color: #8c7b69;
	text-decoration: none;
}

.ttl-bundle-product-link:hover {
	text-decoration: underline;
	color: #1a1f2c;
}

/* Order summary sidebar */

/* Keep currency symbol + amount together with consistent spacing */
.ttl-cart-page .woocommerce-Price-amount,
.ttl-cart-summary .woocommerce-Price-amount,
body.woocommerce-cart .ttl-shop-wrapper .woocommerce-Price-amount {
	display: inline-flex;
	align-items: baseline;
	justify-content: flex-end;
	white-space: nowrap;
}

.ttl-cart-page .woocommerce-Price-currencySymbol,
.ttl-cart-summary .woocommerce-Price-currencySymbol,
body.woocommerce-cart .ttl-shop-wrapper .woocommerce-Price-currencySymbol {
	float: none;
	margin: 0 0.2em 0 0 !important;
}

.ttl-cart-page__summary .cart-collaterals {
	width: 100%;
	float: none;
}

.ttl-cart-page__summary .cart_totals,
.ttl-cart-summary {
	width: 100%;
	float: none;
	padding: 22px 20px 20px;
	border: 1px solid #ece1d4;
	border-radius: 16px;
	background: #fff;
	position: sticky;
	top: 20px;
}

.ttl-cart-page__summary .cart_totals h2,
.ttl-cart-summary h2 {
	margin: 0 0 18px;
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
	color: #1a1f2c;
}

.ttl-cart-page__summary .cart_totals table,
.ttl-cart-summary table {
	margin: 0;
	border: 0;
	font-size: 14px;
	border-collapse: collapse;
	width: 100%;
}

.ttl-cart-page__summary .cart_totals tr,
.ttl-cart-summary tr {
	border-bottom: 1px solid #efe6dc;
}

.ttl-cart-page__summary .cart_totals tr:last-child,
.ttl-cart-summary tr:last-child {
	border-bottom: 0;
}

.ttl-cart-page__summary .cart_totals th,
.ttl-cart-page__summary .cart_totals td,
.ttl-cart-summary th,
.ttl-cart-summary td {
	padding: 10px 0;
	border: 0;
	vertical-align: top;
}

.ttl-cart-page__summary .cart_totals th,
.ttl-cart-summary th {
	color: #6d6a73;
	font-weight: 400;
}

.ttl-cart-page__summary .cart_totals td,
.ttl-cart-summary td {
	color: #1a1f2c;
	font-weight: 500;
	text-align: right;
}

.ttl-cart-page__summary .cart_totals .order-total th,
.ttl-cart-page__summary .cart_totals .order-total td,
.ttl-cart-summary .order-total th,
.ttl-cart-summary .order-total td {
	padding-top: 16px;
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: 20px;
	font-weight: 600;
	color: #1a1f2c;
}

.ttl-cart-page__summary .cart_totals .shipping td,
.ttl-cart-page__summary .cart_totals .shipping .woocommerce-Price-amount,
.ttl-cart-summary .shipping td,
.ttl-cart-summary .ttl-cart-summary__shipping--free td {
	color: #2e7d32;
	font-weight: 600;
}

.ttl-cart-summary__promo {
	display: flex;
	gap: 8px;
	margin-top: 18px;
}

.ttl-cart-summary__promo-input {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid #e8dfd4;
	border-radius: 10px;
	background: #faf5ef;
	color: #1a1f2c;
	font-size: 14px;
}

.ttl-cart-summary__promo-input::placeholder {
	color: #8c7b69;
}

.ttl-cart-summary__promo-input:focus {
	outline: none;
	border-color: #1a1f2c;
}

.ttl-cart-summary__promo-btn {
	flex-shrink: 0;
	padding: 12px 18px;
	border: none;
	border-radius: 10px;
	background: #1a1f2c;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.ttl-cart-summary__promo-btn:hover {
	background: #2d3344;
}

.ttl-cart-page__summary .cart_totals .wc-proceed-to-checkout,
.ttl-cart-summary .wc-proceed-to-checkout {
	margin-top: 16px;
}

.ttl-cart-page__summary .wc-proceed-to-checkout .checkout-button,
.ttl-cart-page__summary .checkout-button,
.ttl-cart-summary .checkout-button {
	display: block;
	width: 100%;
	text-align: center;
	background: #1a1f2c !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 15px 22px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	color: #fff !important;
}

.ttl-cart-page__summary .wc-proceed-to-checkout .checkout-button:hover,
.ttl-cart-summary .checkout-button:hover {
	background: #2d3344 !important;
}

.ttl-cart-summary__continue {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 14px 22px;
	border: 1px solid #1a1f2c;
	border-radius: 999px;
	background: #fff;
	color: #1a1f2c;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
}

.ttl-cart-summary__continue:hover {
	background: #f5f0ea;
}

.ttl-cart-summary__delivery {
	margin: 18px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: #6d6a73;
	text-align: center;
}

.ttl-cart-summary__trust {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	line-height: 1.5;
	color: #6d6a73;
}

.ttl-cart-summary__trust li {
	position: relative;
	padding-left: 14px;
	margin-bottom: 4px;
}

.ttl-cart-summary__trust li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: #8c7b69;
}

/* Side cart (mini-cart) */

.ttl-side-cart {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ttl-side-cart__items {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ttl-bundle-cart-card--side {
	padding: 16px;
}

.ttl-bundle-cart-card--side .ttl-bundle-cart-card__thumb img,
.ttl-bundle-cart-card--side .ttl-bundle-cart-card__thumb .ttl-bundle-cart-thumb {
	width: 72px;
	height: 72px;
}

.ttl-side-cart__item {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1px solid #e8dfd4;
	border-radius: 12px;
	background: #fff;
}

.ttl-side-cart__item-thumb {
	flex-shrink: 0;
}

.ttl-side-cart__item-thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

.ttl-side-cart__item-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	flex: 1;
}

.ttl-side-cart__item-name {
	font-size: 14px;
	font-weight: 600;
	color: #1a1f2c;
}

.ttl-side-cart__item-subtitle {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
	color: #8c7b69;
}

.ttl-side-cart__item-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	color: #5b524a;
}

.ttl-side-cart__subtotal,
.ttl-side-cart__footer {
	width: 100%;
}

.ttl-side-cart__footer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.ttl-side-cart__footer .elementor-button {
	width: 100%;
	text-align: center;
}

.ttl-cart-page__actions {
	margin-top: 18px;
}

/* Responsive */

@media (max-width: 900px) {
	body.woocommerce-cart .ttl-shop-wrapper::before {
		padding: 0 16px;
	}

	.ttl-cart-page__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.ttl-cart-page__summary .cart_totals,
	.ttl-cart-summary {
		position: static;
	}

	.ttl-bundle-cart-card__row {
		flex-wrap: wrap;
	}

	.ttl-bundle-cart-card__price {
		margin-left: 0;
		width: 100%;
	}
}

@media (max-width: 600px) {
	body.woocommerce-cart .ttl-shop-wrapper {
		padding-top: 20px;
	}

	body.woocommerce-cart .ttl-shop-wrapper::before {
		font-size: 24px;
		margin-bottom: 14px;
	}

	.ttl-cart-page__item--simple {
		flex-direction: column;
	}

	.ttl-cart-page__item-thumb img {
		width: 72px;
		height: 72px;
	}

	.ttl-bundle-cart-inside__head,
	.ttl-bundle-cart-inside__row {
		grid-template-columns: 1fr 48px 80px;
		padding: 12px;
	}

	.ttl-bundle-cart-card__title {
		font-size: 18px;
	}

	.ttl-bundle-cart-card__thumb img,
	.ttl-bundle-cart-card__thumb .ttl-bundle-cart-thumb {
		width: 72px;
		height: 72px;
	}
}

/* Legacy table cart (fallback) */

.woocommerce-cart .cart_item.ttl-bundle-cart-item,
.woocommerce-checkout-review-order-table .cart_item.ttl-bundle-cart-item {
	background: #fff;
}

.woocommerce-cart .cart_item.ttl-bundle-cart-item td,
.woocommerce-checkout-review-order-table .cart_item.ttl-bundle-cart-item td {
	border-bottom: none;
	vertical-align: top;
	padding-top: 20px;
	padding-bottom: 20px;
}

.woocommerce-cart-form .cart_item.ttl-bundle-cart-item {
	box-shadow: 0 0 0 1px #e8dfd4;
	border-radius: 16px;
}

.woocommerce-cart .cart_item.ttl-bundle-cart-item .product-thumbnail img,
.woocommerce-checkout-review-order-table .cart_item.ttl-bundle-cart-item .product-thumbnail img,
.ttl-bundle-cart-thumb {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 12px;
}

.woocommerce-cart-form .ttl-bundle-cart-item .product-name,
.woocommerce-checkout-review-order-table .ttl-bundle-cart-item .product-name {
	width: 50%;
}

@media (max-width: 768px) {
	.woocommerce-cart .cart_item.ttl-bundle-cart-item .product-thumbnail img,
	.ttl-bundle-cart-thumb {
		width: 72px;
		height: 72px;
	}
}
