/* Winery Integration front end. Colors follow the Design screen (--wict-*),
   then Commerce7's own variables, then neutral defaults. */

.wict-cart-box {
	position: fixed;
	z-index: 9990;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 14px;
	border-radius: 999px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
	font-size: 14px;
}

.wict-cart-box--tr { top: 16px; right: 16px; }
.wict-cart-box--tl { top: 16px; left: 16px; }
.wict-cart-box--br { bottom: 16px; right: 16px; }
.wict-cart-box--bl { bottom: 16px; left: 16px; }

.admin-bar .wict-cart-box--tr,
.admin-bar .wict-cart-box--tl {
	top: 48px;
}

.wict-cart-box--light {
	background: #fff;
	color: #1d1d1f;
}

.wict-cart-box--dark {
	background: #1d1d1f;
	color: #fff;
}

.wict-cart-box--dark a {
	color: #fff;
}

/* Club selector */
.wict-club-selector__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	border: 0;
	margin: 0 0 16px;
	padding: 0;
}

.wict-club-selector__option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.wict-club-selector__select {
	margin-bottom: 16px;
	min-width: 220px;
}

/* Wine club tiers */
.wict-tiers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.wict-tier {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 28px 24px;
	background: var(--wict-tier-bg, rgba(0, 0, 0, 0.03));
	color: var(--wict-tier-color, inherit);
	border-radius: var(--wict-tier-radius, var(--wict-radius, 6px));
}

.wict-tier__name {
	margin: 0;
}

.wict-tier__price {
	margin: 0;
	font-weight: 600;
}

.wict-tier__desc {
	margin: 0 0 8px;
	flex: 1;
}

