/* AstroNeev Order Management Modals */

.astroneev-order-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(5px);
}

.astroneev-order-modal-content {
	background: var(--home-card-bg, #111116);
	border: 1px solid var(--home-card-border, rgba(255, 255, 255, 0.1));
	border-radius: var(--home-radius, 24px);
	padding: 40px;
	width: 90%;
	max-width: 500px;
	position: relative;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
	animation: modalSlideUp 0.3s ease-out forwards;
}

@keyframes modalSlideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.astroneev-order-modal-close {
	position: absolute;
	top: 20px;
	right: 25px;
	font-size: 28px;
	font-weight: 300;
	color: var(--home-text-secondary, #9F9FA8);
	cursor: pointer;
	transition: var(--home-transition, all 0.3s ease);
}

.astroneev-order-modal-close:hover {
	color: #fff;
}

.astroneev-order-modal h3 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 1.5rem;
	color: #fff;
	font-weight: 600;
}

.astroneev-order-modal p {
	color: var(--home-text-secondary, #9F9FA8);
	margin-bottom: 30px;
	line-height: 1.6;
}

.astroneev-form-group {
	margin-bottom: 20px;
}

.astroneev-form-group label {
	display: block;
	margin-bottom: 8px;
	color: #fff;
	font-weight: 500;
	font-size: 0.95rem;
}

.astroneev-form-group select,
.astroneev-form-group textarea,
.astroneev-form-group input[type="file"] {
	width: 100%;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	padding: 12px 16px;
	color: #fff;
	font-family: inherit;
	transition: all 0.3s ease;
	font-size: 0.95rem;
}

.astroneev-form-group select:focus,
.astroneev-form-group textarea:focus {
	outline: none;
	border-color: var(--home-gold, #F4C542);
	background: rgba(255, 255, 255, 0.08);
}

.astroneev-form-group input[type="file"] {
	padding: 10px;
	cursor: pointer;
}

.astroneev-modal-actions {
	display: flex;
	gap: 15px;
	margin-top: 30px;
}

.astroneev-modal-actions button {
	flex: 1;
	justify-content: center;
}

.astroneev-btn-secondary {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	border-radius: 50px;
	padding: 14px 28px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.astroneev-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.3);
}

.astroneev-modal-msg {
	margin-top: 15px;
	padding: 12px;
	border-radius: 8px;
	text-align: center;
	font-weight: 500;
	display: none;
	font-size: 0.95rem;
}

.astroneev-modal-msg.success {
	background: rgba(46, 213, 115, 0.1);
	color: #2ed573;
	border: 1px solid rgba(46, 213, 115, 0.2);
}

.astroneev-modal-msg.error {
	background: rgba(255, 71, 87, 0.1);
	color: #ff4757;
	border: 1px solid rgba(255, 71, 87, 0.2);
}

/* Button override for Orders Table */
.woocommerce-orders-table__row .button.cancel_order {
	background-color: transparent !important;
	color: #ff4757 !important;
	border: 1px solid #ff4757 !important;
}
.woocommerce-orders-table__row .button.cancel_order:hover {
	background-color: #ff4757 !important;
	color: #fff !important;
}

/* Action Button Spacing Fix */
a.woocommerce-button.button.cancel_order {
	margin-left: 20px !important;
}
a.woocommerce-button.button.return_request {
	margin-left: 20px !important;
}

@media (max-width: 767px) {
	.astroneev-order-modal-content {
		padding: 30px 20px;
	}
	.astroneev-modal-actions {
		flex-direction: column;
	}
	
	a.woocommerce-button.button.cancel_order {
		margin-left: 20px !important;
		margin-top: 10px !important;
		position: relative !important;
		z-index: 10 !important;
	}
	a.woocommerce-button.button.return_request {
		margin-left: 20px !important;
		margin-top: 10px !important;
		position: relative !important;
		z-index: 10 !important;
	}
}
