/*
 * Gyöngyszalon theme - the cart ("A · Türkiz sáv", canvas pages A-Cart and A-Cart-m).
 *
 * 1. Band with the purchase steps   2. Layout and panels   3. Free-shipping progress   4. Lines
 * 5. Gift request (Free Gifts plugin)   6. Summary   7. Suggestions   8. Empty cart
 */

/* 1. Band with the purchase steps ------------------------------------------------------------------------- */

/* The band with the purchase steps is shared with the checkout and the thank-you page: theme.css, 8. */

/* 2. Layout and panels ----------------------------------------------------------------------------------- */

.cart-page__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 16px var(--gutter) 28px;
}
.cart-layout {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
@media (min-width: 1024px) {
	.cart-page__inner {
		gap: 32px;
		padding-top: 40px;
		padding-bottom: 64px;
	}
	.cart-layout {
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		align-items: start;
		gap: 32px;
	}
}
.cart-panel {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px;
	border-radius: var(--radius);
	background: var(--c-blush);
}
.cart-panel .woocommerce-cart-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.cart-panel__title {
	color: var(--c-teal);
	font-size: 22px;
	line-height: 1.25;
}
@media (min-width: 760px) {
	.cart-panel {
		gap: 14px;
		padding: 20px 22px;
	}
	.cart-panel .woocommerce-cart-form {
		gap: 14px;
	}
	.cart-panel__title {
		font-size: 26px;
	}
}
.cart-panel__note {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--c-ink);
	font-size: 14px;
	line-height: 1.5;
}
.cart-panel__note .gysz-icon {
	flex: none;
	color: var(--c-teal);
}
.cart-page .woocommerce-notices-wrapper:empty {
	display: none;
}

/* 3. Free-shipping progress ------------------------------------------------------------------------------ */

.shipping-progress {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 14px;
	border: 1px solid var(--c-line-strong);
	border-radius: 8px;
	background: var(--c-white);
}
.shipping-progress__text {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--c-ink);
	font-size: 14px;
	line-height: 1.4;
}
.shipping-progress__text .gysz-icon {
	flex: none;
	color: var(--c-teal);
}
.shipping-progress__bar {
	height: 8px;
	overflow: hidden;
	border-radius: 4px;
	background: var(--c-line);
}
.shipping-progress__bar span {
	display: block;
	height: 100%;
	border-radius: 4px;
	background: var(--c-teal);
}
/* On phones the progress stands above the lines, on wide screens in the summary. */
.shipping-progress--summary {
	display: none;
}
@media (min-width: 1024px) {
	.shipping-progress--top {
		display: none;
	}
	.shipping-progress--summary {
		display: flex;
		padding: 12px 16px;
	}
}

/* 4. Lines ----------------------------------------------------------------------------------------------- */

.cart-lines {
	display: flex;
	flex-direction: column;
	padding: 0 12px;
	border-top: 4px solid var(--c-teal-light);
	border-radius: 8px;
	background: var(--c-white);
}
.cart-lines__head {
	display: none;
}
/* Phones: picture on the left over two rows; name and options with the bin, then quantity and amount. */
.cart-line {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr) auto;
	grid-template-areas:
		"media info remove"
		"media quantity total";
	align-items: center;
	gap: 6px 12px;
	padding: 14px 0;
	border-top: 1px solid var(--c-line);
}
.cart-line:first-of-type,
.cart-lines__head + .cart-line {
	border-top: 0;
}
.cart-line__product {
	display: contents;
}
.cart-line__media {
	display: block;
	flex: none;
	grid-area: media;
	align-self: start;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: var(--radius-small);
	background: var(--c-teal-wash);
}
.cart-line__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cart-line__media--icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--c-teal);
}
.cart-line__info {
	display: flex;
	flex-direction: column;
	grid-area: info;
	align-self: start;
	gap: 4px;
	min-width: 0;
	padding-top: 2px;
}
.cart-line__title {
	color: var(--c-teal);
	font-size: 16px;
	line-height: 1.25;
}
.cart-line__title a {
	color: inherit;
	text-decoration: none;
}
.cart-line__title a:hover {
	color: var(--c-pink);
}
.cart-line__options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	color: var(--c-text);
	font-size: 13px;
}
.cart-line__dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 50%;
	vertical-align: -1px;
}
.cart-line__info dl.variation {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 6px;
	margin: 0;
	color: var(--c-muted);
	font-size: 12px;
}
.cart-line__info dl.variation dt,
.cart-line__info dl.variation dd,
.cart-line__info dl.variation p {
	margin: 0;
}
.cart-line__quantity {
	grid-area: quantity;
	justify-self: start;
}
/* The box takes the height of its smaller cart buttons (the theme's 54 px left an empty strip at the bottom). */
.cart-line__quantity .quantity--stepper {
	height: auto;
}
/* A quantity that cannot change (digital tutorials, courses): no buttons, only the number. */
.cart-line__quantity .quantity__fixed {
	display: inline-block;
	min-width: 44px;
	color: var(--c-text);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}
