/* ===== CHECKOUT REDESIGN ===== */
:root {
	--co-primary: #fcb900;
	--co-primary-dark: #e0a800;
	--co-text: #2d2d2d;
	--co-text-muted: #6c757d;
	--co-border: #e0e0e0;
	--co-bg: #f5f5f5;
	--co-white: #fff;
	--co-radius: 10px;
	--co-shadow: 0 2px 12px rgba(0,0,0,0.08);
	--co-transition: all 0.3s ease;
}

/* ---- MODERN CART HERO ---- */
.modern-cart-hero {
	background: linear-gradient(135deg, var(--co-bg) 0%, #fff 100%);
	color: #000;
	padding: 2rem 0;
	margin-bottom: 2rem;
}

.hero-content {
	text-align: center;
}

.breadcrumbs-modern {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 14px;
	margin-bottom: 1.5rem;
}

.breadcrumb-home,
.breadcrumb-link {
	color: #000;
	text-decoration: none;
	transition: var(--co-transition);
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.breadcrumb-home:hover,
.breadcrumb-link:hover {
	color: var(--co-primary);
	text-decoration: none;
}

.breadcrumb-separator {
	color: #000;
	margin: 0 0.5rem;
}

.breadcrumb-current {
	color: var(--co-primary);
	font-weight: 500;
}

.cart-title {
	font-size: 30px;
	font-weight: 700;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.cart-title i {
	font-size: 32.64px;
}

.cart-stats {
	display: flex;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
	color: #666;
	align-items: center;
}

.cart-stats i {
	color: var(--co-primary);
}

.products-count,
.total-value {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.2);
	border-radius: var(--co-radius);
	backdrop-filter: blur(10px);
}

.checkout-page-wrap {
	padding: 30px 0 60px;
}

/* ---- SECTION CARD ---- */
.co-section {
	background: var(--co-white);
	border-radius: var(--co-radius);
	box-shadow: var(--co-shadow);
	padding: 24px 24px 18px;
	margin-bottom: 18px;
}

.co-section-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--co-text);
	margin: 0 0 18px 0;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--co-bg);
	display: flex;
	align-items: center;
	gap: 9px;
}

.co-section-num {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--co-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* ---- FORM FIELDS ---- */
.co-form-row {
	display: flex;
	gap: 14px;
	margin-bottom: 14px;
}

.co-form-row .co-field {
	flex: 1;
	margin-bottom: 0;
}

.co-field {
	margin-bottom: 14px;
}

.co-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--co-text-muted);
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.co-field .form-control {
	height: 44px;
	border-radius: 7px;
	border: 1.5px solid var(--co-border);
	font-size: 14px;
	color: var(--co-text);
	background: #fafafa;
	padding: 0 13px;
	transition: var(--co-transition);
	box-shadow: none;
	width: 100%;
}

.co-field .form-control:focus {
	border-color: var(--co-primary);
	background: var(--co-white);
	box-shadow: 0 0 0 3px rgba(252,185,0,0.13);
	outline: none;
}

.co-field .form-control.has-error,
input.has-error {
	border-color: #dc3545 !important;
	background: #fff8f8;
}

.co-field textarea.form-control {
	height: auto;
	min-height: 130px;
	padding: 11px 13px;
	resize: vertical;
}

/* Select2 inside co-field */
.co-field .select2-container .select2-selection--single {
	height: 44px !important;
	border-radius: 7px !important;
	border: 1.5px solid var(--co-border) !important;
	background: #fafafa !important;
}
.co-field .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 44px !important;
}
.co-field .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 44px !important;
	color: var(--co-text) !important;
	padding: 0 13px !important;
}
.co-field .select2-container--default.select2-container--focus .select2-selection--single {
	border-color: var(--co-primary) !important;
	box-shadow: 0 0 0 3px rgba(252,185,0,0.13) !important;
}

/* ---- INVOICE ---- */
.co-invoice-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	border-radius: 7px;
	border: 1.5px solid var(--co-border);
	background: #fafafa;
	cursor: pointer;
	transition: var(--co-transition);
	margin-bottom: 12px;
	width: fit-content;
}

.co-invoice-toggle:hover { border-color: var(--co-primary); }

