/* OMS Terms Acceptance - express-pay cover, agreement pop-up, toast. */

.oms-ta-covered {
	position: relative !important;
}

.oms-ta-cover {
	position: absolute !important;
	inset: 0;
	z-index: 50;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent !important;
	cursor: pointer;
}

.oms-ta-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.55);
}

.oms-ta-modal[hidden] {
	display: none;
}

.oms-ta-box {
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 24px;
	border-radius: 10px;
	background: #fff;
	color: #1d1d1f;
	font-size: 16px;
	line-height: 1.5;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.oms-ta-box h2 {
	margin: 0 0 12px;
	font-size: 20px;
	color: #1d1d1f;
}

.oms-ta-box p {
	margin: 0 0 16px;
	color: #1d1d1f;
}

.oms-ta-check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px;
	border: 2px solid #33373a;
	border-radius: 8px;
	cursor: pointer;
	color: #1d1d1f;
}

.oms-ta-check input {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin-top: 2px;
}

.oms-ta-box a {
	color: #0a58ca;
	text-decoration: underline;
}

.oms-ta-error {
	margin-top: 12px !important;
	color: #b32d2e !important;
}

.oms-ta-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 20px;
}

.oms-ta-actions button {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 10px 18px !important;
	white-space: nowrap;
	letter-spacing: normal !important;
	border-radius: 6px;
	font-size: 16px;
	cursor: pointer;
}

.oms-ta-cancel {
	border: 1px solid #8a8a8a;
	background: #fff;
	color: #1d1d1f;
}

.oms-ta-ok {
	border: 0;
	background: #33373a;
	color: #fff;
}

.oms-ta-ok:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.oms-ta-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100001;
	transform: translateX(-50%);
	max-width: calc(100vw - 32px);
	padding: 12px 18px;
	border-radius: 8px;
	background: #1d1d1f;
	color: #fff;
	font-size: 16px;
}

/* The checkout checkbox's policy links must look like links (the live theme renders them as plain dark text). */
.wc-block-checkout a[href*="terms-and-conditions"],
.wc-block-checkout a[href*="refund_returns"] {
	text-decoration: underline;
}