.cart-line__quantity .quantity__step {
	width: 38px;
	height: 44px;
}
.cart-line__quantity .qty {
	width: 34px;
	height: 44px;
	font-size: 16px;
}
.cart-line__total {
	grid-area: total;
	color: var(--c-ink);
	font-size: 16px;
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}
.cart-line__total del {
	margin-right: 6px;
	color: var(--c-muted);
	font-weight: 500;
}
.cart-line__total ins {
	text-decoration: none;
}
.cart-line__free {
	color: var(--c-teal);
}
.cart-line__remove {
	grid-area: remove;
	align-self: start;
}
.cart-line__remove-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--c-muted);
}
.cart-line__remove-link:hover {
	background: var(--c-blush);
	color: var(--c-pink);
}
/* Product Bundles: the items of a bundle under it, small and without their own buttons. */
.cart-line--bundled {
	grid-template-columns: 44px minmax(0, 1fr) auto;
	padding: 6px 0 6px 92px;
	border-top: 0;
}
.cart-line--bundled .cart-line__media {
	width: 44px;
	height: 44px;
}
.cart-line--bundled .cart-line__title {
	font-family: var(--f-body);
	font-size: 13px;
	font-weight: 600;
}
.cart-line--bundled .cart-line__total {
	font-size: 13px;
	font-weight: 500;
}
.cart-lines__actions {
	display: none;
}
@media (min-width: 760px) {
	.cart-lines {
		padding: 0 20px;
	}
	.cart-lines__head,
	.cart-line {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 132px 110px 40px;
		grid-template-areas: "product quantity total remove";
		column-gap: 20px;
	}
	.cart-lines__head {
		padding: 12px 0 10px;
		color: var(--c-muted);
		font-size: 11px;
		font-weight: 600;
		letter-spacing: .14em;
		text-transform: uppercase;
	}
	.cart-lines__head span:nth-child(2) {
		text-align: center;
	}
	.cart-lines__head span:nth-child(3) {
		text-align: right;
	}
	.cart-line {
		padding: 16px 0;
		border-top: 1px solid var(--c-line);
	}
	.cart-lines__head + .cart-line {
		border-top: 1px solid var(--c-line);
	}
	.cart-line__product {
		display: flex;
		grid-area: product;
		align-items: center;
		gap: 16px;
		min-width: 0;
	}
	.cart-line__info {
		align-self: center;
		padding-top: 0;
	}
	.cart-line__media {
		width: 88px;
		height: 88px;
	}
	.cart-line__title {
		font-size: 19px;
	}
	.cart-line__options {
		gap: 7px;
		font-size: 14px;
	}
	.cart-line__dot {
		width: 14px;
		height: 14px;
	}
	.cart-line__quantity {
		justify-self: center;
	}
	.cart-line__quantity .quantity__step {
		width: 42px;
		height: 42px;
	}
	.cart-line__quantity .qty {
		width: 44px;
		height: 42px;
		font-size: 15px;
	}
	.cart-line__total {
		font-size: 17px;
	}
	.cart-line__remove {
		align-self: center;
	}
	.cart-line__remove-link {
		width: 40px;
		height: 40px;
	}
	.cart-line--bundled {
		grid-template-columns: minmax(0, 1fr) 132px 110px 40px;
		padding: 6px 0 6px 104px;
		border-top: 0;
	}
}

/* 5. Gift request (Free Gifts plugin: "Ajándék a csomagodhoz", "Kérem") ---------------------------------- */

