/*
 * cart.css
 * Purpose: cart + checkout styling ONLY.
 * Rule: do NOT touch global site colors/typography. Everything is scoped.
 */

/* -----------------------------
   Shared tokens (scoped)
------------------------------ */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-checkout .peptide-checkout-wrapper,
.woocommerce-cart .peptide-cart-wrapper {
	--peptide-blue: #1a73e8;
	--peptide-healthcare-blue: #0066CC;
	--peptide-orange: #f05a28;
	--peptide-border: #e7e7e7;
	--peptide-muted: #6b7280;
	--peptide-radius: 14px;
}

/* -----------------------------
   Checkout: 2-column layout
------------------------------ */
.woocommerce-checkout .peptide-checkout-wrapper {
	width: min(1200px, calc(100% - 48px));
	margin: 32px auto;
}

.woocommerce-checkout .peptide-checkout-grid {
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 28px;
	align-items: start;
}

/* Ensure proper grid placement */
.woocommerce-checkout .peptide-checkout-main {
	grid-column: 1;
	order: 1;
}

.woocommerce-checkout .peptide-checkout-sidebar {
	grid-column: 2;
	order: 2;
}

/* If order review appears at root level of wrapper, hide it (should be in sidebar) */
.woocommerce-checkout .peptide-checkout-wrapper > #order_review {
	display: none !important;
}

/* Customer details should be in left column */
.woocommerce-checkout .peptide-checkout-wrapper > #customer_details {
	grid-column: 1;
	order: 1;
}

/* Ensure checkout form doesn't break grid layout - let grid handle children */
.woocommerce-checkout .peptide-checkout-wrapper form.checkout {
	display: contents;
}

@media (max-width: 980px) {
	.woocommerce-checkout .peptide-checkout-wrapper {
		width: calc(100% - 32px);
		margin: 20px auto;
	}

	.woocommerce-checkout .peptide-checkout-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

/* Checkout Sections (Information, Shipping, Payment) */
.peptide-checkout-section {
	background: #fff;
	border: 1px solid var(--peptide-border);
	border-radius: var(--peptide-radius);
	padding: 22px;
	margin-bottom: 24px;
}

.peptide-checkout-section:last-child {
	margin-bottom: 0;
}

.peptide-checkout-section-content {
	margin-top: 20px;
}

/* Login/Guest section - now uses .peptide-checkout-section base styles */
.peptide-checkout-login-guest {
	margin-bottom: 0;
}

.peptide-checkout-step-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.peptide-checkout-step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: var(--peptide-healthcare-blue);
	color: #fff;
	border-radius: 50%;
	font-weight: 700;
	font-size: 16px;
	flex-shrink: 0;
}

.peptide-checkout-step-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0;
	color: #111;
}

.peptide-checkout-account-prompt {
	margin-bottom: 16px;
	color: var(--peptide-muted);
	font-size: 14px;
	padding: 12px;
	background: #f9fafb;
	border-radius: 8px;
}

.peptide-checkout-login-form .form-row {
	margin-bottom: 16px;
}

.peptide-checkout-login-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: #111;
	font-size: 14px;
}

.peptide-checkout-login-form input[type="email"],
.peptide-checkout-login-form input[type="password"] {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--peptide-border);
	border-radius: 8px;
	font-size: 14px;
	background: #f9fafb;
}

.peptide-checkout-login-form input[readonly] {
	background: #f3f4f6;
	cursor: not-allowed;
}

.peptide-checkout-login-actions {
	display: flex;
	gap: 12px;
	margin-top: 20px;
}

.peptide-checkout-login-actions .peptide-btn {
	flex: 1;
}

/* Login button should be healthcare blue */
.peptide-checkout-login-actions .peptide-btn-primary {
	background: var(--peptide-healthcare-blue);
	color: #fff;
}

.peptide-checkout-login-actions .peptide-btn-primary:hover {
	background: #0052a3;
}

.peptide-forgot-password {
	margin-top: 12px;
	text-align: center;
}

.peptide-forgot-password a {
	color: var(--peptide-muted);
	font-size: 13px;
	text-decoration: none;
}

.peptide-forgot-password a:hover {
	color: var(--peptide-healthcare-blue);
	text-decoration: underline;
}

.peptide-checkout-guest-option {
	color: var(--peptide-muted);
	font-size: 14px;
	text-align: center;
	padding: 20px 0;
}