.co-invoice-toggle input[type="checkbox"] {
	width: 17px;
	height: 17px;
	accent-color: var(--co-primary);
	cursor: pointer;
}

.co-invoice-toggle label {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--co-text);
	cursor: pointer;
}

.co-invoice-fields {
	background: #fffdf0;
	border: 1.5px solid #ffe58a;
	border-radius: 7px;
	padding: 16px;
	margin-bottom: 4px;
}

/* ---- SHIPPING METHODS ---- */
.co-shipping-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 18px;
}

.co-shipping-option { position: relative; }

.co-shipping-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.co-shipping-option label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 14px 10px;
	border-radius: 8px;
	border: 2px solid var(--co-border);
	background: #fafafa;
	cursor: pointer;
	transition: var(--co-transition);
	text-align: center;
	min-height: 82px;
}

.co-shipping-option label:hover {
	border-color: var(--co-primary);
	background: #fffdf0;
}

.co-shipping-option input[type="radio"]:checked + label {
	border-color: var(--co-primary);
	background: #fffcf0;
	box-shadow: 0 2px 8px rgba(252,185,0,0.2);
}

.co-ship-icon {
	font-size: 20px;
	color: var(--co-text-muted);
	transition: var(--co-transition);
}

.co-shipping-option input[type="radio"]:checked + label .co-ship-icon {
	color: var(--co-primary);
}

.co-ship-name {
	font-size: 12px;
	font-weight: 700;
	color: var(--co-text);
	line-height: 1.3;
}

.co-ship-price {
	font-size: 11px;
	color: #0066c0;
	font-weight: 500;
}

/* ---- PAYMENT METHODS ---- */
.co-payment-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.co-payment-item {
	border: 2px solid var(--co-border);
	border-radius: 8px;
	overflow: hidden;
	transition: var(--co-transition);
}

.co-payment-item.active { border-color: var(--co-primary); }

.co-payment-header {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 13px 15px;
	cursor: pointer;
	background: #fafafa;
	transition: var(--co-transition);
}

.co-payment-item.active .co-payment-header,
.co-payment-header:hover { background: #fffcf0; }

.co-payment-radio {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid var(--co-border);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: var(--co-transition);
}

.co-payment-item.active .co-payment-radio {
	border-color: var(--co-primary);
	background: var(--co-primary);
}

.co-payment-item.active .co-payment-radio::after {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
}

.co-payment-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--co-text);
	flex: 1;
}

.co-payment-icon {
	color: var(--co-text-muted);
	font-size: 17px;
}

.co-payment-body {
	display: none;
	padding: 12px 15px;
	border-top: 1px solid var(--co-border);
	font-size: 14px;
	color: var(--co-text-muted);
	background: var(--co-white);
}

.co-payment-body img {
	max-width: 160px;
	margin-bottom: 7px;
	display: block;
}

.co-payment-item.active .co-payment-body { display: block; }

/* ---- COMMENT + SUMMARY ROW ---- */
.co-bottom-row {
	display: flex;
	gap: 18px;
	margin-bottom: 18px;
	align-items: flex-start;
}

.co-comment-col {
	flex: 2;
	background: var(--co-white);
	border-radius: var(--co-radius);
	box-shadow: var(--co-shadow);
	padding: 24px 24px 18px;
}

.co-summary-col {
	flex: 1;
	background: var(--co-white);
	border-radius: var(--co-radius);
	box-shadow: var(--co-shadow);
	overflow: hidden;
}

/* ---- ORDER SUMMARY ---- */
.co-summary-header {
	background: var(--co-text);
	color: var(--co-white);
	padding: 13px 17px;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
}

.co-summary-products {
	padding: 10px 17px;
	border-bottom: 1px solid var(--co-bg);
	max-height: 220px;
	overflow-y: auto;
}

.co-summary-product {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px solid var(--co-bg);
	font-size: 13px;
}

.co-summary-product:last-child { border-bottom: none; }

.co-summary-product-name {
	flex: 1;
	color: var(--co-text);
	line-height: 1.3;
}

.co-summary-product-qty {
	color: var(--co-text-muted);
	white-space: nowrap;
	font-size: 12px;
}