.wict-tier__join-preview {
	display: inline-block;
	align-self: flex-start;
	padding: 10px 18px;
	border-radius: var(--wict-radius, 4px);
	background: var(--wict-brand, var(--c7-primary-button-bg, #222));
	color: var(--wict-brand-text, var(--c7-primary-button-text-color, #fff));
	font-weight: 600;
}

/* Tock */
.wict-tock {
	text-align: center;
}

.wict-tock-button {
	display: inline-block;
	padding: 12px 24px;
	border-radius: var(--wict-radius, 4px);
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.wict-tock-button--solid {
	background: var(--wict-brand, var(--c7-primary-button-bg, #222));
	color: var(--wict-brand-text, var(--c7-primary-button-text-color, #fff));
	border: 2px solid var(--wict-brand, var(--c7-primary-button-bg, #222));
}

.wict-tock-button--solid:hover,
.wict-tock-button--solid:focus {
	background: var(--wict-brand-dark, var(--c7-primary-button-bg-hover, #000));
	border-color: var(--wict-brand-dark, var(--c7-primary-button-bg-hover, #000));
	color: var(--wict-brand-text, var(--c7-primary-button-text-color, #fff));
}

.wict-tock-button--outline {
	background: transparent;
	color: var(--wict-brand, var(--c7-primary-button-bg, #222));
	border: 2px solid currentColor;
}

.wict-tock-button--outline:hover,
.wict-tock-button--outline:focus {
	background: var(--wict-brand, var(--c7-primary-button-bg, #222));
	color: var(--wict-brand-text, var(--c7-primary-button-text-color, #fff));
}

/* Editor placeholder and admin-only notes */
/* Editor placeholders: a small drawing of each widget, in the brand color when set. */
.wict-placeholder {
	--wict-a: var(--wict-ph-accent, #50575e);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	padding: 14px;
	border: 1px solid color-mix(in srgb, var(--wict-a) 22%, #e2e2e2);
	border-radius: 10px;
	background: #fff;
	color: #1d2327;
	font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.wict-ph__sketch {
	display: flex;
	flex: 0 0 184px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 104px;
	padding: 12px;
	overflow: hidden;
	border-radius: 7px;
	background: color-mix(in srgb, var(--wict-a) 7%, #fafafa);
}

.wict-ph__text {
	display: flex;
	flex: 1 1 200px;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.wict-ph__text strong {
	font-size: 14px;
}

.wict-ph__text em {
	font-style: normal;
	color: #50575e;
	overflow-wrap: anywhere;
}

.wict-ph__text span {
	color: #787c82;
	font-size: 12px;
}

.wict-ph__row {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 8px;
	width: 100%;
}

.wict-ph__stack {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.wict-ph__card {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 8px 4px 6px;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .07);
}

.wict-ph__bottle {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: 9px;
	height: 28px;
	margin-top: 8px;
	border-radius: 3px 3px 2px 2px;
	background: var(--wict-a);
}

.wict-ph__bottle::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 2.5px;
	width: 4px;
	height: 9px;
	border-radius: 1px;
	background: var(--wict-a);
}

.wict-placeholder--buy .wict-ph__bottle {
	width: 15px;
	height: 46px;
	margin: 12px 10px 0 0;
}

.wict-placeholder--buy .wict-ph__bottle::before {
	top: -12px;
	left: 4.5px;
	width: 6px;
	height: 13px;
}

.wict-ph__line {
	display: block;
	width: 100%;
	height: 4px;
	border-radius: 2px;
	background: color-mix(in srgb, var(--wict-a) 22%, #d8d8d8);
}

.wict-ph__line--short {
	width: 60%;
}

.wict-ph__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	height: 24px;
	padding: 0 12px;
	border-radius: 4px;
	background: var(--wict-a);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.wict-ph__price {
	font-size: 14px;
	font-weight: 700;
	color: #1d2327;
}

.wict-ph__field {
	display: block;
	height: 16px;
	border: 1px solid #d5d5d5;
	border-radius: 3px;
	background: #fff;
}

.wict-ph__field--tall {
	height: 30px;
}

.wict-ph__option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 8px;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .07);
}

.wict-ph__radio {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 11px;
	height: 11px;
	border: 1.5px solid #c3c4c7;
	border-radius: 50%;
}

.wict-ph__radio.is-on {
	border: 3.5px solid var(--wict-a);
}

.wict-ph__chevron {
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid #a7aaad;
	border-bottom: 1.5px solid #a7aaad;
	transform: rotate(-45deg);
}

.wict-ph__calendar {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	width: 100%;
}

.wict-ph__calendar i {
	height: 19px;
	border-radius: 3px;
	background: #fff;
	box-shadow: inset 0 0 0 1px #e2e2e2;
}

.wict-ph__calendar i.is-on {
	background: var(--wict-a);
	box-shadow: none;
}

.wict-ph__banner,
.wict-ph__page {
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 5px;
}

.wict-ph__banner {
	justify-content: flex-end;
	padding: 10px;
	background: linear-gradient(135deg, var(--wict-a), color-mix(in srgb, var(--wict-a) 55%, #000));
}

.wict-ph__banner .wict-ph__line {
	background: rgba(255, 255, 255, .75);
}

.wict-ph__page {
	padding: 0 10px 10px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .07);
}

.wict-ph__bar {
	display: block;
	height: 12px;
	margin: 0 -10px 4px;
	background: color-mix(in srgb, var(--wict-a) 18%, #eee);
}

.wict-ph__glyph {
	position: relative;
	display: block;
}

.wict-ph__glyph--account {
	width: 42px;
	height: 42px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--wict-a);
}

.wict-ph__glyph--account::before,
.wict-ph__glyph--account::after {
	content: "";
	position: absolute;
	left: 50%;
	background: #fff;
	transform: translateX(-50%);
}

.wict-ph__glyph--account::before {
	top: 9px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
}

.wict-ph__glyph--account::after {
	top: 25px;
	width: 26px;
	height: 22px;
	border-radius: 50%;
}

.wict-ph__glyph--cart {
	width: 30px;
	height: 28px;
	margin-top: 10px;
	border: 2.5px solid var(--wict-a);
	border-radius: 3px 3px 7px 7px;
}

.wict-ph__glyph--cart::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 5.5px;
	width: 14px;
	height: 10px;
	border: 2.5px solid var(--wict-a);
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
}

.wict-ph__glyph--cart::after {
	content: "2";
	position: absolute;
	top: -12px;
	right: -12px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--wict-a);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

.wict-admin-notice {
	padding: 10px 14px;
	border-left: 3px solid #dba617;
	background: #fcf4e3;
	color: #3c2f00;
	font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wict-admin-notice a {
	color: inherit;
	text-decoration: underline;
}

/* Block editor repeater */
.wict-repeater__label {
	font-weight: 600;
	margin: 8px 0;
}
