/**
 * 产品页配镜入口卡片样式
 *
 * CTA 就是一颗按钮：整行渐变 + 悬停扫光 + 箭头轻移。
 * 原来的说明文案（"Need prescription lenses?"）已按需求去掉，
 * 所以这里不再有左右分栏，卡片本身就是按钮。
 */

.okg-rx-framehint {
	margin: 0 0 8px;
	font-size: 12px;
	color: #6b7b85;
}

.okg-rx-cta {
	margin: 14px 0 6px;
}

.okg-rx-cta__btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 18px;
	border-radius: 12px;
	overflow: hidden;
	background-image: linear-gradient(110deg, #0a5f49 0%, #12a06a 48%, #3fdd93 100%);
	background-size: 190% 100%;
	background-position: 0% 50%;
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .015em;
	text-decoration: none;
	line-height: 1;
	box-shadow:
		0 10px 24px rgba(11, 107, 82, .26),
		0 1px 0 rgba(255, 255, 255, .22) inset;
	transition: background-position .55s cubic-bezier(.22, .61, .36, 1),
		transform .16s ease, box-shadow .26s ease;
	-webkit-tap-highlight-color: transparent;
}

.okg-rx-cta__btn:hover,
.okg-rx-cta__btn:focus-visible {
	background-position: 100% 50%;
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow:
		0 15px 32px rgba(11, 107, 82, .34),
		0 1px 0 rgba(255, 255, 255, .3) inset;
}

.okg-rx-cta__btn:active {
	transform: translateY(1px);
	box-shadow: 0 6px 16px rgba(11, 107, 82, .3);
}

.okg-rx-cta__btn:focus-visible {
	outline: 2px solid #0a5f49;
	outline-offset: 3px;
}

/* 悬停时一道白光扫过 */
.okg-rx-cta__btn::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .5) 50%, transparent 68%);
	transform: translateX(-130%);
	transition: transform .75s ease;
	pointer-events: none;
}
.okg-rx-cta__btn:hover::after,
.okg-rx-cta__btn:focus-visible::after {
	transform: translateX(130%);
}

.okg-rx-cta__ico {
	display: block;
	width: 21px;
	height: 21px;
	flex: 0 0 auto;
	opacity: .95;
}
.okg-rx-cta__ico svg {
	display: block;
	width: 100%;
	height: 100%;
}

.okg-rx-cta__label {
	position: relative;
	z-index: 1;
}

.okg-rx-cta__arrow {
	position: relative;
	z-index: 1;
	font-size: 16px;
	line-height: 1;
	opacity: .9;
	transition: transform .25s ease;
}
.okg-rx-cta__btn:hover .okg-rx-cta__arrow {
	transform: translateX(4px);
}

/* 入口被压暗：选中的颜色缺货 / 不可购买
   仍然可点（点了给原因），所以不用 disabled 的 cursor */
.okg-rx-cta__btn.is-blocked {
	background-image: linear-gradient(110deg, #6d7c86 0%, #8d9aa3 55%, #a9b3ba 100%);
	box-shadow: 0 6px 16px rgba(38, 50, 56, .14);
	opacity: .82;
}
.okg-rx-cta__btn.is-blocked:hover,
.okg-rx-cta__btn.is-blocked:focus-visible {
	background-position: 100% 50%;
	box-shadow: 0 8px 20px rgba(38, 50, 56, .18);
	transform: none;
}
.okg-rx-cta__btn.is-blocked::after { display: none; }

/* 校验提示：没选颜色、颜色缺货时出现，选对颜色后自动消失 */
.okg-rx-cta__msg {
	display: none;
	margin: 9px 0 0;
	padding: 9px 12px 9px 34px;
	position: relative;
	border-radius: 9px;
	border: 1px solid #f0cfa8;
	background: #fff8ef;
	color: #8a4b0f;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.5;
}
.okg-rx-cta__msg.is-on,
.okg-rx-cta__msg.is-static { display: block; }
.okg-rx-cta__msg::before {
	content: "!";
	position: absolute;
	left: 12px;
	top: 9px;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #d9822b;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 15px;
	text-align: center;
}

/* 提示出现时把颜色选择区闪一下，客户一眼知道该改哪里 */
.okg-rx-flash {
	border-radius: 10px;
	animation: okg-rx-flash 1.5s cubic-bezier(.3, .7, .4, 1) 1;
}
@keyframes okg-rx-flash {
	0%, 100% { box-shadow: 0 0 0 0 rgba(217, 130, 43, 0); }
	15%, 60% { box-shadow: 0 0 0 3px rgba(217, 130, 43, .3), 0 0 0 8px rgba(217, 130, 43, .08); }
}

@media (prefers-reduced-motion: reduce) {
	.okg-rx-cta__btn,
	.okg-rx-cta__btn::after,
	.okg-rx-cta__arrow {
		transition: none;
	}
	.okg-rx-flash { animation: none; box-shadow: 0 0 0 3px rgba(217, 130, 43, .3); }
}

/* 购物车「修改处方」链接 */
.okg-rx-editlink {
	display: inline-block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 700;
	color: var(--accent-d, #0b6b52);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.okg-rx-editlink:hover { color: #085041; }

@media (max-width: 640px) {
	.okg-rx-cta__btn { padding: 15px 16px; }
}