.cart-page .fgf_gift_products_wrapper {
	margin: 0;
	padding: 14px 12px;
	border: 2px dashed var(--c-teal-light);
	border-radius: 8px;
	background: var(--c-white);
}
.cart-page .fgf_gift_products_wrapper h3 {
	margin: 0 0 8px;
	color: var(--c-muted);
	font-family: var(--f-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.cart-page .fgf_gift_products_table,
.cart-page .fgf_gift_products_table tbody {
	display: block;
	width: 100%;
	margin: 0;
	border: 0;
}
.cart-page .fgf_gift_products_table thead {
	display: none;
}
/* Phones: the button under the name; wider screens: in one row. */
.cart-page .fgf_gift_products_table tr.fgf-gift-product-item {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	grid-template-areas:
		"image name"
		"image action";
	align-items: center;
	gap: 8px 12px;
	border: 0;
}
.cart-page .fgf_gift_products_table td {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	text-align: left !important;
}
.cart-page .fgf_gift_products_table td::before {
	content: none !important;
}
.cart-page .fgf_gift_products_table td:nth-child(1) {
	grid-area: name;
	color: var(--c-teal);
	font-family: var(--f-display);
	font-size: 16px;
	line-height: 1.25;
}
.cart-page .fgf_gift_products_table td:nth-child(1)::after {
	content: "Ajándék · csomagonként 1 db kérhető";
	display: block;
	margin-top: 4px;
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: 13px;
}
.cart-page .fgf_gift_products_table td:nth-child(2) {
	grid-area: image;
}
.cart-page .fgf_gift_products_table td:nth-child(3) {
	grid-area: action;
}
.cart-page .fgf-product-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border-radius: var(--radius-small);
	background: var(--c-teal-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23466D74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 40L34 14'/%3E%3Cellipse cx='36.5' cy='11.5' rx='2' ry='4.6' transform='rotate(45 36.5 11.5)'/%3E%3Cpath d='M36.5 11.5c4.5 2 6 7 2.5 11s-10 3.5-14 7.5-2 9 3 9.5 7.5-3 11-1'/%3E%3C/svg%3E") center / 42px no-repeat;
}
/* The gift has no own photo; WooCommerce's placeholder gives way to the thread drawing. */
.cart-page .fgf-product-image img.woocommerce-placeholder {
	display: none;
}
.cart-page .fgf-product-image img:not(.woocommerce-placeholder) {
	width: 100%;
	height: 100%;
	border-radius: var(--radius-small);
	object-fit: cover;
}
.cart-page .fgf-gift-product-add-to-cart-actions .button {
	min-height: 44px;
	padding: 0 18px;
	border: 2px solid var(--c-teal);
	border-radius: var(--radius-small);
	background: var(--c-white);
	color: var(--c-teal);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.cart-page .fgf-gift-product-add-to-cart-actions .button:hover {
	background: var(--c-teal);
	color: var(--c-white);
}
@media (min-width: 760px) {
	.cart-page .fgf_gift_products_wrapper {
		padding: 16px 20px;
	}
	.cart-page .fgf_gift_products_table tr.fgf-gift-product-item {
		grid-template-columns: 88px minmax(0, 1fr) auto;
		grid-template-areas: "image name action";
		gap: 16px;
	}
	.cart-page .fgf-product-image {
		width: 88px;
		height: 88px;
	}
	.cart-page .fgf_gift_products_table td:nth-child(1) {
		font-size: 19px;
	}
	.cart-page .fgf_gift_products_table td:nth-child(1)::after {
		font-size: 14px;
	}
}

/* 6. Summary --------------------------------------------------------------------------------------------- */

.cart-summary {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.cart-summary__card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 20px;
	border-top: 4px solid var(--c-teal-light);
	border-radius: 8px;
	background: var(--c-white);
}
.cart-summary__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	color: var(--c-ink);
	font-size: 15px;
}
.cart-summary__row.cart-subtotal .cart-summary__amount {
	font-size: 24px;
	font-weight: 700;
	white-space: nowrap;
}
.cart-summary__row--total {
	padding-top: 12px;
	border-top: 1px solid var(--c-line);
	font-weight: 700;
}
.cart-summary__row--total .cart-summary__amount {
	font-size: 20px;
	white-space: nowrap;
}
.cart-summary__muted {
	color: var(--c-muted);
	font-size: 14px;
	text-align: right;
}
.cart-summary .cart-discount a.woocommerce-remove-coupon {
	margin-left: 6px;
	color: var(--c-pink);
	font-size: 13px;
}
/* The coupon field continues the white card of the totals (it stands outside them, see cart.php). */
.cart-summary__card--joined {
	border-radius: 8px 8px 0 0;
}
.cart-summary__coupon {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: -12px;
	padding: 14px 20px 16px;
	border-radius: 0 0 8px 8px;
	background: var(--c-white);
}
.cart-summary__coupon::before {
	content: "";
	position: absolute;
	top: 0;
	right: 20px;
	left: 20px;
	border-top: 1px solid var(--c-line);
}
@media (min-width: 760px) {
	.cart-summary__coupon {
		margin-top: -14px;
	}
}
.cart-summary__label {
	color: var(--c-ink);
	font-size: 13px;
	font-weight: 600;
}
.cart-summary__coupon-row {
	display: flex;
	gap: 8px;
}
.cart-summary__coupon-row .input-text {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--c-field);
	border-radius: var(--radius-small);
	background: var(--c-white);
	color: var(--c-ink);
	font-size: 15px;
}
.cart-summary__coupon-row .button {
	flex: none;
	min-height: 48px;
}
.cart-summary__coupon .coupon-error-notice {
	margin: 4px 0 0;
	color: var(--c-pink-dark);
	font-size: 13px;
}
.cart-summary__proceed {
	padding: 0;
}
.cart-summary__checkout.button {
	display: flex;
	width: 100%;
	min-height: 54px;
	margin: 0;
	border: 0;
	background: var(--c-pink);
	font-size: 15px;
}
.cart-summary__checkout.button:hover {
	background: var(--c-pink-dark);
}
.cart-summary__continue {
	width: 100%;
	min-height: 44px;
}
/* The theme's interim WooCommerce button colours (theme.css) would fill these; the design draws them outlined. */
.cart-page .cart-panel--summary .button--outline {
	border: 2px solid var(--c-teal);
	background: var(--c-white);
	color: var(--c-teal);
}
.cart-page .cart-panel--summary .button--outline:hover {
	background: var(--c-teal-wash);
	color: var(--c-teal);
}

/* 7. Suggestions ----------------------------------------------------------------------------------------- */

.suggestion-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}
@media (min-width: 760px) {
	.suggestion-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}
