/**
 * Cart & Checkout Pages Styles
 * @package Gevents
 */

/* ============================================
   CART PAGE
   ============================================ */

.gevents-cart-wrapper {
	max-width: 1400px;
	margin: 40px auto;
	padding: 0 20px;
	box-sizing: border-box;
	overflow-x: hidden;
}

.cart-header {
	text-align: center;
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-bottom: 2px solid #f0f0f0;
}

.cart-title {
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 10px 0;
	color: #1a1a1a;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.cart-subtitle {
	font-size: 16px;
	color: #666;
	margin: 0;
}

.cart-content-grid {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 40px;
	align-items: start;
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
}

.cart-items-section {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cart-items-wrapper {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cart-item-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 24px;
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 24px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-item-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.cart-item-image {
	width: 120px;
	height: 120px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

.cart-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cart-item-details {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.cart-item-name {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	color: #1a1a1a;
	line-height: 1.4;
}

.cart-item-name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.cart-item-name a:hover {
	color: var(--primary-color);
}

.cart-item-event-info {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 4px;
}

.event-info-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #666;
	background: #f8f8f8;
	padding: 6px 12px;
	border-radius: 6px;
}

.cart-item-actions {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 180px 1fr auto;
	gap: 20px;
	padding-top: 20px;
	border-top: 1px solid #f0f0f0;
	align-items: center;
}

.cart-item-qty-wrapper {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.qty-label {
	font-size: 13px;
	font-weight: 600;
	color: #666;
	margin: 0;
}

.cart-item-qty-wrapper .quantity {
	display: flex;
	align-items: center;
	gap: 0;
}

.cart-item-qty-wrapper input.qty {
	width: 70px;
	padding: 10px 5px;
	text-align: center;
	border: 2px solid #e0e0e0;
	border-left: none;
	border-right: none;
	border-radius: 0;
	font-size: 16px;
	font-weight: 600;
	transition: border-color 0.3s ease;
	-moz-appearance: textfield;
}

.cart-item-qty-wrapper input.qty::-webkit-outer-spin-button,
.cart-item-qty-wrapper input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cart-item-qty-wrapper input.qty:focus {
	outline: none;
	border-color: var(--primary-color);
}

.cart-item-qty-wrapper .qty-btn {
	width: 36px;
	height: 42px;
	padding: 0;
	background: #f8f8f8;
	border: 2px solid #e0e0e0;
	color: #333;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cart-item-qty-wrapper .qty-minus {
	border-radius: 8px 0 0 8px;
}

.cart-item-qty-wrapper .qty-plus {
	border-radius: 0 8px 8px 0;
}

.cart-item-qty-wrapper .qty-btn:hover {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: #fff;
}

.cart-item-qty-wrapper .qty-btn:active {
	transform: scale(0.95);
}

.cart-item-pricing {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.item-price,
.item-subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.price-label,
.subtotal-label {
	font-size: 13px;
	color: #666;
}

.price-value {
	font-size: 15px;
	font-weight: 600;
	color: #333;
}

.subtotal-value {
	font-size: 18px;
	font-weight: 700;
	color: var(--primary-color);
}

.cart-item-remove-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: #fff;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	color: #999;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.cart-item-remove-btn:hover {
	background: #ff4444;
	border-color: #ff4444;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

.cart-actions-row {
	display: flex;
	gap: 15px;
	margin-top: 10px;
}

.btn-update-cart {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 30px;
	background: var(--primary-color);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-update-cart:hover {
	background: var(--secondary-color);
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cart-coupon-section {
	background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 100%);
	border: 2px dashed var(--primary-color);
	border-radius: 12px;
	padding: 24px;
	margin-top: 10px;
}

.coupon-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px 0;
	color: #1a1a1a;
}

.coupon-input-group {
	display: flex;
	gap: 12px;
}

.coupon-input-group input[type="text"] {
	flex: 1;
	padding: 14px 18px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.3s ease;
}

.coupon-input-group input[type="text"]:focus {
	outline: none;
	border-color: var(--primary-color);
}

.btn-apply-coupon {
	padding: 14px 30px;
	background: var(--secondary-color);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.btn-apply-coupon:hover {
	background: var(--primary-color);
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cart-sidebar {
	position: sticky;
	top: 100px;
}

.cart-totals-wrapper {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-totals h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 24px 0;
	color: #1a1a1a;
}

.cart-totals table {
	width: 100%;
	margin-bottom: 24px;
}

.cart-totals table tr {
	border-bottom: 1px solid #f0f0f0;
}

.cart-totals table tr:last-child {
	border-bottom: none;
}

.cart-totals table th,
.cart-totals table td {
	padding: 16px 0;
	font-size: 15px;
}

.cart-totals table th {
	text-align: left;
	font-weight: 600;
	color: #666;
}

.cart-totals table td {
	text-align: right;
	font-weight: 600;
	color: #1a1a1a;
}

.cart-totals .order-total {
	padding-top: 20px;
	margin-top: 20px;
	border-top: 2px solid #f0f0f0;
}

.cart-totals .order-total th,
.cart-totals .order-total td {
	font-size: 20px;
	font-weight: 700;
	color: var(--primary-color);
	padding: 0;
}

.wc-proceed-to-checkout {
	margin-top: 24px;
}

.wc-proceed-to-checkout .checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 30px;
	background: var(--primary-color);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.wc-proceed-to-checkout .checkout-button:hover {
	background: var(--secondary-color);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */

.gevents-checkout-wrapper {
	max-width: 1400px;
	margin: 40px auto;
	padding: 0 20px;
	box-sizing: border-box;
	overflow-x: hidden;
}

.checkout-header {
	text-align: center;
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-bottom: 2px solid #f0f0f0;
	max-width: 100%;
	box-sizing: border-box;
}

.checkout-title {
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 10px 0;
	color: #1a1a1a;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	max-width: 100%;
	box-sizing: border-box;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.checkout-subtitle {
	font-size: 16px;
	color: #666;
	margin: 0;
}

.checkout-content-grid {
	display: grid;
	grid-template-columns: 1fr 450px;
	gap: 40px;
	align-items: start;
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
}

.checkout-forms-section {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.checkout-billing-section,
.checkout-shipping-section,
.checkout-additional-section {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.section-header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid #f0f0f0;
}

.section-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 8px 0;
	color: #1a1a1a;
}

.section-subtitle {
	font-size: 14px;
	color: #666;
	margin: 0;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-row {
	margin: 0;
}

.form-row label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 8px;
}

.form-row label .required {
	color: #ff4444;
	margin-left: 4px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.3s ease;
	background: #fff;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row textarea {
	min-height: 100px;
	resize: vertical;
}

.col2-set {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.checkout-sidebar {
	position: sticky;
	top: 100px;
}

.checkout-order-review {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
}

.order-items-wrapper {
	margin-bottom: 30px;
	padding-bottom: 24px;
	border-bottom: 2px solid #f0f0f0;
}

.order-items-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 20px 0;
	color: #1a1a1a;
}

.order-item-card {
	display: grid;
	grid-template-columns: 60px 1fr auto;
	gap: 16px;
	padding: 16px;
	background: #f8f8f8;
	border-radius: 8px;
	margin-bottom: 12px;
	align-items: start;
	max-width: 100%;
	overflow: hidden;
}

.order-item-card:last-child {
	margin-bottom: 0;
}

.order-item-image {
	width: 60px;
	height: 60px;
	border-radius: 6px;
	overflow: hidden;
}

.order-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.order-item-details {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

.order-item-name {
	font-size: 15px;
	font-weight: 600;
	margin: 0;
	color: #1a1a1a;
	line-height: 1.4;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.order-item-name .product-quantity {
	color: #666;
	font-weight: 500;
	font-size: 14px;
}

.order-item-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.order-item-meta .event-location,
.order-item-meta .event-date,
.order-item-meta .event-time {
	font-size: 12px;
	color: #666;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.meta-info {
	font-size: 12px;
	color: #666;
}

.order-item-qty {
	font-size: 13px;
	color: #666;
	margin-top: 4px;
}

.qty-value {
	font-weight: 600;
	color: #1a1a1a;
	margin-left: 4px;
}

.order-item-price {
	font-size: 16px;
	font-weight: 700;
	color: var(--primary-color);
	white-space: nowrap;
}

.order-totals-wrapper {
	margin-bottom: 30px;
	padding-bottom: 24px;
	border-bottom: 2px solid #f0f0f0;
}

.order-totals-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px 0;
	color: #1a1a1a;
}

.order-totals-table {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.totals-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
}

.totals-row:last-child {
	border-bottom: none;
}

.totals-label {
	font-size: 14px;
	font-weight: 600;
	color: #666;
}

.totals-value {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
}

.discount-value {
	color: #22c55e;
}

.fee-row {
	background: #fff9e6;
	padding: 14px 16px !important;
	margin: 8px -16px;
	border-radius: 6px;
	border-bottom: none !important;
}

.fee-row .totals-label {
	color: #d97706;
	font-weight: 700;
}

.fee-row .totals-value {
	color: #d97706;
	font-weight: 700;
}

.coupon-row .totals-value {
	color: #22c55e;
	font-weight: 700;
}

.tax-row {
	font-size: 13px;
}

.tax-row .totals-label,
.tax-row .totals-value {
	font-size: 13px;
	color: #888;
}

.total-row {
	padding-top: 16px;
	margin-top: 8px;
	border-top: 2px solid #f0f0f0;
}

.total-row .totals-label,
.total-row .totals-value {
	font-size: 20px;
	font-weight: 700;
	color: var(--primary-color);
}

.order-payment-wrapper {
	margin-bottom: 20px;
}

.order-payment-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px 0;
	color: #1a1a1a;
}

.wc_payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wc_payment_method {
	background: #f8f8f8;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px;
	transition: all 0.3s ease;
	position: relative;
}

.wc_payment_method input[type="radio"] {
	margin-right: 10px;
}

.wc_payment_method label {
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	margin: 0;
}

.wc_payment_method.active,
.wc_payment_method:has(input:checked) {
	background: #fff;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.payment_box {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e0e0e0;
	font-size: 14px;
	color: #666;
}

/* Hide duplicate payment fields from Mercado Pago */
.wc_payment_method .payment_box input[type="text"],
.wc_payment_method .payment_box input[type="email"],
.wc_payment_method .payment_box input[type="tel"],
.wc_payment_method .payment_box select {
	display: none !important;
}

/* Show only the Mercado Pago iframe/form */
.wc_payment_method .payment_box #mp-checkout-custom,
.wc_payment_method .payment_box iframe,
.wc_payment_method .payment_box .mp-checkout-custom-container {
	display: block !important;
}

.woocommerce-checkout-payment {
	position: relative;
}

/* Ensure payment form is visible */
#payment .payment_methods {
	margin-bottom: 1rem;
}

#payment .place-order {
	margin-top: 1rem;
}

.terms-checkbox-wrapper {
	margin: 20px 0;
	padding: 16px;
	background: #f8f8f8;
	border-radius: 8px;
}

.woocommerce-terms-and-conditions-wrapper {
	font-size: 14px;
}

.woocommerce-terms-and-conditions-wrapper label {
	display: flex;
	align-items: start;
	gap: 10px;
	cursor: pointer;
}

.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
	margin-top: 3px;
}

.btn-place-order {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 18px 30px;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-place-order:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.checkout-security-badges {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	background: #f8f9ff;
	border: 1px solid #e0e5ff;
	border-radius: 12px;
	padding: 20px;
}

.security-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: #fff;
	border-radius: 8px;
}

.badge-icon {
	font-size: 24px;
	flex-shrink: 0;
}

.badge-text {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
	.cart-content-grid,
	.checkout-content-grid {
		grid-template-columns: 1fr;
	}

	.cart-sidebar,
	.checkout-sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
	.cart-title,
	.checkout-title {
		font-size: 28px;
	}

	.gevents-checkout-wrapper {
		padding: 0 15px;
		max-width: 100%;
		overflow-x: hidden;
	}

	.checkout-content-grid {
		grid-template-columns: 1fr;
		max-width: 100%;
	}

	.cart-item-card {
		grid-template-columns: 1fr;
		padding: 20px;
		max-width: 100%;
		box-sizing: border-box;
	}

	.cart-item-image {
		width: 100%;
		height: 200px;
		margin: 0 auto;
	}

	.cart-item-actions {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.cart-item-qty-wrapper {
		order: 1;
	}

	.cart-item-pricing {
		order: 2;
	}

	.cart-item-remove-btn {
		order: 3;
		width: 100%;
		justify-content: center;
	}

	.coupon-input-group {
		flex-direction: column;
	}

	.btn-apply-coupon {
		width: 100%;
	}

	.order-item-card {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.order-item-image {
		width: 100%;
		height: 150px;
	}

	.order-item-price {
		text-align: left;
		font-size: 18px;
		margin-top: 8px;
	}

	.checkout-billing-section,
	.checkout-shipping-section,
	.checkout-additional-section,
	.checkout-order-review {
		padding: 20px;
		max-width: 100%;
		box-sizing: border-box;
		overflow: hidden;
	}
}

@media (max-width: 480px) {
	.cart-header,
	.checkout-header {
		margin-bottom: 30px;
	}

	.cart-title,
	.checkout-title {
		font-size: 24px;
	}

	.cart-subtitle,
	.checkout-subtitle {
		font-size: 14px;
	}

	.cart-item-event-info {
		flex-direction: column;
		gap: 8px;
	}

	.event-info-item {
		width: 100%;
		justify-content: start;
	}
}

/* ============================================
   THANKYOU / ORDER RECEIVED PAGE
   ============================================ */

.gevents-thankyou-wrapper {
	max-width: 1400px;
	margin: 40px auto;
	padding: 0 20px;
}

.thankyou-header {
	text-align: center;
	margin-bottom: 50px;
	padding: 60px 20px;
	background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 100%);
	border-radius: 16px;
	position: relative;
	overflow: hidden;
}

.thankyou-header::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
	animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); opacity: 0.5; }
	50% { transform: scale(1.1); opacity: 0.8; }
}

.order-status-icon {
	font-size: 80px;
	margin-bottom: 20px;
	display: inline-block;
	animation: bounceIn 0.6s ease-out;
	position: relative;
	z-index: 1;
}

@keyframes bounceIn {
	0% { transform: scale(0); opacity: 0; }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); opacity: 1; }
}

.order-status-icon.pending.pix {
	animation: pulse 2s ease-in-out infinite;
}

.thankyou-title {
	font-size: 42px;
	font-weight: 700;
	margin: 0 0 15px 0;
	color: #1a1a1a;
	position: relative;
	z-index: 1;
}

.thankyou-subtitle {
	font-size: 18px;
	color: #666;
	margin: 0;
	position: relative;
	z-index: 1;
}

.thankyou-content-grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 40px;
	align-items: start;
}

.thankyou-main {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

/* PIX Payment Section */
.pix-payment-section {
	background: #fff;
	border: 2px solid #00c853;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 4px 12px rgba(0, 200, 83, 0.1);
}

.pix-payment-box {
	background: #f8fff9;
	border: 2px dashed #00c853;
	border-radius: 12px;
	padding: 30px;
	text-align: center;
	margin: 20px 0;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}

.pix-payment-box > * {
	max-width: 100%;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.pix-payment-box img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

.pix-payment-box iframe {
	max-width: 100%;
	width: 100%;
	border: none;
}

.pix-instructions {
	background: #fff9e6;
	border-left: 4px solid #ffb800;
	padding: 20px;
	border-radius: 8px;
	margin-top: 20px;
}

.pix-instructions h3 {
	margin: 0 0 15px 0;
	font-size: 18px;
	color: #1a1a1a;
}

.pix-instructions ol {
	margin: 0;
	padding-left: 25px;
}

.pix-instructions li {
	margin-bottom: 8px;
	color: #666;
	line-height: 1.6;
}

.pix-status-refresh {
	background: #e3f2fd;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	margin-top: 20px;
}

.pix-status-refresh p {
	margin: 0 0 15px 0;
	color: #1976d2;
	font-weight: 600;
}

.btn-refresh-status {
	background: #1976d2;
	color: #fff;
	border: none;
	padding: 14px 30px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-refresh-status:hover {
	background: #1565c0;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

/* Tickets Section */
.tickets-section {
	background: #fff;
	border: 2px solid var(--primary-color);
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tickets-download-badge {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px;
	background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
	border: 2px solid #4caf50;
	border-radius: 12px;
	margin: 20px 0;
}

.tickets-download-badge .badge-icon {
	font-size: 48px;
	flex-shrink: 0;
}

.tickets-download-badge .badge-content {
	flex: 1;
}

.tickets-download-badge .badge-content strong {
	display: block;
	font-size: 18px;
	color: #1b5e20;
	margin-bottom: 5px;
}

.tickets-download-badge .badge-content p {
	margin: 0;
	font-size: 14px;
	color: #2e7d32;
	line-height: 1.5;
}

.tickets-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin: 20px 0;
}

.btn-download-tickets,
.btn-view-tickets {
	flex: 1;
	min-width: 200px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 30px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

.btn-download-tickets {
	background: var(--primary-color);
	color: #fff;
	border: none;
}

.btn-download-tickets:hover {
	background: var(--secondary-color);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-view-tickets {
	background: #fff;
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
}

.btn-view-tickets:hover {
	background: var(--primary-color);
	color: #fff;
	transform: translateY(-2px);
}

.tickets-info {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: 25px;
}

.info-box {
	display: flex;
	gap: 15px;
	padding: 20px;
	background: #f8f8f8;
	border-radius: 8px;
	align-items: start;
}

.info-icon {
	font-size: 32px;
	flex-shrink: 0;
}

.info-content strong {
	display: block;
	font-size: 16px;
	margin-bottom: 5px;
	color: #1a1a1a;
}

.info-content p {
	margin: 0;
	font-size: 14px;
	color: #666;
	line-height: 1.5;
}

/* Order Summary Section */
.order-summary-section,
.order-items-section {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.order-summary-box {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
	border-bottom: none;
	padding-top: 20px;
	margin-top: 10px;
	border-top: 2px solid #f0f0f0;
}

.summary-label {
	font-size: 15px;
	color: #666;
	font-weight: 600;
}

.summary-value {
	font-size: 15px;
	color: #1a1a1a;
	font-weight: 600;
	text-align: right;
}

.summary-value.total-amount {
	font-size: 22px;
	color: var(--primary-color);
	font-weight: 700;
}

.status-badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.status-badge.status-completed,
.status-badge.status-processing {
	background: #e8f5e9;
	color: #2e7d32;
}

.status-badge.status-pending,
.status-badge.status-on-hold {
	background: #fff9e6;
	color: #f57c00;
}

.status-badge.status-failed,
.status-badge.status-cancelled {
	background: #ffebee;
	color: #c62828;
}

/* Order Items List */
.order-items-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: 20px;
}

.order-items-list .order-item-card {
	display: grid;
	grid-template-columns: 80px 1fr auto;
	gap: 20px;
	padding: 20px;
	background: #f8f8f8;
	border-radius: 8px;
	align-items: center;
}

.order-items-list .order-item-image {
	width: 80px;
	height: 80px;
}

.order-items-list .order-item-name {
	font-size: 16px;
}

.order-items-list .item-qty {
	color: #666;
	font-weight: 500;
	font-size: 14px;
	margin-left: 8px;
}

.order-items-list .order-item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.order-items-list .meta-item {
	font-size: 13px;
	color: #666;
	background: #fff;
	padding: 5px 10px;
	border-radius: 4px;
}

.order-items-list .order-item-total {
	font-size: 18px;
	font-weight: 700;
	color: var(--primary-color);
	text-align: right;
}

/* Sidebar */
.thankyou-sidebar {
	position: sticky;
	top: 100px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.quick-actions-box,
.help-box {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-actions-box h3,
.help-box h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 20px 0;
	color: #1a1a1a;
}

.actions-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.action-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	background: #f8f8f8;
	border-radius: 8px;
	text-decoration: none;
	color: #1a1a1a;
	font-weight: 600;
	font-size: 15px;
	transition: all 0.3s ease;
}

.action-link:hover {
	background: var(--primary-color);
	color: #fff;
	transform: translateX(5px);
}

.help-box p {
	margin: 0 0 20px 0;
	color: #666;
	line-height: 1.6;
}

.btn-help {
	display: block;
	width: 100%;
	padding: 14px;
	text-align: center;
	background: #fff;
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

.btn-help:hover {
	background: var(--primary-color);
	color: #fff;
}

.thankyou-not-found {
	text-align: center;
	padding: 40px 20px;
}

/* Thankyou Page Responsive */
@media (max-width: 1024px) {
	.thankyou-content-grid {
		grid-template-columns: 1fr;
	}

	.thankyou-sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
	.gevents-thankyou-wrapper {
		padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
	}

	.thankyou-header {
		padding: 40px 15px;
		margin-bottom: 30px;
        word-wrap: break-word;
	}

	.thankyou-title {
		font-size: 28px;
        word-wrap: break-word;
	}

	.thankyou-subtitle {
		font-size: 16px;
        word-wrap: break-word;
	}

	.order-status-icon {
		font-size: 60px;
	}

	.pix-payment-section,
	.tickets-section,
	.order-summary-section,
	.order-items-section {
		padding: 20px;
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
	}

	.pix-payment-box {
		padding: 20px;
		min-height: 250px;
        width: 100%;
        box-sizing: border-box;
	}

	.tickets-download-badge {
		flex-direction: column;
		text-align: center;
		gap: 15px;
	}

	.tickets-actions {
		flex-direction: column;
	}

	.btn-download-tickets,
	.btn-view-tickets {
		width: 100%;
		min-width: auto;
	}

	.order-items-list .order-item-card {
		grid-template-columns: 1fr;
		gap: 15px;
		padding: 15px;
		max-width: 100%;
		overflow: hidden;
	}

	.order-items-list .order-item-image {
		width: 100%;
		height: 180px;
		margin: 0 auto;
		max-width: 100%;
	}

	.order-items-list .order-item-details {
		max-width: 100%;
		overflow: hidden;
	}

	.order-items-list .order-item-total {
		text-align: left;
		font-size: 20px;
		word-wrap: break-word;
	}

	.summary-row {
		flex-wrap: wrap;
		gap: 8px;
	}

	.summary-value {
		word-break: break-word;
	}
}

@media (max-width: 480px) {
	.thankyou-title {
		font-size: 24px;
	}

	.thankyou-subtitle {
		font-size: 14px;
	}

	.order-status-icon {
		font-size: 50px;
	}

	.pix-payment-box {
		padding: 15px;
		min-height: 200px;
	}

	.section-title {
		font-size: 18px;
	}

	.section-subtitle {
		font-size: 13px;
	}
}
