/**
 * Savoidakis — cart page.
 *
 * Builds on the product page's stylesheet: the palette variables, the icons,
 * the chips and the quantity stepper all come from there. As with that file,
 * every control default is written here too, because Elementor only emits CSS
 * for values an author has actually changed.
 */

.savoc {
	font-family: "Comfortaa", sans-serif;
}

.savoc-card {
	border: 1px solid var(--savop-border);
	border-radius: 18px;
	background: #fff;
	padding: 26px 28px 28px;
}

/* ---------------------------------------------------------------- Steps */

.savoc-steps {
	--savoc-dot: 38px;
	--savoc-line: 2px;
	--savoc-done: var(--savop-accent);
	--savoc-todo: #C9C3BE;

	display: flex;
	align-items: flex-start;
	width: 100%;
}

.savoc-step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1 1 0;
	gap: 16px;
	min-width: 0;
	text-align: center;
}

/* The line runs from the previous circle to this one, behind both. */
.savoc-step__line {
	position: absolute;
	top: calc(var(--savoc-dot) / 2 - var(--savoc-line) / 2);
	right: 50%;
	left: -50%;
	height: var(--savoc-line);
	background: var(--savoc-todo);
}

.savoc-step.is-done .savoc-step__line,
.savoc-step.is-current .savoc-step__line {
	background: var(--savoc-done);
}

.savoc-step__mark {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: var(--savoc-dot);
	height: var(--savoc-dot);
	border-radius: 50%;
	background: #fff;
}

.savoc-step__dot {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border: var(--savoc-line) solid var(--savoc-todo);
	border-radius: 50%;
	background: #fff;
	color: var(--savop-muted);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
}

.savoc-step.is-done .savoc-step__dot,
.savoc-step.is-current .savoc-step__dot {
	border-color: var(--savoc-done);
	background: var(--savoc-done);
	color: #fff;
}

.savoc-step__tick {
	width: 55%;
	height: 55%;
}

.savoc-step__label {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--savop-muted);
	text-decoration: none;
}

.savoc-step.is-current .savoc-step__label {
	color: var(--savop-accent);
}

/* ---------------------------------------------------------------- Table */

.savoc-table {
	--savoc-thumb: 112px;
	--savoc-divider: var(--savop-border);

	display: flex;
	flex-direction: column;
	width: 100%;
}

/* One grid for the header and every row, so the columns cannot drift apart. */
.savoc-table__head,
.savoc-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 110px 132px 110px 34px;
	align-items: center;
	gap: 16px;
}

.savoc-table__head {
	padding-bottom: 16px;
	border-bottom: 1px solid var(--savoc-divider);
	font-size: 14px;
	font-weight: 500;
	color: var(--savop-ink);
}

.savoc-table__head span:nth-child(2),
.savoc-table__head span:nth-child(3),
.savoc-table__head span:nth-child(4) {
	text-align: center;
}

.savoc-item {
	padding-block: 26px;
	border-bottom: 1px solid var(--savoc-divider);
}

.savoc-item:last-child {
	border-bottom: 0;
}

.savoc-item__product {
	display: flex;
	align-items: center;
	gap: 20px;
	min-width: 0;
}

.savoc-item__media {
	display: block;
	flex: none;
	width: var(--savoc-thumb);
	height: var(--savoc-thumb);
	overflow: hidden;
	border-radius: 12px;
	background: #F6F3F1;
}

.savoc-item__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.savoc-item__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
}

.savoc-item__name {
	font-family: "Comfortaa", sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--savop-ink);
	text-decoration: none;
}

.savoc-item__variation {
	font-size: 14px;
	line-height: 1.5;
	color: var(--savop-muted);
}

.savoc .savoc-item__chip {
	min-height: 30px;
	margin-top: 4px;
	padding-inline: 13px;
	font-size: 13px;
}

.savoc-item__price,
.savoc-item__total {
	text-align: center;
}

.savoc-item__price {
	font-size: 16px;
	line-height: 1.4;
	color: var(--savop-muted);
}

.savoc-item__total {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--savop-ink);
}

.savoc-item__price .woocommerce-Price-amount,
.savoc-item__total .woocommerce-Price-amount,
.savoc-total__value .woocommerce-Price-amount,
.savoc-grand__value .woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

.savoc-item__qty {
	display: flex;
	justify-content: center;
}

.savoc .savoc-qty {
	width: 108px;
	height: 44px;
	padding: 0 4px;
	border-radius: 12px;
}

.savoc .savoc-qty .savop-qty__btn {
	width: 28px;
	height: 28px;
}

.savoc .savoc-qty .savop-qty__btn .savop-icon {
	width: 14px;
	height: 14px;
}

/* The product page's reset is scoped to its own buy box, so the same one has
   to be repeated here or the theme's input styling shows through. */
