/* The Web Custom Functions - loaded on every page: footer icons, express card, gift wrap. */

/* ---------- Footer: round contact icons and rights line ---------- */
.twcf-footer-contacts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	padding: 22px 0 6px;
}

.twcf-footer-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #111111;
	color: #ffffff;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.twcf-footer-icon svg {
	fill: currentColor;
	display: block;
}

.twcf-footer-icon:hover,
.twcf-footer-icon:focus-visible {
	background: #ecd5c5;
	color: #111111;
	transform: translateY(-2px);
}

.twcf-footer-icon:focus-visible {
	outline: 2px solid #111111;
	outline-offset: 3px;
}

.twcf-copyright {
	text-align: center;
	font-family: "Montserrat", Helvetica, Arial, sans-serif;
	font-size: 13px;
	letter-spacing: 0.4px;
	color: #333333;
	padding: 14px 10px 4px;
	margin: 0;
}

/* ---------- Express delivery card ---------- */
.twcf-express {
	margin: 0 0 18px;
}

.twcf-express-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border: 2px solid #ecd5c5;
	background: #fffaf6;
	border-radius: 10px;
	cursor: pointer;
	font-family: "Montserrat", Helvetica, Arial, sans-serif;
	font-feature-settings: "locl" 0;
	color: #222222;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.twcf-express-card:hover {
	border-color: #d9b49d;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.twcf-express-card.is-on {
	border-color: #7a1f2b;
	background: #fdf1ee;
}

.twcf-express-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.twcf-express-check {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border: 2px solid #b9a79b;
	border-radius: 6px;
	background: #ffffff;
	position: relative;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.twcf-express-card.is-on .twcf-express-check {
	background: #7a1f2b;
	border-color: #7a1f2b;
}

.twcf-express-card.is-on .twcf-express-check::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 3px;
	width: 6px;
	height: 12px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.twcf-express-input:focus-visible + .twcf-express-check {
	outline: 2px solid #7a1f2b;
	outline-offset: 2px;
}

.twcf-express-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.twcf-express-title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.twcf-express-desc {
	font-size: 14px;
	line-height: 1.45;
	color: #555555;
}

.twcf-express-price {
	flex: 0 0 auto;
	font-size: 17px;
	font-weight: 700;
	white-space: nowrap;
	color: #7a1f2b;
}

/* Compact version inside the side cart */
.twcf-express--sidecart {
	margin: 0 0 10px;
}

.twcf-express--sidecart .twcf-express-card {
	padding: 10px 12px;
	gap: 10px;
	border-width: 1px;
	border-radius: 8px;
	text-align: left;
}

.twcf-express--sidecart .twcf-express-check {
	flex-basis: 20px;
	width: 20px;
	height: 20px;
}

.twcf-express--sidecart .twcf-express-card.is-on .twcf-express-check::after {
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
}

.twcf-express--sidecart .twcf-express-title {
	font-size: 14px;
}

.twcf-express--sidecart .twcf-express-desc {
	font-size: 12px;
}

.twcf-express--sidecart .twcf-express-price {
	font-size: 14px;
}

/* ---------- Gift wrap ---------- */
.twcf-giftwrap {
	margin: 0 0 18px;
	font-family: "Montserrat", Helvetica, Arial, sans-serif;
	font-feature-settings: "locl" 0;
}

.twcf-giftwrap-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
	color: #222222;
	margin-bottom: 8px;
}

.twcf-giftwrap-free {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #7a1f2b;
	background: #fdf1ee;
	border: 1px solid #ecd5c5;
	border-radius: 20px;
	padding: 2px 9px;
}

.twcf-giftwrap-select {
	width: 100%;
	max-width: 420px;
	min-height: 50px;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 16px;
	color: #222222;
	background-color: #ffffff;
	border: 1px solid #d8cdc5;
	border-radius: 6px;
}

.twcf-giftwrap-select:focus-visible {
	outline: 2px solid #7a1f2b;
	outline-offset: 2px;
}

form.checkout .twcf-giftwrap-select {
	max-width: none;
}

@media (max-width: 480px) {
	.twcf-express-card {
		flex-wrap: wrap;
		padding: 14px;
		gap: 12px;
	}

	.twcf-express-text {
		flex-basis: calc(100% - 40px);
	}

	.twcf-express-price {
		margin-left: 38px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.twcf-footer-icon,
	.twcf-express-card,
	.twcf-express-check {
		transition: none;
	}
}

/* ---------- Footer: compact bottom bar ([twcf_footer_bar]) ---------- */
/* Rights line on the left, small icons in the middle, maker's logo on the right. */
.twcf-footer-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	padding: 12px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.twcf-footer-bar__rights {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 0 !important;
	text-align: left;
	font-family: "Montserrat", Helvetica, Arial, sans-serif;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.3px;
	color: #6b6b6b;
}

.twcf-footer-bar .twcf-footer-contacts {
	flex: 0 0 auto;
	gap: 8px;
	padding: 0;
}

.twcf-footer-bar .twcf-footer-icon {
	width: 30px;
	height: 30px;
	background: #3a3a3a;
}

.twcf-footer-bar .twcf-footer-icon svg {
	width: 15px;
	height: 15px;
}

.twcf-footer-bar .twcf-footer-icon:hover,
.twcf-footer-bar .twcf-footer-icon:focus-visible {
	background: #ecd5c5;
	transform: none;
}

.twcf-footer-bar__credit {
	flex: 1 1 0;
	display: flex;
	justify-content: flex-end;
	opacity: 0.55;
	transition: opacity 0.2s ease;
}

.twcf-footer-bar__credit:hover,
.twcf-footer-bar__credit:focus-visible {
	opacity: 1;
}

.twcf-footer-bar__credit img {
	display: block;
	width: auto;
	height: 26px;
	max-width: 90px;
	object-fit: contain;
}

@media (max-width: 640px) {
	.twcf-footer-bar {
		flex-direction: column;
		justify-content: center;
		gap: 10px;
		padding: 14px 0;
	}

	.twcf-footer-bar__rights {
		flex: 0 0 auto;
		text-align: center;
	}

	.twcf-footer-bar__credit {
		flex: 0 0 auto;
		justify-content: center;
	}
}

/* The logo file is square with empty space around the mark, so it needs more height to stay readable. */
.twcf-footer-bar {
	padding: 4px 0;
}

.twcf-footer-bar__credit img {
	height: 48px;
	max-width: none;
}

/* Maker's logo at its earlier size (130 px wide image). The file is a 500x500 square with the
   mark in the middle band, so the empty top and bottom are cropped instead of shrinking the mark. */
.twcf-footer-bar__credit {
	opacity: 1;
	overflow: hidden;
	height: 46px;
	align-items: flex-start;
}

.twcf-footer-bar__credit img {
	width: 130px;
	height: 130px;
	max-width: none;
	margin: -43px -10px -40px -3px;
	object-fit: contain;
}

/* Phones: leave room under the bar so the floating cookie tab and cart button do not cover the logo. */
@media (max-width: 640px) {
	.twcf-footer-bar {
		padding-bottom: 64px;
	}
}
