/* ═══════════════════════════════════════════════
   CODARABY — Thank You Page Styles
   Loaded only on pages containing [codaraby_thankyou]
   ═══════════════════════════════════════════════ */

:root {
	--ty-primary:   #1f67ed;
	--ty-success:   #10b981;
	--ty-wa:        #25D366;
	--ty-warning:   #f59e0b;
	--ty-dark:      #1e293b;
	--ty-muted:     #64748b;
	--ty-border:    #e2e8f0;
	--ty-light:     #f8fafc;
	--ty-radius:    14px;
}

/* ── Wrapper ── */
.expcod-ty {
	max-width: 700px;
	margin: 0 auto;
	direction: rtl;
	text-align: right;
	font-family: inherit;
	color: var(--ty-dark);
}

.expcod-ty-error {
	text-align: center;
	color: #dc2626;
	padding: 2rem;
	font-size: 1.1rem;
}

/* ── Header ── */
.expcod-ty-header {
	background: linear-gradient(135deg, var(--ty-primary) 0%, #4d6bfe 100%);
	color: #fff;
	text-align: center;
	padding: 2.5rem 1.5rem 4rem;
	border-radius: 0 0 28px 28px;
	margin-bottom: 3.5rem;
	position: relative;
	box-shadow: 0 4px 20px rgba(31,103,237,.18);
}

.expcod-ty-badge {
	position: absolute;
	bottom: -30px;
	left: 50%;
	transform: translateX(-50%);
	width: 70px;
	height: 70px;
	background: var(--ty-success);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: #fff;
	border: 5px solid #fff;
	box-shadow: 0 4px 15px rgba(0,0,0,.1);
	animation: ty-pulse 2s infinite;
}

@keyframes ty-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
	70%  { box-shadow: 0 0 0 14px rgba(16,185,129,0); }
	100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.expcod-ty-title {
	font-size: 1.7rem;
	font-weight: 700;
	margin: 0 0 .6rem;
	color: #fff;
}

.expcod-ty-subtitle {
	font-size: 1rem;
	opacity: .9;
	margin: 0;
	color: #fff;
}

/* ── Card ── */
.expcod-ty-card {
	background: #fff;
	border: 1px solid var(--ty-border);
	border-radius: var(--ty-radius);
	padding: 1.2rem;
	margin-bottom: 1rem;
	box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.expcod-ty-card-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ty-dark);
	margin: 0 0 1rem;
	padding-bottom: .7rem;
	border-bottom: 2px solid var(--ty-border);
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ── WhatsApp card ── */
.expcod-ty-wa {
	background: linear-gradient(135deg, #f0fff4, #e6fffa);
	border: 2px solid var(--ty-wa);
	border-radius: var(--ty-radius);
	padding: 1.4rem;
	margin-bottom: 1rem;
}

.expcod-ty-wa-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: .8rem;
}

.expcod-ty-wa-icon {
	background: var(--ty-wa);
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	flex-shrink: 0;
}

.expcod-ty-wa-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--ty-dark);
	margin: 0;
}

.expcod-ty-wa-desc {
	color: #475569;
	font-size: .95rem;
	line-height: 1.6;
	margin-bottom: 1.2rem;
}

.expcod-ty-wa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--ty-wa);
	color: #fff;
	padding: .85rem 1.8rem;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.05rem;
	box-shadow: 0 4px 15px rgba(37,211,102,.25);
	transition: background .2s, transform .2s;
}

.expcod-ty-wa-btn:hover {
	background: #128C7E;
	transform: translateY(-2px);
	color: #fff;
}

/* ── Info grid ── */
.expcod-ty-info-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: .8rem;
}

@media (max-width: 600px) {
	.expcod-ty-info-grid { grid-template-columns: repeat(2, 1fr); }
}

.expcod-ty-info-item {}

.expcod-ty-info-label {
	font-size: .82rem;
	color: var(--ty-muted);
	margin-bottom: .2rem;
}

.expcod-ty-info-value {
	font-weight: 700;
	font-size: 1rem;
	color: var(--ty-dark);
}

/* ── Timeline ── */
.expcod-ty-timeline {
	display: flex;
	justify-content: space-between;
	position: relative;
	padding: 0 .5rem;
	margin: .5rem 0 1rem;
}

.expcod-ty-timeline::before {
	content: '';
	position: absolute;
	top: 20px;
	left: 0; right: 0;
	height: 4px;
	background: var(--ty-border);
	border-radius: 2px;
	z-index: 1;
}

.expcod-ty-timeline::after {
	content: '';
	position: absolute;
	top: 20px;
	right: 0;
	width: 40%;
	height: 4px;
	background: var(--ty-success);
	border-radius: 2px;
	z-index: 2;
}