.woocommerce-checkout .peptide-checkout-main {
	background: #fff;
	border: 1px solid var(--peptide-border);
	border-radius: var(--peptide-radius);
	padding: 22px;
}

/* Ensure checkout form fields stay in left column */
.woocommerce-checkout .peptide-checkout-main .woocommerce-billing-fields,
.woocommerce-checkout .peptide-checkout-main .woocommerce-shipping-fields,
.woocommerce-checkout .peptide-checkout-main .woocommerce-additional-fields,
.woocommerce-checkout .peptide-checkout-main #customer_details,
.woocommerce-checkout .peptide-checkout-main .woocommerce-checkout-payment {
	width: 100%;
}

/* Hide order review if it appears outside our grid structure */
.woocommerce-checkout .peptide-checkout-wrapper > #order_review:not(.peptide-checkout-sidebar #order_review) {
	display: none !important;
}

/* Show order review only when inside sidebar */
.woocommerce-checkout .peptide-checkout-sidebar #order_review {
	display: block !important;
}

/* Place order button - healthcare blue */
.woocommerce-checkout #place_order,
.woocommerce-checkout .peptide-checkout-main #place_order {
	background: var(--peptide-healthcare-blue) !important;
	color: #fff !important;
	border: none !important;
}

.woocommerce-checkout #place_order:hover,
.woocommerce-checkout .peptide-checkout-main #place_order:hover {
	background: #0052a3 !important;
}

/* Ensure customer details section is in left column */
.woocommerce-checkout .peptide-checkout-wrapper #customer_details {
	grid-column: 1;
	order: 1;
}

/* Ensure checkout form doesn't break grid - use contents so children participate in grid */
.woocommerce-checkout .peptide-checkout-wrapper form.checkout {
	display: contents;
}

.woocommerce-checkout #order_review_heading {
	display: none;
}

/* Sidebar card */
.woocommerce-checkout .peptide-checkout-summary-card {
	background: #fff;
	border: 1px solid var(--peptide-border);
	border-radius: var(--peptide-radius);
	padding: 18px;
}

.woocommerce-checkout .peptide-checkout-sidebar {
	position: sticky;
	top: 24px;
}

@media (max-width: 980px) {
	.woocommerce-checkout .peptide-checkout-sidebar {
		position: static;
		top: auto;
	}
}

/* -----------------------------
   Checkout: order review table
------------------------------ */
.peptide-checkout-summary-card .woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.peptide-checkout-summary-card .woocommerce-checkout-review-order-table thead {
	display: none; /* removes Product/Subtotal labels */
}

/* Each cart item row: flex layout with thumb, name/qty, and price */
.peptide-checkout-summary-card .woocommerce-checkout-review-order-table tbody {
	display: block;
}

.peptide-checkout-summary-card .woocommerce-checkout-review-order-table tbody tr {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid #eee;
}

.peptide-checkout-summary-card .woocommerce-checkout-review-order-table tbody tr:last-child {
	border-bottom: 0;
}

/* Product name cell: contains thumb + name + qty stepper */
.peptide-checkout-summary-card .woocommerce-checkout-review-order-table td.product-name {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: flex-start;
}

/* Ensure thumbnail appears first via flex order */
.peptide-checkout-summary-card .peptide-co-thumb {
	order: -1;
}

/* Quantity stepper goes to new row */
.peptide-checkout-summary-card .peptide-co-qty-stepper {
	order: 10;
	margin-left: 76px; /* thumb width + gap */
}

/* Price on the right */
.peptide-checkout-summary-card .woocommerce-checkout-review-order-table td.product-total {
	flex: 0 0 auto;
	font-weight: 700;
	font-size: 16px;
	text-align: right;
	color: var(--peptide-healthcare-blue);
}

/* Thumbnail with quantity badge overlay */
.peptide-checkout-summary-card .peptide-co-thumb {
	position: relative;
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border: 1px solid var(--peptide-border);
	border-radius: 10px;
	background: #fafafa;
	overflow: visible;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.peptide-checkout-summary-card .peptide-co-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	display: block;
	border-radius: 8px;
}

/* Quantity badge on thumbnail - healthcare blue */
.peptide-checkout-summary-card .peptide-co-qty-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 20px;
	height: 20px;
	background: var(--peptide-healthcare-blue) !important;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* Product name styling */
