/**
 * WC Checkout Form Widget - Frontend Styles
 * @package WebCraverCore
 * @since 1.0.0
 */

.wc-checkout-form-container {
	max-width: 800px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Section Titles */
.wc-section-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 24px 0;
	color: #1f2937;
	line-height: 1.4;
}

/* Form Sections */
.wc-form-section {
	margin-bottom: 32px;
}

.wc-form-section:last-child {
	margin-bottom: 0;
}

/* Form Fields */
.wc-form-field {
	margin-bottom: 16px;
}

.wc-form-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
}

.wc-required {
	color: #ef4444;
}

.wc-input-field,
.wc-select-field,
.wc-textarea-field {
	width: 100%;
	border: 1px solid #e5e7eb;
	background-color: #f9fafb;
	color: #1f2937;
	font-size: 15px;
	transition: all 0.3s ease;
}

.wc-input-field:focus,
.wc-select-field:focus,
.wc-textarea-field:focus {
	outline: none;
	border-color: #8b5cf6;
	background-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.wc-input-field.wc-error,
.wc-select-field.wc-error,
.wc-textarea-field.wc-error {
	border-color: #ef4444;
	background-color: #fef2f2;
}

.wc-textarea-field {
	resize: vertical;
	min-height: 100px;
}

/* Form Rows */
.wc-form-row {
	display: flex;
	gap: 16px;
}

.wc-form-row-two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 600px) {
	.wc-form-row-two {
		grid-template-columns: 1fr;
	}
}

/* Shipping Toggle */
.wc-shipping-toggle {
	margin-bottom: 20px;
}

.wc-checkbox-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
}

.wc-checkbox {
	width: 18px;
	height: 18px;
	margin-right: 10px;
	cursor: pointer;
}

.wc-checkbox-label span {
	font-size: 15px;
	font-weight: 500;
	color: #374151;
}

.wc-shipping-address-fields {
	margin-top: 20px;
	padding: 20px;
	background-color: #f9fafb;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

/* Payment Methods */
.wc-payment-methods {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wc-payment-method {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}

.wc-payment-label {
	display: flex;
	align-items: center;
	padding: 16px;
	background-color: #f9fafb;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.2s ease;
}

.wc-payment-label:hover {
	background-color: #f3f4f6;
}

.wc-payment-radio {
	width: 18px;
	height: 18px;
	margin-right: 12px;
	cursor: pointer;
}

.wc-payment-label span {
	font-size: 15px;
	font-weight: 500;
	color: #1f2937;
}

.wc-payment-fields {
	display: none;
	padding: 20px;
	background-color: #ffffff;
	border-top: 1px solid #e5e7eb;
}

.wc-payment-fields.active {
	display: block;
}

.wc-payment-description {
	margin: 0;
	font-size: 14px;
	color: #6b7280;
	line-height: 1.6;
}

.wc-payment-card-fields {
	display: block;
}

/* Order Summary */
.wc-order-summary-section {
	background-color: #f9fafb;
	padding: 24px;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

.wc-order-summary {
	margin: 0;
}

.wc-order-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.wc-order-table tbody tr {
	border-bottom: 1px solid #e5e7eb;
}

.wc-order-table tbody tr:last-child {
	border-bottom: none;
}

.wc-order-table td {
	padding: 12px 8px;
	text-align: left;
}

.wc-item-name {
	font-size: 15px;
	color: #1f2937;
}

.wc-item-quantity {
	display: inline-block;
	margin-left: 6px;
	color: #6b7280;
	font-size: 14px;
}

.wc-item-price {
	text-align: right;
	font-weight: 600;
	color: #1f2937;
}

.wc-order-table tfoot tr {
	border-top: 1px solid #e5e7eb;
}

.wc-order-table tfoot td {
	padding: 12px 8px;
	text-align: left;
	font-size: 15px;
	color: #6b7280;
}

.wc-order-table tfoot td:last-child {
	text-align: right;
	font-weight: 600;
}

.wc-order-total td {
	color: #1f2937;
	font-size: 18px;
	font-weight: 700;
}

.wc-order-discount td {
	color: #10b981;
}

/* Submit Section */
.wc-submit-section {
	margin-top: 32px;
}

.wc-submit-button {
	width: 100%;
	display: inline-block;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	border: none;
	transition: all 0.3s ease;
}

.wc-submit-button:hover {
	opacity: 0.9;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wc-submit-button:active {
	transform: translateY(0);
}

.wc-submit-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
	.wc-checkout-form-container {
		padding: 20px;
	}

	.wc-section-title {
		font-size: 18px;
	}

	.wc-form-field label {
		font-size: 13px;
	}

	.wc-input-field,
	.wc-select-field,
	.wc-textarea-field {
		font-size: 14px;
	}

	.wc-order-summary-section {
		padding: 16px;
	}

	.wc-order-table td,
	.wc-order-table tfoot td {
		padding: 10px 6px;
		font-size: 14px;
	}

	.wc-order-total td {
		font-size: 16px;
	}

	.wc-submit-button {
		font-size: 15px;
	}
}

@media (max-width: 480px) {
	.wc-section-title {
		font-size: 16px;
		margin-bottom: 16px;
	}

	.wc-form-field {
		margin-bottom: 12px;
	}

	.wc-payment-label {
		padding: 12px;
	}

	.wc-payment-fields {
		padding: 16px;
	}

	.wc-order-summary-section {
		padding: 12px;
	}
}
