/* ===== EXPRESS CHECKOUT STYLES ===== */

.checkout-container {
	background-color: var(--twoz-cream);
	min-height: 100vh;
	padding: 2rem 0;
}

/* Progress Bar */
.checkout-progress {
	margin-bottom: 2rem;
	background: white;
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-steps {
	display: flex;
	justify-content: space-between;
	margin-bottom: 1rem;
	position: relative;
}

.progress {
	height: 4px;
	background-color: #e9ecef;
	border-radius: 2px;
	overflow: hidden;
}

.progress-bar {
	height: 100%;
	background-color: var(--twoz-gold-deep);
	transition: width 0.3s ease;
	border-radius: 2px;
}

/* Checkout Sections */
.checkout-main {
	background: white;
	border-radius: 8px;
	box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.checkout-section {
	padding: 2rem;
	border-bottom: 1px solid #e9ecef;
}

.checkout-section:last-of-type {
	border-bottom: none;
}

.section-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #333;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Login Options */
.login-options {
	max-width: 400px;
}

.logged-user .notification {
	border-left: 4px solid var(--twoz-success);
}

/* Order Summary */
.order-summary-sticky {
	position: sticky;
	top: 2rem;
}

.order-items {
	max-height: 300px;
	overflow-y: auto;
}

.order-item {
	padding: 1rem 0;
	border-bottom: 1px solid #f1f3f4;
	margin-right: 5px;
}

.order-item:last-child {
	border-bottom: none;
}

.order-item .image img {
	border-radius: 4px;
	object-fit: cover;
}

.total-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
}

.total-line:last-child {
	margin-bottom: 0;
}

/* Security Badges */
.security-badges {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e9ecef;
}

.badges-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.badge-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
}

.badge-item .icon {
	font-size: 1.25rem;
}

/* Checkout Actions */
.checkout-actions {
	padding: 2rem;
	background-color: #f8f9fa;
	border-top: 1px solid #e9ecef;
}

.checkout-actions .button {
	height: 56px;
	font-size: 1.1rem;
	font-weight: 600;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.checkout-actions .button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(154, 116, 52, 0.3);
}

/* Discount Section */
.discount-section {
	background-color: var(--twoz-cream-2);
	padding: 1rem;
	border-radius: 8px;
	margin: 1rem 0;
}

/* Animations */
@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.checkout-section {
	animation: slideIn 0.3s ease-out;
}

/* Loading States */
.is-loading {
	position: relative;
	pointer-events: none;
}

.is-loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	border: 2px solid var(--twoz-cream-2);
	border-top: 2px solid var(--twoz-gold-deep);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	transform: translate(-50%, -50%);
}

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

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

/* Error States */
.has-error {
	border-color: var(--twoz-danger) !important;
}

.error-message {
	color: var(--twoz-danger);
	font-size: 0.875rem;
	margin-top: 0.25rem;
}

/* Success States */
.has-success {
	border-color: var(--twoz-success) !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
	.checkout-container {
		padding: 1rem 0;
	}

	.checkout-section {
		padding: 1.5rem 1rem;
	}

	.order-summary-sticky {
		position: static;
		margin-top: 2rem;
	}

	.progress-steps {
		flex-direction: column;
		gap: 1rem;
	}

	.step {
		flex-direction: row;
		justify-content: flex-start;
		text-align: left;
	}

	.step-number {
		margin-bottom: 0;
		margin-right: 1rem;
	}

	.badges-grid {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.badge-item {
		flex-direction: row;
		justify-content: flex-start;
		text-align: left;
	}
}

@media (max-width: 480px) {
	.checkout-section {
		padding: 1rem 0.75rem;
	}

	.section-title {
		font-size: 1.1rem;
	}

	.checkout-actions .button {
		height: 48px;
		font-size: 1rem;
	}
}

/* Custom Bulma Overrides */
.card-header-title {
	font-weight: 600;
}

.tag.is-primary {
	background-color: var(--twoz-gold-deep);
}