.peptide-checkout-summary-card .peptide-co-product-name {
	flex: 1;
	font-weight: 600;
	font-size: 14px;
	color: #111;
	line-height: 1.4;
}

.peptide-checkout-summary-card .peptide-co-product-name a {
	color: inherit;
	text-decoration: none;
}

.peptide-checkout-summary-card .peptide-co-product-name a:hover {
	color: var(--peptide-healthcare-blue);
}

/* Quantity stepper in checkout sidebar */
.peptide-checkout-summary-card .peptide-co-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--peptide-border);
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.peptide-checkout-summary-card .peptide-co-qty-stepper button {
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	font-size: 16px;
	color: #666;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.peptide-checkout-summary-card .peptide-co-qty-stepper button:hover {
	background: #f3f4f6;
}

.peptide-checkout-summary-card .peptide-co-qty-stepper .peptide-co-qty-value {
	width: 36px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	border-left: 1px solid var(--peptide-border);
	border-right: 1px solid var(--peptide-border);
	line-height: 32px;
}

/* Hide the default strong.product-quantity when using new layout */
.peptide-checkout-summary-card strong.product-quantity {
	display: none;
}

/* Totals section */
.peptide-checkout-summary-card .woocommerce-checkout-review-order-table tfoot {
	display: block;
	border-top: 1px solid #eee;
	margin-top: 8px;
	padding-top: 8px;
}

.peptide-checkout-summary-card .woocommerce-checkout-review-order-table tfoot tr {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
}

.peptide-checkout-summary-card .woocommerce-checkout-review-order-table tfoot th,
.peptide-checkout-summary-card .woocommerce-checkout-review-order-table tfoot td {
	padding: 0;
	border: 0;
	font-size: 14px;
}

.peptide-checkout-summary-card .woocommerce-checkout-review-order-table tfoot th {
	font-weight: 500;
	color: #374151;
}

.peptide-checkout-summary-card .woocommerce-checkout-review-order-table tfoot td {
	font-weight: 500;
	color: var(--peptide-healthcare-blue) !important;
	text-align: right;
}

.peptide-checkout-summary-card .woocommerce-checkout-review-order-table tfoot tr.order-total {
	border-top: 1px solid #eee;
	margin-top: 8px;
	padding-top: 14px;
}

.peptide-checkout-summary-card .woocommerce-checkout-review-order-table tfoot tr.order-total th,
.peptide-checkout-summary-card .woocommerce-checkout-review-order-table tfoot tr.order-total td {
	font-size: 18px;
	font-weight: 800;
	color: var(--peptide-healthcare-blue) !important;
}

/* Ensure all price amounts in checkout are healthcare blue */
.peptide-checkout-summary-card .woocommerce-Price-amount,
.peptide-checkout-summary-card .amount,
.peptide-checkout-summary-card .woocommerce-Price-amount.amount {
	color: var(--peptide-healthcare-blue) !important;
}

/* Login/rewards prompt above coupon */
.peptide-checkout-summary-card .peptide-checkout-rewards-prompt {
	margin: 16px 0;
	padding: 14px;
	background: #f9fafb;
	border-radius: 8px;
	font-size: 13px;
	color: #374151;
	text-align: center;
}

.peptide-checkout-summary-card .peptide-checkout-rewards-prompt a {
	color: var(--peptide-healthcare-blue);
	font-weight: 600;
	text-decoration: none;
}

.peptide-checkout-summary-card .peptide-checkout-rewards-prompt a:hover {
	text-decoration: underline;
	color: #0052a3;
}

.peptide-checkout-summary-card .peptide-checkout-rewards-prompt .reward-amount {
	color: var(--peptide-healthcare-blue);
	font-weight: 700;
}