.co-summary-product-price {
	font-weight: 700;
	color: var(--co-text);
	white-space: nowrap;
}

.co-summary-totals { padding: 10px 17px; }

.co-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 0;
	font-size: 13px;
	border-bottom: 1px solid var(--co-bg);
}

.co-summary-row:last-child { border-bottom: none; }

.co-summary-row.total-row {
	padding-top: 9px;
	margin-top: 3px;
	border-top: 2px solid var(--co-text);
	border-bottom: none;
}

.co-summary-row .co-sum-label { color: var(--co-text-muted); }
.co-summary-row .co-sum-value { font-weight: 600; color: var(--co-text); }

.co-summary-row.total-row .co-sum-label,
.co-summary-row.total-row .co-sum-value {
	font-size: 15px;
	font-weight: 800;
	color: var(--co-text);
}

/* ---- NEWSLETTER ---- */
.co-newsletter-box {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 12px 15px;
	border-radius: 7px;
	border: 1.5px solid #c3e6cb;
	background: #f0fff4;
	margin-bottom: 12px;
}

.co-newsletter-box input[type="checkbox"] {
	width: 17px;
	height: 17px;
	accent-color: #51cf66;
	cursor: pointer;
	margin-top: 2px;
	flex-shrink: 0;
}

.co-newsletter-box label {
	margin: 0;
	font-size: 14px;
	color: var(--co-text);
	cursor: pointer;
	line-height: 1.5;
}

.co-newsletter-box label span {
	display: block;
	font-size: 12px;
	color: var(--co-text-muted);
	margin-top: 1px;
}

/* ---- TERMS ---- */
.co-terms-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 16px;
	padding: 11px 14px;
	border-radius: 7px;
	border: 1.5px solid var(--co-border);
	background: #fafafa;
}

.co-terms-row input[type="checkbox"] {
	width: 17px;
	height: 17px;
	accent-color: var(--co-primary);
	cursor: pointer;
	margin-top: 2px;
	flex-shrink: 0;
}

.co-terms-row label {
	margin: 0;
	font-size: 14px;
	color: var(--co-text);
	cursor: pointer;
	line-height: 1.5;
}

.co-terms-row label a {
	color: var(--co-primary);
	text-decoration: underline;
}

/* ---- SUBMIT ---- */
.co-submit-area {
	background: var(--co-white);
	border-radius: var(--co-radius);
	box-shadow: var(--co-shadow);
	padding: 20px 24px;
	margin-bottom: 18px;
}

.co-btn-submit {
	background: var(--co-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 15px 36px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: var(--co-transition);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	justify-content: center;
}

.co-btn-submit:hover {
	background: var(--co-primary-dark);
	box-shadow: 0 4px 18px rgba(252,185,0,0.38);
	transform: translateY(-1px);
}

/* ---- ERRORS ---- */
.co-errors, .checkout_errors {
	background: #fff5f5;
	border: 1px solid #ffc9c9;
	border-radius: 7px;
	padding: 10px 14px;
	margin-bottom: 12px;
	font-size: 13px;
	color: #c92a2a;
}

.co-errors:empty, .checkout_errors:empty { display: none; }

.co-errors span, .checkout_errors span { display: block; padding: 1px 0; }

/* ---- MAP ---- */
.co-map-wrap {
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--co-border);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
	.co-shipping-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
	.co-section { padding: 16px 14px 12px; }
	.co-comment-col { padding: 16px 14px 12px; }
	.co-bottom-row { flex-direction: column; }
	.co-comment-col, .co-summary-col { flex: none; width: 100%; }
	.co-form-row { flex-direction: column; gap: 0; }
	.co-shipping-grid { grid-template-columns: repeat(2, 1fr); }
	.cart-title {
		font-size: 32.64px;
		flex-direction: column;
		gap: 0.5rem;
	}
	.cart-stats {
		flex-direction: column;
		gap: 1rem;
	}
}

@media (max-width: 480px) {
	.modern-cart-hero { padding: 1.5rem 0; }
	.cart-title { font-size: 29.38px; }
	.co-shipping-grid { grid-template-columns: 1fr 1fr; }
}
