/*! © 2026 Oba Go 欧爸优选 shop.obago.com.au 版权所有，未经许可不得复制使用。Fingerprint: obgshop-kts9r7wjor */
/* 预计收件时间（mu-plugins/obago-delivery-estimate.php）：一行浅蓝底的小卡片 + “查看详情”弹窗。商品页、购物车、结账页加载。
   运费的“查看详情”和运费详情弹窗（mu-plugins/obago-shipping.php，#obago-shipping-fee-detail）也用这里的按钮、弹窗样式。 */

.obago-delivery-estimate {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: #eef6fb;
	color: #555;
	font-size: 0.95em;
	line-height: 1.4;
	container-type: inline-size; /* 下面按卡片自己的宽度换版式 */
}
.obago-delivery-estimate-icon {
	flex: none;
	width: 22px;
	height: 22px;
	color: #3e8fc4;
}
.obago-delivery-estimate-dates {
	color: #2b2a28;
	font-weight: 700;
}
/* “查看详情”：是个按钮（popover 要用按钮触发），去掉按钮样式，做成右边的小链接。 */
.obago-delivery-estimate-more,
.obago-delivery-estimate-more:hover,
.obago-delivery-estimate-more:focus {
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none; /* 主题给按钮的淡阴影，在这里像一块灰底 */
	color: #3e8fc4;
	font: inherit;
	font-size: 0.9em;
	white-space: nowrap;
	cursor: pointer;
}
/* 卡片窄、一行放不下（约 23em：图标 + 预计收件 + 日期 + 查看详情）时，不让“查看详情”单独掉到第二行：
   第一行“预计收件 …… 查看详情”，日期单独第二行、跟“预计收件”左对齐（图标 22px + 间距 8px）。 */
@container (max-width: 23em) {
	.obago-delivery-estimate-dates {
		order: 1;
		flex-basis: 100%;
		padding-left: 30px;
		text-align: left; /* 手机上购物车总计的金额格是右对齐 */
	}
}
.obago-delivery-estimate-more::before {
	content: "ⓘ ";
}
.obago-delivery-estimate-more:hover {
	text-decoration: underline;
}

/* 购物车总计、结账页订单明细里：放在右边那栏，跟上面的小字行同样不加分隔线（见 shipping-rate.css），卡片字号跟表格一致。 */
.obago-delivery-estimate-row .obago-delivery-estimate {
	margin: 4px 0;
	padding: 8px 12px;
	font-size: 1.1em;
}

/* 弹窗：浏览器把 popover 放在最上层、默认居中；定宽、圆角阴影，背后半透明遮罩（跟“联系客服”弹窗一致）。 */
.obago-delivery-detail {
	width: min(440px, calc(100vw - 32px));
	padding: 24px;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
	color: #444;
}
.obago-delivery-detail::backdrop {
	background: rgba(0, 0, 0, 0.4);
}
.obago-delivery-detail h3 {
	margin: 0 0 12px;
	font-size: 1.15em;
}
.obago-delivery-detail-dates {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #eef6fb;
	font-size: 0.95em;
}
.obago-delivery-detail-dates strong {
	margin: 0 4px;
	color: #3e8fc4;
	font-size: 1.15em;
}
.obago-delivery-detail-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px dashed #e2e2e2;
}
.obago-delivery-detail-item small {
	display: block;
	color: #999;
	font-size: 0.85em;
}
.obago-delivery-detail-value {
	flex: none;
	color: #2b2a28;
	font-weight: 600;
}
.obago-delivery-detail-holidays {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	color: #999;
	font-size: 0.85em;
}
.obago-delivery-detail-holidays li::before {
	content: "· ";
}
.obago-delivery-detail-total {
	border-bottom: 0;
	font-weight: 700;
}
.obago-delivery-detail-total .obago-delivery-detail-value {
	color: #3e8fc4;
}
.obago-delivery-detail-note {
	margin: 8px 0 0;
	color: #999;
	font-size: 0.85em;
	line-height: 1.6;
}
.obago-delivery-detail-note a {
	color: #3e8fc4;
}
/* WooCommerce / Astra 的按钮规则把它设成 inline-block、外边距 0，权重比两层 class 高，用弹窗 id 压过去才能居中。 */
#obago-delivery-detail .obago-delivery-detail-close,
#obago-shipping-fee-detail .obago-delivery-detail-close {
	display: block;
	margin: 20px auto 0;
}

/* 运费详情弹窗在运费那一格里面输出（跟着订单明细刷新），会继承那一格的右对齐、小字、加粗，改回弹窗自己的。 */
#obago-shipping-fee-detail {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	text-indent: 0;
	white-space: normal;
}
