/**
 * Ticket Selector Styles
 */

.mts-ticket-selector {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px;

    --primary-color: #006837;
    --lightprimary-color: #009C53;
    --secondary-color: #E2B23C;
    --background-color: #FAF5E9;
    --text-color: #160F0F;
    --border-color: #E5D6B1;
    --hover-background-color: #F6F9EE;

    font-family: 'Lato', sans-serif;
}

/* Date Selection */
.mts-date-selection {
	margin-bottom: 40px;
	text-align: center;
	padding: 30px;
	background: var(--lightprimary-color);
	border-radius: 12px;
}

.mts-date-selection h3 {
	margin: 0 0 20px;
	font-size: 24px;
	font-weight: 600;
    color: var(--Wit, #FFF);
    font-family: 'Quicksand', sans-serif;
    font-size: 44px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 52.8px */
}

.mts-date-input {
	width: 100%;
	max-width: 400px;
	padding: 15px 20px;
	font-size: 18px;
	border: none;
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mts-date-input:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.mts-date-help {
	margin: 15px 0 0;
	font-size: 14px;
	opacity: 0.9;

    color: var(--Wit, #FFF);
}

/* Tickets Table */
.mts-tickets-table {
	margin-bottom: 40px;
	overflow-x: auto;
}

.mts-tickets-table table {
	width: 100%;
	border-collapse: collapse;
	background: #FFFFFF;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mts-tickets-table thead {
	background: var(--lightprimary-color);
	color: #FFFFFF;
}

.mts-tickets-table thead th {
	padding: 20px;
	text-align: left;
	font-weight: 600;
	font-size: 16px;
    color: var(--Wit, #FFF)!important;
}

.mts-tickets-table thead th:last-child {
	text-align: center;
}

.mts-tickets-table tbody tr {
	border-bottom: 1px solid #E5D6B1;
	transition: background-color 0.2s;
}

.mts-tickets-table tbody tr:hover {
	background-color: #F6F9EE;
}

.mts-tickets-table tbody tr:last-child {
	border-bottom: none;
}

.mts-tickets-table td {
	padding: 20px;
}

.mts-ticket-name {
	font-weight: 600;
	font-size: 16px;
	color: var(--text-color);
}

.mts-ticket-price {
	font-size: 20px;
	font-weight: 700;
	color: #006837;
}

.mts-free-price {
	color: #009C53;
	font-weight: 800;
}

.mts-ticket-quantity {
	text-align: center;
}

.mts-quantity-input {
	width: 80px;
	padding: 10px;
	font-size: 16px;
	border: 2px solid #E5D6B1;
	border-radius: 6px;
	text-align: center;
	transition: border-color 0.3s;
}

.mts-quantity-input:focus {
	outline: none;
	border-color: #006837;
}

.mts-quantity-input::-webkit-inner-spin-button,
.mts-quantity-input::-webkit-outer-spin-button {
	opacity: 1;
	height: 30px;
}

@media (max-width: 768px) {
	.mts-tickets-table table {
		font-size: 14px;
	}
	
	.mts-tickets-table td,
	.mts-tickets-table th {
		padding: 12px 8px;
	}
	
	.mts-quantity-input {
		width: 60px;
		padding: 8px;
	}
}

/* Actions Section */
.mts-ticket-actions {
	background: #FAF5E9;
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mts-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 25px;
	padding-bottom: 25px;
	border-bottom: 2px solid #E5D6B1;
}

.mts-summary-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background: #FFFFFF;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mts-summary-label {
	font-weight: 600;
	color: #35322B;
	font-size: 14px;
}

.mts-summary-value {
	font-size: 24px;
	font-weight: 700;
	color: #160F0F;
}

.mts-button-primary {
	width: 100%;
	padding: 18px 30px;
	font-size: 18px;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s;
	background: #E2B23C;
	color: #160F0F;
}

.mts-button-primary:hover:not(:disabled) {
	background: #006837;
	color: #FFFFFF;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 104, 55, 0.3);
}

.mts-button-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Messages */
.mts-messages {
	margin-top: 20px;
	padding: 15px 20px;
	border-radius: 8px;
	font-size: 14px;
}

.mts-messages.success {
	background: #EDF4E6;
	border: 2px solid #009C53;
	color: #006837;
}

.mts-messages.error {
	background: #f8d7da;
	border: 2px solid #dc3545;
	color: #721c24;
}

/* Loading State */
.mts-ticket-selector.loading {
	opacity: 0.6;
	pointer-events: none;
}

.mts-ticket-selector.loading::after {
	content: '';
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 50px;
	height: 50px;
	border: 5px solid #E5D6B1;
	border-top: 5px solid #006837;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	z-index: 1000;
}

@keyframes spin {
	0% { transform: translate(-50%, -50%) rotate(0deg); }
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}
