/*
#######################################################################
# 🐢  TRTL UX — Custom Shells Product Callout, Auth Gate & Cart Highlight
#  File: assets/trtl/css/trtl-custom-shells.css | v1.1.0-TRTL [STABLE]
#  Author: Savvy Turtle (Founder) | Owner: Savvy Turtle Inc.
#######################################################################
*/

/* Strip all Woo stock / backorder / WoodMart waitlist UI on Custom Shells */
body.ts-has-custom-shell p.stock,
body.ts-has-custom-shell .stock,
body.ts-has-custom-shell .wd-stock-progress-bar,
body.ts-has-custom-shell .wd-wtl-form,
body.ts-has-custom-shell .wtl-form-wrapper {
	display: none !important;
}

/* Lock Custom Shell CTA, Buy Now, Quantity & Express Checkout when Guest */
body.ts-custom-shell-locked form.cart .single_add_to_cart_button,
body.ts-custom-shell-locked form.cart .wd-buy-now-btn,
body.ts-custom-shell-locked form.cart .quantity {
	opacity: 0.36 !important;
	filter: grayscale(100%) !important;
	pointer-events: none !important;
	cursor: not-allowed !important;
}

body.ts-custom-shell-locked #wc-stripe-express-checkout-element,
body.ts-custom-shell-locked .wc-stripe-express-checkout-wrapper,
body.ts-custom-shell-locked .wcpay-express-checkout-wrapper,
body.ts-custom-shell-locked #wc-stripe-payment-request-wrapper {
	display: none !important;
}

/* 1. Single Product Page Custom Shell Forge Card */
.ts-custom-shell-card {
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 18px;
	padding: 16px 18px;
	border-radius: 16px;
	background: linear-gradient(180deg, #fffafa 0%, #fef2f2 100%);
	border: 1px solid rgba(217, 48, 37, 0.24);
	box-shadow: 0 8px 22px rgba(217, 48, 37, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.ts-custom-shell-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.ts-custom-shell-badges-right {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ts-custom-shell-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	background: #d93025;
	color: #ffffff;
	font-size: 11.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ts-custom-shell-forge-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(212, 178, 84, 0.20);
	border: 1px solid rgba(180, 134, 24, 0.38);
	color: #6e4e06;
	font-size: 12px;
	font-weight: 800;
}

.ts-custom-shell-auth-status {
	display: inline-flex;
	align-items: center;
	padding: 4px 11px;
	border-radius: 999px;
	background: rgba(217, 48, 37, 0.12);
	border: 1px solid rgba(217, 48, 37, 0.30);
	color: #b3261e;
	font-size: 11.5px;
	font-weight: 800;
}

.ts-custom-shell-copy {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: #334155;
	font-weight: 500;
}

.ts-custom-shell-guest-box {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(217, 48, 37, 0.14);
}

.ts-custom-shell-guest-copy {
	margin: 0 0 12px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #334155;
	font-weight: 500;
}

.ts-custom-shell-login-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	border-radius: 999px;
	background: #d93025;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	border: none;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.ts-custom-shell-login-pill:hover,
.ts-custom-shell-login-pill:focus {
	background: #b3261e;
	color: #ffffff !important;
	transform: translateY(-1px);
}

/* Runway Night Mode (7 PM - 6 AM) */
.ts-custom-shell-card[data-cs-theme="runway"] {
	background: linear-gradient(165deg, #1b1416 0%, #111317 100%);
	border-color: rgba(217, 48, 37, 0.48);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.ts-custom-shell-card[data-cs-theme="runway"] .ts-custom-shell-forge-pill {
	background: rgba(212, 178, 84, 0.18);
	border-color: rgba(212, 178, 84, 0.45);
	color: #f3d683;
}

.ts-custom-shell-card[data-cs-theme="runway"] .ts-custom-shell-auth-status {
	background: rgba(217, 48, 37, 0.22);
	border-color: rgba(248, 113, 113, 0.45);
	color: #fca5a5;
}

.ts-custom-shell-card[data-cs-theme="runway"] .ts-custom-shell-copy,
.ts-custom-shell-card[data-cs-theme="runway"] .ts-custom-shell-guest-copy {
	color: #cbd5e1;
}

.ts-custom-shell-card[data-cs-theme="runway"] .ts-custom-shell-guest-box {
	border-top-color: rgba(255, 255, 255, 0.12);
}

/* 2. Savvy Red "Custom Shell" Button Override (Quantity Untouched when Logged In) */
body.ts-has-custom-shell form.cart .single_add_to_cart_button,
a.button.ts-custom-shell-loop-btn,
.wd-add-btn > a.ts-custom-shell-loop-btn {
	background-color: #d93025 !important;
	background-image: none !important;
	border-color: #d93025 !important;
	color: #ffffff !important;
	font-weight: 800 !important;
	letter-spacing: 0.02em;
	box-shadow: 0 6px 18px rgba(217, 48, 37, 0.26) !important;
	transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}

body.ts-has-custom-shell form.cart .single_add_to_cart_button:hover,
body.ts-has-custom-shell form.cart .single_add_to_cart_button:focus,
a.button.ts-custom-shell-loop-btn:hover,
.wd-add-btn > a.ts-custom-shell-loop-btn:hover {
	background-color: #b3261e !important;
	border-color: #b3261e !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(179, 38, 30, 0.34) !important;
}

/* 3. Highlighted Custom Shell Rows & Badges in Mini-Cart, Cart & Checkout */
tr.ts-cart-item-custom-shell,
li.ts-cart-item-custom-shell {
	background: linear-gradient(90deg, rgba(217, 48, 37, 0.07) 0%, rgba(254, 242, 242, 0.32) 100%) !important;
}

tr.ts-cart-item-custom-shell > td:first-child,
li.ts-cart-item-custom-shell {
	box-shadow: inset 4px 0 0 #d93025;
}

li.ts-cart-item-custom-shell {
	padding-left: 12px !important;
	border-radius: 10px;
	margin-bottom: 8px;
}

.ts-cs-inline-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 6px;
}

.ts-cs-inline-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	background: #d93025;
	color: #ffffff !important;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ts-cs-inline-forge {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(212, 178, 84, 0.22);
	border: 1px solid rgba(180, 134, 24, 0.36);
	color: #6e4e06 !important;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
}

/* 4. Mixed-Cart Wave Rollout Notice Banner */
.ts-cs-wave-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: 14px;
	background: linear-gradient(90deg, #fffafa 0%, #f8fafc 100%);
	border: 1px solid rgba(217, 48, 37, 0.25);
	box-shadow: inset 4px 0 0 #d93025;
	font-size: 13px;
	line-height: 1.5;
	color: #1e293b;
	font-weight: 500;
}

.ts-cs-wave-banner strong {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(217, 48, 37, 0.12);
	color: #b3261e;
	font-size: 11.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