@media (min-width: 1024px) {
	.suggestion-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.suggestion-card {
	display: flex;
	gap: 14px;
	padding: 12px;
	border-top: 4px solid var(--c-teal-light);
	border-radius: 8px;
	background: var(--c-white);
}
.suggestion-card__media {
	flex: none;
	display: block;
	width: 96px;
	height: 96px;
	overflow: hidden;
	border-radius: var(--radius-small);
}
.suggestion-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.suggestion-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.suggestion-card__eyebrow {
	color: var(--c-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.suggestion-card__title {
	color: var(--c-teal);
	font-size: 17px;
	line-height: 1.25;
}
.suggestion-card__title a {
	color: inherit;
	text-decoration: none;
}
.suggestion-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
}
.suggestion-card__price {
	color: var(--c-ink);
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}
.suggestion-card__price del {
	display: none;
}
.suggestion-card__price ins {
	text-decoration: none;
}
@media (min-width: 760px) {
	.suggestion-card {
		gap: 16px;
		padding: 14px;
	}
	.suggestion-card__media {
		width: 112px;
		height: 112px;
	}
	.suggestion-card__title {
		font-size: 19px;
	}
	.suggestion-card__price {
		font-size: 17px;
	}
}

/* 8. Empty cart ------------------------------------------------------------------------------------------ */

.cart-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 40px 20px;
	border-radius: var(--radius);
	background: var(--c-blush);
	text-align: center;
}
.cart-empty-state__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--c-white);
	color: var(--c-teal);
}
/* WooCommerce moves its "empty cart" notice into the notices box after an AJAX update, so it is styled by its own class. */
.cart-empty-state .woocommerce-info.cart-empty,
.cart-empty-state .wc-empty-cart-message .woocommerce-info {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-teal);
	font-family: var(--f-display);
	font-size: 24px;
}
.cart-empty-state__hint {
	color: var(--c-text);
	font-size: 15px;
}

/* The gift line: the plugin's own "Ajándék" data line repeats what the options line says. */
.cart-line--gift dl.variation {
	display: none;
}

.cart-empty-state .woocommerce-notices-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 560px;
}
.cart-empty-state .woocommerce-notices-wrapper:empty,
.cart-empty-state .wc-empty-cart-message:empty {
	display: none;
}