.savoc .savoc-qty input.savoc-qty__input:not([type="button"]):not([type="submit"]) {
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.savoc .savoc-qty input.savoc-qty__input::-webkit-outer-spin-button,
.savoc .savoc-qty input.savoc-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.savoc-item__remove {
	display: flex;
	justify-content: flex-end;
}

.savoc .savoc-item__trash {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--savop-accent);
	cursor: pointer;
	transition: background .18s ease;
}

.savoc .savoc-item__trash svg {
	width: 19px;
	height: 19px;
}

.savoc .savoc-item__trash:hover {
	background: var(--savop-soft);
}

/* ------------------------------------------------------- Table footer */

.savoc .savoc-back {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
	color: var(--savop-accent);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.savoc-back__arrow {
	width: 22px;
	height: 22px;
}

.savoc-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 26px;
	padding-top: 26px;
	border-top: 1px solid var(--savop-border);
}

.savoc-coupon {
	display: flex;
	align-items: center;
	flex: 1 1 320px;
	gap: 12px;
	max-width: 420px;
	height: 56px;
	padding: 0 6px 0 18px;
	border: 1px solid var(--savop-border);
	border-radius: 14px;
	background: #fff;
}

.savoc-coupon__icon {
	display: inline-flex;
	flex: none;
	width: 22px;
	height: 22px;
	color: var(--savop-accent);
}

.savoc-coupon__icon svg {
	width: 100%;
	height: 100%;
}

.savoc .savoc-coupon input.savoc-coupon__input:not([type="button"]):not([type="submit"]) {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--savop-ink);
	font-family: inherit;
	font-size: 15px;
}

.savoc .savoc-coupon__apply {
	flex: none;
	align-self: center;
	height: 44px;
	padding: 0 22px;
	border: 1px solid var(--savop-accent);
	border-radius: 11px;
	background: #fff;
	color: var(--savop-accent);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.savoc .savoc-coupon__apply:hover {
	background: var(--savop-accent);
	color: #fff;
}

.savoc .savoc-update {
	flex: none;
	height: 56px;
	margin-left: auto;
	padding: 0 28px;
	border: 1px solid var(--savop-border);
	border-radius: 14px;
	background: #F6F5F3;
	color: var(--savop-muted);
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.savoc .savoc-update:hover {
	background: var(--savop-ink);
	color: #fff;
}

.savoc .savoc-update.is-busy {
	opacity: .6;
	pointer-events: none;
}

/* ------------------------------------------------------------- Empty */

.savoc-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 56px 20px;
	text-align: center;
}

/*
 * The cross-sell band is headings plus a product grid, as three separate
 * widgets. When the grid has nothing to show it flags itself, and the whole
 * band goes - otherwise "ΜΗΠΩΣ ΞΕΧΑΣΑΤΕ ΚΑΤΙ;" sat over an empty stripe.
 */
.savoc-section--crosssell:has([data-savop-empty-section]) {
	display: none;
}

/*
 * savop_icon() returns its own <span class="savop-icon">, so there are two
 * nested spans here. Sizing only the outer one left the inner span - and the
 * SVG inside it - at its own 15px default, which is why the icon read as a
 * speck in a 54px box. The size travels down to the SVG itself.
 */
.savoc-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	color: #D8D0CA;
}

.savoc-empty__icon .savop-icon,
.savoc-empty__icon svg {
	width: 100%;
	height: 100%;
}

.savoc-empty__icon svg {
	stroke-width: 1.1;
}

.savoc-empty__title {
	margin: 0;
	font-family: "Comfortaa", sans-serif;
	font-size: 30px;
	font-weight: 400;
	color: var(--savop-ink);
}

.savoc-empty__text {
	max-width: 420px;
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--savop-muted);
}

.savoc .savoc-empty__button {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	margin-top: 8px;
	padding: 0 28px;
	border-radius: 13px;
	background: var(--savop-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

/* ------------------------------------------------------------ Summary */

.savoc-summary__title {
	margin: 0 0 20px;
	font-family: "Comfortaa", sans-serif;
	font-size: 32px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--savop-ink);
}

.savoc-ship {
	padding: 16px 18px 18px;
	border-radius: 14px;
	background: #FDEFF4;
}

.savoc-ship__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--savop-ink);
}

.savoc-ship__icon {
	display: inline-flex;
	flex: none;
	width: 26px;
	height: 26px;
	color: var(--savop-accent);
}

.savoc-ship__icon svg {
	width: 100%;
	height: 100%;
}

.savoc-ship__bar {
	height: 7px;
	overflow: hidden;
	border-radius: 4px;
	background: #F6D8E3;
}

.savoc-ship__fill {
	display: block;
	height: 100%;
	border-radius: 4px;
	background: var(--savop-accent);
	transition: width .35s ease;
}

.savoc-ship__note {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--savop-muted);
}