/* Contact help section */
.peptide-checkout-contact-help {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.peptide-checkout-contact-help p {
	margin: 0;
	font-size: 14px;
	color: #374151;
	text-align: center;
}

.peptide-checkout-contact-help a {
	color: var(--peptide-healthcare-blue);
	font-weight: 600;
	text-decoration: none;
}

.peptide-checkout-contact-help a:hover {
	text-decoration: underline;
	color: #0052a3;
}

/* -----------------------------
   Checkout: coupon block (sidebar)
------------------------------ */
.peptide-checkout-summary-card .peptide-checkout-coupon {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

.peptide-checkout-summary-card .peptide-checkout-coupon-title {
	margin: 0 0 12px 0;
	font-size: 18px;
	font-weight: 800;
	color: #111;
}

/* Hide Woo toggle info; always show the form here */
.peptide-checkout-summary-card .woocommerce-form-coupon-toggle {
	display: none;
}

.peptide-checkout-summary-card form.woocommerce-form-coupon {
	display: flex !important;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
}

.peptide-checkout-summary-card form.woocommerce-form-coupon p {
	margin: 0;
	width: 100%;
}

.peptide-checkout-summary-card form.woocommerce-form-coupon p:first-child {
	display: none; /* Hide the info text */
}

.peptide-checkout-summary-card form.woocommerce-form-coupon .form-row-first {
	flex: 1;
	margin: 0;
	padding: 0;
}

.peptide-checkout-summary-card form.woocommerce-form-coupon .form-row-last {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}

.peptide-checkout-summary-card form.woocommerce-form-coupon input.input-text {
	width: 100%;
	height: 44px;
	border: 1px solid var(--peptide-border);
	border-radius: 8px;
	padding: 0 14px;
	outline: none;
	font-size: 14px;
	background: #fff;
}

.peptide-checkout-summary-card form.woocommerce-form-coupon input.input-text::placeholder {
	color: #9ca3af;
}

.peptide-checkout-summary-card form.woocommerce-form-coupon input.input-text:focus {
	border-color: var(--peptide-healthcare-blue);
}

.peptide-checkout-summary-card form.woocommerce-form-coupon button,
.peptide-checkout-summary-card form.woocommerce-form-coupon button.button,
.peptide-checkout-summary-card form.woocommerce-form-coupon input[type="submit"] {
	height: 44px !important;
	padding: 0 20px !important;
	border-radius: 8px !important;
	border: none !important;
	background: var(--peptide-healthcare-blue) !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.peptide-checkout-summary-card form.woocommerce-form-coupon button:hover,
.peptide-checkout-summary-card form.woocommerce-form-coupon button.button:hover,
.peptide-checkout-summary-card form.woocommerce-form-coupon input[type="submit"]:hover {
	background: #0052a3 !important;
	color: #fff !important;
}


/* -----------------------------
   Checkout: keep legal links from inheriting orange
------------------------------ */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a,
.woocommerce-checkout .woocommerce-privacy-policy-text a {
	color: var(--peptide-healthcare-blue);
	text-decoration: none;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a:hover,
.woocommerce-checkout .woocommerce-privacy-policy-text a:hover {
	text-decoration: underline;
}

/* Terms and conditions link should open terms page */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a[href*="terms"] {
	cursor: pointer;
}

/* -----------------------------
   Cart: 2-column layout
------------------------------ */
.woocommerce-cart .peptide-cart-wrapper {
	width: min(1200px, calc(100% - 48px));
	margin: 28px auto;
}

.peptide-cart-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.peptide-cart-title {
	font-size: 28px;
	font-weight: 700;
	margin: 0;
}

.peptide-cart-count-label {
	font-weight: 400;
	color: var(--peptide-muted);
}

.peptide-cart-top-actions {
	display: flex;
	gap: 12px;
}

.peptide-cart-grid {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 28px;
	align-items: start;
}

@media (max-width: 980px) {
	.woocommerce-cart .peptide-cart-wrapper {
		width: calc(100% - 32px);
		margin: 18px auto;
	}

	.peptide-cart-topbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.peptide-cart-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

/* Cart items */
.peptide-cart-left {
	background: #fff;
	border: 1px solid var(--peptide-border);
	border-radius: var(--peptide-radius);
	padding: 22px;
}

.peptide-cart-row {
	display: flex;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid #eee;
}

.peptide-cart-row:last-child {
	border-bottom: 0;
}

.peptide-cart-thumb {
	flex: 0 0 auto;
	width: 100px;
	height: 100px;
	border: 1px solid var(--peptide-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fafafa;
}

.peptide-cart-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.peptide-cart-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.peptide-cart-name {
	font-size: 16px;
	font-weight: 600;
	color: #111;
}

.peptide-cart-name a {
	color: inherit;
	text-decoration: none;
}

.peptide-cart-name a:hover {
	color: var(--peptide-healthcare-blue);
}

.peptide-cart-ship-note {
	font-size: 13px;
	color: var(--peptide-muted);
}

.peptide-cart-controls {
	display: flex;
	gap: 24px;
	align-items: center;
	margin-top: 8px;
}

.peptide-cart-qty {
	display: flex;
	align-items: center;
	gap: 8px;
}

.peptide-cart-qty .label {
	font-size: 13px;
	color: var(--peptide-muted);
}

.peptide-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--peptide-border);
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.peptide-qty-stepper button {
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	font-size: 16px;
	color: #666;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.peptide-qty-stepper button:hover {
	background: #f3f4f6;
}

.peptide-qty-stepper input {
	width: 50px;
	text-align: center;
	border: none;
	border-left: 1px solid var(--peptide-border);
	border-right: 1px solid var(--peptide-border);
	font-size: 14px;
	font-weight: 600;
	padding: 0;
	height: 32px;
}

.peptide-cart-subtotal {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.peptide-cart-subtotal .label {
	font-size: 12px;
	color: var(--peptide-muted);
}

.peptide-cart-subtotal .value {
	font-size: 14px;
	font-weight: 600;
	color: #111;
}

.peptide-cart-price {
	flex: 0 0 auto;
	font-size: 18px;
	font-weight: 700;
	color: var(--peptide-healthcare-blue);
	text-align: right;
}

.peptide-cart-remove {
	flex: 0 0 auto;
}

.peptide-cart-remove a {
	color: #999;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	transition: all 0.15s ease;
}

.peptide-cart-remove a:hover {
	background: #fee2e2;
	color: #dc2626;
}

.peptide-cart-actions {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

/* Order summary sidebar */
.peptide-cart-right {
	position: sticky;
	top: 24px;
}

.peptide-order-summary-card {
	background: #fff;
	border: 1px solid var(--peptide-border);
	border-radius: var(--peptide-radius);
	padding: 22px;
}

.peptide-order-summary-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 20px 0;
}

/* Free shipping indicator */
.peptide-free-ship {
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #eee;
}

.peptide-free-ship-top {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 10px;
}

.peptide-free-ship-icon {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	color: var(--peptide-healthcare-blue);
}

.peptide-free-ship-text {
	flex: 1;
}

.peptide-free-ship-text .title {
	font-size: 13px;
	font-weight: 700;
	color: #111;
	margin-bottom: 4px;
}

.peptide-free-ship-text .sub {
	font-size: 12px;
	color: var(--peptide-muted);
}

.peptide-free-ship-bar {
	height: 6px;
	background: #e5e7eb;
	border-radius: 3px;
	overflow: hidden;
	margin-top: 8px;
}

.peptide-free-ship-bar span {
	display: block;
	height: 100%;
	background: var(--peptide-healthcare-blue);
	transition: width 0.3s ease;
}

/* Totals */
.peptide-summary-totals {
	margin-bottom: 20px;
}

.peptide-summary-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	font-size: 14px;
}

.peptide-summary-row-subtotal .label,
.peptide-summary-row-subtotal .value {
	font-weight: 500;
	color: #374151;
}

.peptide-summary-divider {
	height: 1px;
	background: #eee;
	margin: 8px 0;
}

.peptide-summary-row-total {
	border-top: 1px solid #eee;
	padding-top: 12px;
	margin-top: 8px;
}

.peptide-summary-row-total .label,
.peptide-summary-row-total .value {
	font-size: 18px;
	font-weight: 800;
	color: #111;
}

/* Action buttons */
.peptide-summary-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.peptide-summary-actions .button,
.peptide-summary-actions .wc-block-components-button {
	width: 100%;
	height: 48px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 16px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: all 0.15s ease;
}

.peptide-summary-actions .checkout-button,
.peptide-summary-actions .button.checkout {
	background: var(--peptide-healthcare-blue);
	color: #fff;
	border: none;
}

.peptide-summary-actions .checkout-button:hover,
.peptide-summary-actions .button.checkout:hover {
	background: #0052a3;
}

/* Buttons */
.peptide-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.15s ease;
	cursor: pointer;
	border: none;
}

.peptide-btn-outline {
	background: #fff;
	color: #374151;
	border: 1px solid var(--peptide-border);
}

.peptide-btn-outline:hover {
	background: #f9fafb;
}

.peptide-btn-primary {
	background: var(--peptide-healthcare-blue);
	color: #fff;
}

.peptide-btn-primary:hover {
	background: #0052a3;
}

.peptide-btn-light {
	background: #f3f4f6;
	color: #374151;
}

.peptide-btn-light:hover {
	background: #e5e7eb;
}

/* -----------------------------
   Cart Notification Popup
------------------------------ */
.cart-notification-popup {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #fff;
	border: 2px solid var(--peptide-healthcare-blue);
	border-radius: var(--peptide-radius);
	box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
	z-index: 9999;
	min-width: 320px;
	max-width: 400px;
	opacity: 0;
	transform: translateY(-20px);
	transition: all 0.3s ease;
}

.cart-notification-popup[style*="display: block"] {
	opacity: 1;
	transform: translateY(0);
}
/* Ensure cart notification popup is visible on cart page - ULTRA SPECIFIC */
body.woocommerce-cart #cart-notification-popup,
html body.woocommerce-cart #cart-notification-popup,
.woocommerce-cart #cart-notification-popup {
	z-index: 99999 !important;
	position: fixed !important;
	top: 20px !important;
	right: 20px !important;
}
/* When popup is shown (display: block in inline style), ensure it's fully visible */
body.woocommerce-cart #cart-notification-popup[style*="display: block"],
html body.woocommerce-cart #cart-notification-popup[style*="display: block"],
body.woocommerce-cart #cart-notification-popup[style*="display:block"],
html body.woocommerce-cart #cart-notification-popup[style*="display:block"],
.woocommerce-cart #cart-notification-popup[style*="display: block"],
.woocommerce-cart #cart-notification-popup[style*="display:block"] {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	transform: translateY(0) !important;
	pointer-events: auto !important;
}
/* Ensure icon-cart has position relative on cart page for badge positioning */
body.woocommerce-cart .icon-cart,
html body.woocommerce-cart .icon-cart,
.woocommerce-cart .icon-cart,
body.woocommerce-cart .header-cart-link .icon-cart,
html body.woocommerce-cart .header-cart-link .icon-cart,
.woocommerce-cart .header-cart-link .icon-cart {
	position: relative !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}
/* Ensure cart notification badge is visible on cart page - ULTRA AGGRESSIVE */
body.woocommerce-cart .header-cart-container .cart-notification-badge,
html body.woocommerce-cart .header-cart-container .cart-notification-badge,
.woocommerce-cart .header-cart-container .cart-notification-badge,
body.woocommerce-cart .icon-cart .cart-notification-badge,
html body.woocommerce-cart .icon-cart .cart-notification-badge,
.woocommerce-cart .icon-cart .cart-notification-badge {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: absolute !important;
	top: -6px !important;
	right: -6px !important;
	min-width: 18px !important;
	min-height: 18px !important;
	background: var(--peptide-healthcare-blue) !important;
	color: #fff !important;
	border-radius: 4px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 18px !important;
	padding: 0 4px !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
	z-index: 10 !important;
	align-items: center !important;
	justify-content: center !important;
	border: 1px solid var(--c-bg) !important;
}
/* Override hidden class completely on cart page */
body.woocommerce-cart .cart-notification-badge.hidden,
html body.woocommerce-cart .cart-notification-badge.hidden,
.woocommerce-cart .cart-notification-badge.hidden {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.cart-notification-content {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
}

.cart-notification-icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	background: var(--peptide-healthcare-blue) !important;
	color: #fff !important;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Override cart notification badge color */
.cart-notification-badge {
	background: var(--peptide-healthcare-blue) !important;
	color: #fff !important;
}
/* Ensure cart notification badge is visible on cart page */
.woocommerce-cart .cart-notification-badge,
body.woocommerce-cart .cart-notification-badge {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 18px !important;
	min-width: 18px !important;
	min-height: 18px !important;
}

/* Override any orange styles in checkout - coupon button */
.woocommerce-checkout .peptide-checkout-summary-card form.woocommerce-form-coupon button[type="submit"],
.woocommerce-checkout .peptide-checkout-summary-card .woocommerce-form-coupon button,
.woocommerce-checkout .peptide-checkout-summary-card .button.apply,
.woocommerce-checkout .peptide-checkout-summary-card form.woocommerce-form-coupon .button,
.woocommerce-checkout .peptide-checkout-summary-card .woocommerce-form-coupon .button,
.woocommerce-checkout .peptide-checkout-summary-card form button[name="apply_coupon"],
.woocommerce-checkout .peptide-checkout-summary-card button[type="submit"],
.woocommerce-checkout .peptide-checkout-summary-card .woocommerce-form-coupon input[type="submit"],
.woocommerce-checkout form.woocommerce-form-coupon button,
.woocommerce-checkout form.woocommerce-form-coupon .button {
	background: var(--peptide-healthcare-blue) !important;
	border: none !important;
	border-color: var(--peptide-healthcare-blue) !important;
	color: #fff !important;
	box-shadow: none !important;
	outline: none !important;
}

.woocommerce-checkout .peptide-checkout-summary-card form.woocommerce-form-coupon button[type="submit"]:hover,
.woocommerce-checkout .peptide-checkout-summary-card .woocommerce-form-coupon button:hover,
.woocommerce-checkout .peptide-checkout-summary-card .button.apply:hover,
.woocommerce-checkout .peptide-checkout-summary-card form.woocommerce-form-coupon .button:hover,
.woocommerce-checkout .peptide-checkout-summary-card .woocommerce-form-coupon .button:hover,
.woocommerce-checkout .peptide-checkout-summary-card form button[name="apply_coupon"]:hover,
.woocommerce-checkout .peptide-checkout-summary-card button[type="submit"]:hover,
.woocommerce-checkout .peptide-checkout-summary-card .woocommerce-form-coupon input[type="submit"]:hover,
.woocommerce-checkout form.woocommerce-form-coupon button:hover,
.woocommerce-checkout form.woocommerce-form-coupon .button:hover {
	background: #0052a3 !important;
	border-color: #0052a3 !important;
	color: #fff !important;
}

/* Catch any remaining WooCommerce buttons in checkout that might be orange */
.woocommerce-checkout .peptide-checkout-summary-card button:not(.peptide-co-qty-stepper button):not(.peptide-btn),
.woocommerce-checkout .peptide-checkout-summary-card .button:not(.peptide-btn) {
	background: var(--peptide-healthcare-blue) !important;
	border-color: var(--peptide-healthcare-blue) !important;
	color: #fff !important;
}

.cart-notification-text {
	flex: 1;
}

.cart-notification-title {
	font-weight: 700;
	font-size: 14px;
	color: #111;
	margin-bottom: 4px;
}

.cart-notification-message {
	font-size: 13px;
	color: var(--peptide-muted);
}

.cart-notification-close {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border: none;
	background: transparent;
	color: var(--peptide-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.15s ease;
}

.cart-notification-close:hover {
	background: rgba(0, 102, 204, 0.1);
	color: var(--peptide-healthcare-blue);
}
/* Ensure any links in the popup are healthcare blue */
.cart-notification-popup a,
.cart-notification-popup .cart-notification-message a {
	color: var(--peptide-healthcare-blue) !important;
	text-decoration: none;
	transition: color 0.15s ease;
}
.cart-notification-popup a:hover,
.cart-notification-popup .cart-notification-message a:hover {
	color: #0052a3 !important;
	text-decoration: underline;
}

/* -----------------------------
   Checkout: Shipping Address Form Layout
------------------------------ */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 0;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row-wide {
	grid-column: 1 / -1;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row-first {
	grid-column: 1;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row-last {
	grid-column: 2;
}

.woocommerce-checkout .form-row {
	margin-bottom: 0;
}

.woocommerce-checkout .form-row label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: #111;
	margin-bottom: 6px;
}

.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--peptide-border);
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
	color: #111;
	transition: border-color 0.15s ease;
}

.woocommerce-checkout .form-row input::placeholder,
.woocommerce-checkout .form-row textarea::placeholder {
	color: #9ca3af;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
	outline: none;
	border-color: var(--peptide-healthcare-blue);
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.woocommerce-checkout .form-row textarea {
	height: auto;
	padding: 12px 14px;
	min-height: 80px;
	resize: vertical;
}

.woocommerce-checkout .form-row .required {
	color: #ef4444;
}

.woocommerce-checkout h3 {
	font-size: 20px;
	font-weight: 700;
	color: #111;
	margin: 0 0 20px 0;
}

/* Hide default WooCommerce section headings since we use our own step headers */
.woocommerce-checkout #customer_details h3,
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout #order_review_heading {
	display: none;
}

/* Ensure billing details appear after login section in section 1 */
.woocommerce-checkout .peptide-checkout-information-section .woocommerce-billing-fields {
	margin-top: 20px;
}
