/**
 * Order-level fulfillment selector (cart + checkout), v2.18.
 * Customer-facing: .wcaps- prefix throughout.
 */

.wcaps-order-method {
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	padding: 18px 20px;
	margin: 0 0 24px;
	background: #fafafa;
}

.wcaps-order-method__title {
	margin: 0 0 12px;
	font-size: 1.05em;
}

/* thin options in 3 columns; details live behind the "?" tip.
   NO overflow:hidden here — it clips the tooltip bubbles. */
.wcaps-order-method__options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border: 1px solid #ddd;
	border-radius: 10px;
	background: #fff;
}

.wcaps-order-method__option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-right: 1px solid #eee;
	background: #fff;
	cursor: pointer;
	transition: background 0.12s;
	min-height: 46px;
	min-width: 0;
}

.wcaps-order-method__option:first-child {
	border-radius: 10px 0 0 10px;
}

.wcaps-order-method__option:last-child {
	border-right: 0;
	border-radius: 0 10px 10px 0;
}

.wcaps-order-method__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media ( max-width: 700px ) {
	.wcaps-order-method__options {
		grid-template-columns: 1fr;
	}
	.wcaps-order-method__option {
		border-right: 0;
		border-bottom: 1px solid #eee;
	}
	.wcaps-order-method__option:first-child {
		border-radius: 10px 10px 0 0;
	}
	.wcaps-order-method__option:last-child {
		border-bottom: 0;
		border-radius: 0 0 10px 10px;
	}
}

.wcaps-order-method__option:hover {
	background: #f7f6f3;
}

.wcaps-order-method__option:has(input:checked) {
	background: #f1f4f7;
	box-shadow: inset 3px 0 0 #26323c;
}

.wcaps-order-method__option.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
	background: #f6f6f6;
}

.wcaps-order-method__option input {
	flex: 0 0 auto;
	margin: 0;
}

.wcaps-order-method__name {
	font-weight: 700;
	font-size: 0.98em;
	line-height: 1.2;
}

.wcaps-order-method__na {
	font-size: 0.78em;
	font-weight: 600;
	color: #a33;
	background: #f8ecea;
	border-radius: 10px;
	padding: 2px 9px;
	white-space: nowrap;
}

/* the "?" tip: hover or focus reveals the detail bubble */
.wcaps-tip {
	margin-left: auto;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1.5px solid #b9b4ab;
	color: #8a857c;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: help;
	position: relative;
	background: #fff;
}

.wcaps-tip:hover,
.wcaps-tip:focus {
	border-color: #26323c;
	color: #26323c;
	outline: none;
}

.wcaps-tip::after {
	content: attr(data-tip);
	position: absolute;
	right: -8px;
	bottom: calc(100% + 8px);
	width: 240px;
	background: #26323c;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.45;
	padding: 10px 12px;
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.12s, transform 0.12s;
	z-index: 40;
	pointer-events: none;
	white-space: normal;
}

.wcaps-tip:hover::after,
.wcaps-tip:focus::after {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* delivery: saved-address picker */
.wcaps-order-method__delivery {
	margin-top: 14px;
	border-top: 1px dashed #ccc;
	padding-top: 12px;
}

.wcaps-order-method__deliver-to {
	display: block;
	font-weight: 600;
	font-size: 0.9em;
	margin-bottom: 6px;
}

.wcaps-order-method__addr-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.wcaps-order-method__addr-row select {
	flex: 1 1 240px;
	padding: 10px 12px;
	border: 1.5px solid #c9c4bb;
	border-radius: 8px;
	background: #fff;
	color: #26323c;
	font-size: 0.95em;
	max-width: 100%;
}

.wcaps-order-method__addr-add {
	flex: 0 0 auto;
	font-size: 0.9em;
	font-weight: 600;
	color: #26323c !important;
	text-decoration: none;
	border: 1.5px dashed #b9b4ab;
	border-radius: 8px;
	padding: 8px 14px;
	white-space: nowrap;
}

.wcaps-order-method__addr-add:hover {
	border-color: #26323c;
}

.wcaps-order-method__hint {
	margin: 0;
	font-size: 0.9em;
	color: #666;
}

.wcaps-order-method__pickup {
	margin-top: 16px;
	border-top: 1px dashed #ccc;
	padding-top: 14px;
}

.wcaps-order-method__subtitle {
	margin: 0 0 8px;
	font-weight: 600;
}

.wcaps-order-method__yards {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wcaps-order-method__yard {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid #ccc;
	border-radius: 20px;
	padding: 6px 14px;
	background: #fff;
	cursor: pointer;
	font-size: 0.95em;
}

.wcaps-order-method__yard:has(input:checked) {
	border-color: #2c3338;
	box-shadow: 0 0 0 1px #2c3338;
}

.wcaps-order-method__yard.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	text-decoration: line-through;
}

.wcaps-order-method__yard em {
	font-size: 0.8em;
	font-style: normal;
	color: #a33;
	text-decoration: none;
}

.wcaps-order-method__yard input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.wcaps-order-method__when {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 12px;
}

.wcaps-order-method__when label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.92em;
}

.wcaps-order-method__when input {
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.wcaps-order-method__error {
	margin: 12px 0 0;
	color: #a33;
	font-weight: 600;
}

/* Product-page availability badges (replace the radios in order-method mode) */
.wcaps-method-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0;
}

.wcaps-method-badges__item {
	display: inline-block;
	border: 1px solid #cfd8cf;
	background: #eef5ee;
	color: #29502b;
	border-radius: 14px;
	padding: 3px 12px;
	font-size: 0.85em;
}

@media (max-width: 640px) {
	.wcaps-order-method__options {
		flex-direction: column;
	}
}

/* Checkout confirmation chip (the cart decides; checkout confirms) */
.wcaps-order-method__summary {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 4px 0;
	font-size: 1em;
}

.wcaps-order-method__summary-label {
	color: #666;
}

.wcaps-order-method__change {
	margin-left: auto;
	background: none;
	border: 1px solid #ccc;
	border-radius: 16px;
	padding: 5px 14px;
	font-size: 0.88em;
	cursor: pointer;
	transition: border-color 0.15s;
}

.wcaps-order-method__change:hover {
	border-color: #26323c;
}

.wcaps-review-editlink {
	text-align: right;
	margin: 0 0 8px;
	font-size: 0.9em;
}

/* Delivery status line: says WHY there is no price yet */
.wcaps-order-method__status {
	margin: 10px 0 0;
	padding: 9px 12px;
	background: #fdf6e3;
	border-left: 3px solid #b8892b;
	border-radius: 6px;
	font-size: 0.9em;
	color: #5c4a22;
}

/* Per-item mode: the top row is a set of bulk ACTIONS, not the order's state */
.wcaps-order-method__options.is-bulk .wcaps-order-method__option:has(input:checked) {
	background: #fff;
	box-shadow: none;
}

.wcaps-order-method__options.is-bulk .wcaps-order-method__option input {
	display: none;
}

.wcaps-order-method__options.is-bulk .wcaps-order-method__option {
	justify-content: center;
	text-align: center;
	font-weight: 600;
}

.wcaps-order-method__options.is-bulk .wcaps-order-method__option:hover {
	background: #eef1f4;
}