.savoc-totals {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 22px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--savop-border);
}

.savoc-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}

.savoc-total__label {
	font-size: 15px;
	line-height: 1.5;
	color: var(--savop-ink);
}

.savoc-total__value {
	font-size: 15px;
	line-height: 1.5;
	color: var(--savop-ink);
	white-space: nowrap;
}

.savoc-total__value.is-free {
	color: #2E9E52;
}

.savoc-grand {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin: 20px 0 22px;
}

.savoc-grand__label {
	font-family: "Comfortaa", sans-serif;
	font-size: 26px;
	line-height: 1.3;
	color: var(--savop-ink);
}

.savoc-grand__box {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}

.savoc-grand__value {
	font-size: 32px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--savop-ink);
	white-space: nowrap;
}

.savoc-grand__note {
	font-size: 13px;
	color: var(--savop-muted);
}

.savoc .savoc-checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 62px;
	padding: 0 20px;
	border: 0;
	border-radius: 14px;
	background: var(--savop-accent);
	color: #fff;
	font-family: "Comfortaa", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .2px;
	text-align: center;
	text-decoration: none;
	transition: background .18s ease;
}

.savoc .savoc-checkout:hover {
	background: #252324;
	color: #fff;
}

.savoc .savoc-checkout .savop-icon {
	width: 20px;
	height: 20px;
}

.savoc-checkout__arrow {
	margin-left: 2px;
}

.savoc-assurances {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 24px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--savop-border);
}

.savoc-assurance {
	display: flex;
	align-items: center;
	gap: 14px;
}

.savoc-assurance__icon {
	flex: none;
	width: 26px;
	height: 26px;
	color: var(--savop-ink);
}

.savoc-assurance__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.savoc-assurance__text strong {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--savop-ink);
}

.savoc-assurance__text small {
	font-size: 13px;
	line-height: 1.4;
	color: var(--savop-muted);
}

.savoc-payments {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--savop-border);
}

.savoc-payments__label {
	font-size: 13px;
	color: var(--savop-muted);
}

.savoc-payments__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.savoc-payment {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	height: 34px;
	padding: 0 10px;
	overflow: hidden;
	border: 1px solid var(--savop-border);
	border-radius: 8px;
	background: #fff;
	color: var(--savop-muted);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .4px;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
}

.savoc-payment img {
	display: block;
	max-width: 42px;
	height: auto;
}

.savoc-note {
	margin-top: 18px;
}

/* The theme uppercases every button; these read as labels, not shouts. */
.savoc .savoc-note__toggle,
.savoc .savoc-coupon__apply,
.savoc .savoc-update,
.savoc .savoc-item__trash {
	text-transform: none;
	letter-spacing: normal;
}

.savoc .savoc-note__toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: var(--savop-ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
}

.savoc-note__icon {
	display: inline-flex;
	flex: none;
	width: 22px;
	height: 22px;
	color: var(--savop-ink);
}

.savoc-note__icon svg {
	width: 100%;
	height: 100%;
}

.savoc-note__toggle span {
	flex: 1 1 auto;
}

.savoc-note__chevron {
	width: 18px;
	height: 18px;
	color: var(--savop-muted);
	transition: transform .2s ease;
}

.savoc-note.is-open .savoc-note__chevron {
	transform: rotate(180deg);
}

.savoc-note__body {
	display: none;
	padding-top: 14px;
}

.savoc-note.is-open .savoc-note__body {
	display: block;
}

.savoc .savoc-note__field {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--savop-border);
	border-radius: 12px;
	background: #fff;
	color: var(--savop-ink);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.6;
	resize: vertical;
}

.savoc-note.is-saved .savoc-note__field {
	border-color: #2E9E52;
}

/* --------------------------------------------------------- Responsive */

@media (max-width: 1024px) {
	.savoc-table__head {
		display: none;
	}

	.savoc-item {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"product remove"
			"qty     total";
		row-gap: 18px;
	}

	.savoc-item__product { grid-area: product; }
	.savoc-item__remove { grid-area: remove; align-self: start; }
	.savoc-item__qty { grid-area: qty; justify-content: flex-start; }
	.savoc-item__total { grid-area: total; text-align: right; }

	.savoc-item__price {
		display: none;
	}

	.savoc-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.savoc .savoc-update {
		margin-left: 0;
	}

	.savoc-coupon {
		max-width: none;
	}
}

@media (max-width: 767px) {
	.savoc-card {
		padding: 20px 16px 22px;
	}

	.savoc-table {
		--savoc-thumb: 84px;
	}

	.savoc-item__name {
		font-size: 20px;
	}

	.savoc-item__product {
		gap: 14px;
	}

	.savoc-steps {
		--savoc-dot: 32px;
	}

	.savoc-step__label {
		font-size: 13px;
	}

	.savoc-grand__value {
		font-size: 26px;
	}
}
