/**
 * EasyCart - Thank-you Widget Styles
 * @package EasyCart
 */

/* ==========================================================================
   EasyCart Order Confirmation / Thank You Card Styles
   ========================================================================== */

.easythankyou-wrapper {
	width: 100%;
	box-sizing: border-box;
}

.easythankyou-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 36px 32px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
	box-sizing: border-box;
	text-align: center;
	margin: 0 auto;
}

/* Top Icon & Ripple Animation */
.easythankyou-icon-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
}

.easythankyou-icon-circle {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background-color: rgba(16, 185, 129, 0.12);
	color: #10b981;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	box-sizing: border-box;
}

.easythankyou-icon-circle.has-pulse::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
	animation: easythankyouPulse 2.2s infinite ease-out;
	pointer-events: none;
}

@keyframes easythankyouPulse {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
	}
	70% {
		transform: scale(1.08);
		box-shadow: 0 0 0 14px rgba(16, 185, 129, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

/* SVG Animated Checkmark */
.easythankyou-checkmark-svg {
	width: 48px;
	height: 48px;
	display: block;
}

.easythankyou-checkmark-circle {
	stroke-dasharray: 166;
	stroke-dashoffset: 166;
	stroke: #10b981;
	stroke-miterlimit: 10;
	animation: easythankyouStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.easythankyou-checkmark-check {
	transform-origin: 50% 50%;
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	stroke: #10b981;
	animation: easythankyouCheck 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes easythankyouStroke {
	100% {
		stroke-dashoffset: 0;
	}
}

@keyframes easythankyouCheck {
	100% {
		stroke-dashoffset: 0;
	}
}

.easythankyou-static-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	color: #10b981;
}

.easythankyou-static-icon svg {
	width: 34px !important;
	height: 34px !important;
	max-width: 34px !important;
	max-height: 34px !important;
	fill: currentColor;
}

/* Header Text */
.easythankyou-header {
	margin-bottom: 24px;
	text-align: center;
}

.easythankyou-title {
	font-size: 26px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.easythankyou-subtitle {
	font-size: 15px;
	color: #64748b;
	line-height: 1.5;
	margin: 0;
}

.easythankyou-subtitle p {
	margin: 0;
}

/* Customer Instruction Notice Box */
.easythankyou-notice-box {
	background-color: #fffbeb;
	border: 1px dashed #fde68a;
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 24px;
	text-align: left;
	box-sizing: border-box;
}

.easythankyou-notice-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.easythankyou-notice-icon {
	color: #d97706;
	font-size: 16px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
}

.easythankyou-notice-icon svg {
	width: 16px !important;
	height: 16px !important;
	max-width: 16px !important;
	max-height: 16px !important;
	fill: currentColor;
}

.easythankyou-notice-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #92400e;
	line-height: 1.3;
}

.easythankyou-notice-message {
	font-size: 13px;
	color: #78350f;
	line-height: 1.55;
}

.easythankyou-notice-message p {
	margin: 0;
}

/* Dynamic Order Summary Grid */
.easythankyou-summary-box {
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 24px;
	box-sizing: border-box;
}

.easythankyou-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
}

.easythankyou-tag-item {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
	box-sizing: border-box;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.easythankyou-tag-label {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	line-height: 1.2;
}

.easythankyou-tag-value {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
}

.easythankyou-tag-value.highlight-num {
	color: #2563eb;
}

.easythankyou-tag-value.highlight-price {
	color: #059669;
}

/* Customer Billing Details & Order Items Sections */
.easythankyou-section-box {
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px 20px;
	margin-bottom: 20px;
	text-align: left;
	box-sizing: border-box;
	transition: all 0.2s ease;
}

.easythankyou-section-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e2e8f0;
}

.easythankyou-section-icon {
	color: #2563eb;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.easythankyou-section-icon svg {
	width: 17px;
	height: 17px;
	stroke: currentColor;
}

.easythankyou-section-title {
	font-size: 14.5px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	line-height: 1.3;
}

/* Customer Grid */
.easythankyou-customer-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 18px;
}

.easythankyou-info-row {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.easythankyou-info-row.full-width {
	grid-column: 1 / -1;
}

.easythankyou-info-label {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.35px;
	line-height: 1.2;
}

.easythankyou-info-value {
	font-size: 13.5px;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.4;
	word-break: break-word;
}

.easythankyou-info-value.highlight-phone {
	color: #0f172a;
	font-weight: 700;
}

.easythankyou-info-value.address-val {
	line-height: 1.45;
	color: #334155;
}

.easythankyou-info-value.notes-val {
	font-style: italic;
	color: #475569;
	background: #ffffff;
	padding: 6px 10px;
	border-radius: 6px;
	border: 1px dashed #cbd5e1;
	margin-top: 2px;
}

/* Ordered Items List */
.easythankyou-items-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.easythankyou-item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	gap: 14px;
	transition: border-color 0.15s ease;
}

.easythankyou-item-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1;
}

.easythankyou-item-thumb-box {
	width: 44px;
	height: 44px;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
	border: 1px solid #e2e8f0;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.easythankyou-item-thumb-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.easythankyou-item-title-col {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.easythankyou-item-name {
	font-size: 13.5px;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

.easythankyou-item-qty {
	font-size: 11.5px;
	color: #64748b;
}

.easythankyou-item-qty strong {
	color: #0f172a;
}

.easythankyou-item-price-col {
	text-align: right;
	flex-shrink: 0;
}

.easythankyou-item-price {
	font-size: 13.5px;
	font-weight: 700;
	color: #059669;
	white-space: nowrap;
}

/* Breakdown Table */
.easythankyou-breakdown-table {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed #cbd5e1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.easythankyou-breakdown-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12.5px;
	color: #475569;
}

.easythankyou-breakdown-row.total-row {
	font-size: 14.5px;
	font-weight: 700;
	color: #0f172a;
	margin-top: 6px;
	padding-top: 8px;
	border-top: 1px solid #e2e8f0;
}

@media (max-width: 600px) {
	.easythankyou-customer-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.easythankyou-section-box {
		padding: 14px 16px;
	}
}

/* Action Area & Support Buttons */
.easythankyou-actions-area {
	margin-top: 10px;
}

.easythankyou-help-text {
	font-size: 13px;
	color: #475569;
	margin: 0 0 14px 0;
	font-weight: 500;
	line-height: 1.4;
}

.easythankyou-buttons-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.easythankyou-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
	min-width: 170px;
	line-height: 1.2;
}

.easythankyou-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

.easythankyou-btn-icon svg {
	width: 16px !important;
	height: 16px !important;
	max-width: 16px !important;
	max-height: 16px !important;
	fill: currentColor;
}

.easythankyou-btn-primary {
	background-color: #10b981;
	color: #ffffff;
	border: 1px solid #10b981;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.easythankyou-btn-primary:hover {
	background-color: #059669;
	border-color: #059669;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.easythankyou-btn-secondary {
	background-color: #f1f5f9;
	color: #334155;
	border: 1px solid #e2e8f0;
}

.easythankyou-btn-secondary:hover {
	background-color: #e2e8f0;
	color: #0f172a;
	transform: translateY(-1px);
}

/* Responsive Mobile Adjustments */
@media (max-width: 640px) {
	.easythankyou-card {
		padding: 26px 18px;
		border-radius: 16px;
	}

	.easythankyou-title {
		font-size: 21px;
	}

	.easythankyou-subtitle {
		font-size: 14px;
	}

	.easythankyou-summary-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.easythankyou-buttons-group {
		flex-direction: column;
		width: 100%;
	}

	.easythankyou-btn {
		width: 100%;
	}
}