.expcod-ty-step {
	position: relative;
	z-index: 3;
	text-align: center;
	width: 25%;
}

.expcod-ty-step-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ty-border);
	color: var(--ty-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto .4rem;
	font-weight: 700;
	font-size: .95rem;
}

.expcod-ty-step.active .expcod-ty-step-icon {
	background: var(--ty-success);
	color: #fff;
	box-shadow: 0 3px 10px rgba(16,185,129,.3);
}

.expcod-ty-step-label {
	font-size: .75rem;
	color: #94a3b8;
}

.expcod-ty-step.active .expcod-ty-step-label {
	color: var(--ty-dark);
	font-weight: 600;
}

/* ── Products ordered ── */
.expcod-ty-product {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .9rem;
	background: var(--ty-light);
	border-radius: 10px;
	border: 1px solid var(--ty-border);
	margin-bottom: .6rem;
}

.expcod-ty-product img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
	border: 1px solid var(--ty-border);
}

.expcod-ty-product-name {
	font-weight: 600;
	font-size: .95rem;
	margin-bottom: .25rem;
}

.expcod-ty-product-meta {
	font-size: .82rem;
	color: var(--ty-muted);
	display: flex;
	gap: 1rem;
}

/* ── Cheap carousel ── */
.expcod-ty-cheap-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: .6rem;
}

.expcod-ty-cheap-badge {
	background: #FF4757;
	color: #fff;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: .78rem;
	font-weight: 700;
}

.expcod-ty-carousel {
	display: flex;
	gap: .8rem;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding: .4rem .2rem .8rem;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.expcod-ty-carousel::-webkit-scrollbar { display: none; }

.expcod-ty-carousel-item {
	flex: 0 0 auto;
	width: 148px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid var(--ty-border);
	padding: .8rem;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s;
	box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.expcod-ty-carousel-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 18px rgba(0,0,0,.1);
}

.expcod-ty-carousel-item img {
	width: 100%;
	height: 110px;
	object-fit: contain;
	border-radius: 8px;
	background: var(--ty-light);
	border: 1px solid var(--ty-border);
	display: block;
	margin-bottom: .6rem;
}

.expcod-ty-carousel-name {
	font-size: .85rem;
	font-weight: 600;
	color: var(--ty-dark);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: .5rem;
}

.expcod-ty-carousel-price {
	color: #FF4757;
	font-weight: 700;
	font-size: 1rem;
}

.expcod-ty-carousel-price span {
	font-size: .75rem;
	color: var(--ty-muted);
	font-weight: 400;
}

/* ── Related products ── */
.expcod-ty-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: .8rem;
}

.expcod-ty-related-item {
	background: #fff;
	border: 1px solid var(--ty-border);
	border-radius: 12px;
	padding: .8rem;
	text-align: center;
	transition: transform .2s, box-shadow .2s;
	text-decoration: none;
	display: block;
}

.expcod-ty-related-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.expcod-ty-related-item img {
	width: 100%;
	object-fit: contain;
	border-radius: 8px;
}

.expcod-ty-related-item .name {
	font-weight: 600;
	font-size: .88rem;
	color: var(--ty-dark);
	margin: .4rem 0 .2rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.expcod-ty-related-item .price {
	color: var(--ty-primary);
	font-weight: 700;
	font-size: .95rem;
}

/* ── Notice ── */
.expcod-ty-notice {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: var(--ty-radius);
	padding: 1rem;
	margin-bottom: 1rem;
	display: flex;
	flex-direction: column;
	gap: .6rem;
}

.expcod-ty-notice-row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: .92rem;
	color: var(--ty-dark);
	line-height: 1.5;
}

.expcod-ty-notice-icon {
	background: var(--ty-warning);
	color: #fff;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .75rem;
	font-weight: 700;
	flex-shrink: 0;
	margin-top: 1px;
}

/* ── Shop button ── */
.expcod-ty-shop-btn {
	display: block;
	text-align: center;
	background: var(--ty-primary);
	color: #fff;
	padding: .9rem;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 700;
	font-size: 1rem;
	margin-top: 1rem;
	transition: background .2s, transform .2s;
	box-shadow: 0 4px 15px rgba(31,103,237,.2);
}

.expcod-ty-shop-btn:hover {
	background: #1551cc;
	transform: translateY(-2px);
	color: #fff;
}

/* ── Mobile ── */
@media (max-width: 600px) {
	.expcod-ty-header { padding: 2rem 1rem 3.5rem; }
	.expcod-ty-title  { font-size: 1.45rem; }
	.expcod-ty-carousel-item { width: 130px; }
}
