/* Limitless Delivery Manager — storefront styles. */
:root {
	--goc-ldm-cart-accent: #e4572e;
	--goc-ldm-signed-in: #16a34a;
	--goc-ldm-radius: 999px;
}

/* ---------- Header container ---------- */
.goc-ldm-header-items {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-left: 0.75rem;
}
.goc-ldm-menu-item {
	display: flex;
	align-items: center;
	list-style: none;
}
.goc-ldm-header-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	text-decoration: none !important;
	color: inherit;
	line-height: 1;
	white-space: nowrap;
}
.goc-ldm-icon {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
}

/* ---------- 1. Account: Sign In vs person icon ---------- */
.goc-ldm-account--signed-out {
	padding: 0.55em 1em;
	border: 2px solid currentColor;
	border-radius: var(--goc-ldm-radius);
	font-weight: 600;
}
.goc-ldm-account--signed-out .goc-ldm-icon {
	width: 18px;
	height: 18px;
}
.goc-ldm-account--signed-out:hover,
.goc-ldm-account--signed-out:focus-visible {
	opacity: 0.8;
}

.goc-ldm-account--signed-in {
	position: relative;
}
.goc-ldm-account-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 2px solid currentColor;
	color: inherit;
	text-decoration: none !important;
}
.goc-ldm-account-dot {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--goc-ldm-signed-in);
	border: 2px solid #fff;
}
.goc-ldm-account-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 9999;
	display: none;
	min-width: 190px;
	padding: 0.5rem 0;
	background: #fff;
	color: #1f2937;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	text-align: left;
}
.goc-ldm-account--signed-in:hover .goc-ldm-account-menu,
.goc-ldm-account--signed-in:focus-within .goc-ldm-account-menu {
	display: block;
}
.goc-ldm-account-menu a,
.goc-ldm-account-hello {
	display: block;
	padding: 0.55rem 1rem;
	color: #1f2937 !important;
	text-decoration: none !important;
	font-size: 0.95rem;
	line-height: 1.3;
}
.goc-ldm-account-hello {
	font-weight: 700;
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 0.25rem;
}
.goc-ldm-account-menu a:hover,
.goc-ldm-account-menu a:focus-visible {
	background: #f3f4f6;
}

/* ---------- 2. Cart: bigger + coloured once it has items ---------- */
.goc-ldm-cart {
	position: relative;
	padding: 0.45em 0.6em;
	border-radius: var(--goc-ldm-radius);
	transition: transform 0.2s ease, background-color 0.2s ease;
}
.goc-ldm-cart--empty .goc-ldm-cart-count {
	display: none;
}
.goc-ldm-cart--has-items {
	padding: 0.6em 1.1em 0.6em 0.9em;
	background: var(--goc-ldm-cart-accent);
	color: #fff !important;
	font-weight: 700;
	font-size: 1.1rem;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	animation: goc-ldm-cart-pop 0.45s ease;
}
.goc-ldm-cart--has-items .goc-ldm-icon {
	width: 30px;
	height: 30px;
}
.goc-ldm-cart--has-items:hover,
.goc-ldm-cart--has-items:focus-visible {
	transform: scale(1.05);
	color: #fff !important;
}
.goc-ldm-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.6em;
	height: 1.6em;
	padding: 0 0.35em;
	border-radius: var(--goc-ldm-radius);
	background: #fff;
	color: var(--goc-ldm-cart-accent);
	font-size: 0.85em;
	font-weight: 800;
}
.goc-ldm-cart-total {
	font-size: 0.95em;
}
.goc-ldm-cart-total .woocommerce-Price-amount {
	color: inherit;
}
@keyframes goc-ldm-cart-pop {
	0% { transform: scale(0.85); }
	60% { transform: scale(1.12); }
	100% { transform: scale(1); }
}
@media (max-width: 600px) {
	.goc-ldm-cart-total { display: none; }
	.goc-ldm-account--signed-out .goc-ldm-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.goc-ldm-cart--has-items { animation: none; }
}

/* ---------- 3. Added to cart screen ---------- */
.goc-ldm-added {
	max-width: 760px;
	margin: 0 auto 2rem;
}
.goc-ldm-added-banner {
	display: flex;
	gap: 1rem;
	align-items: center;
	padding: 1.25rem 1.5rem;
	border-radius: 14px;
	background: #ecfdf5;
	border: 2px solid #10b981;
	margin-bottom: 1.5rem;
}
.goc-ldm-added-banner h2 {
	margin: 0 0 0.25rem;
	font-size: 1.35rem;
}
.goc-ldm-added-banner p {
	margin: 0;
}
.goc-ldm-added-banner--empty {
	background: #f9fafb;
	border-color: #d1d5db;
}
.goc-ldm-added-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	height: 48px;
	border-radius: 50%;
	background: #10b981;
	color: #fff;
	font-size: 1.6rem;
	font-weight: 800;
}
.goc-ldm-added-heading {
	margin: 0 0 0.75rem;
}
.goc-ldm-added-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
}
.goc-ldm-added-item {
	display: grid;
	grid-template-columns: 72px 1fr auto;
	gap: 1rem;
	align-items: center;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #e5e7eb;
}
.goc-ldm-added-item:last-child {
	border-bottom: 0;
}
.goc-ldm-added-item--new {
	background: #fff7ed;
}
.goc-ldm-added-thumb img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}
.goc-ldm-added-info {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.goc-ldm-added-info dl {
	margin: 0;
	font-size: 0.9em;
}
.goc-ldm-added-name {
	font-weight: 700;
}
.goc-ldm-added-tag {
	display: inline-block;
	margin-left: 0.4rem;
	padding: 0.1em 0.5em;
	border-radius: var(--goc-ldm-radius);
	background: var(--goc-ldm-cart-accent);
	color: #fff;
	font-size: 0.75em;
	font-style: normal;
	vertical-align: middle;
}
.goc-ldm-added-qty {
	color: #6b7280;
	font-size: 0.9em;
}
.goc-ldm-added-price {
	font-weight: 700;
	white-space: nowrap;
}
.goc-ldm-added-subtotal {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 1rem 0.25rem 0.25rem;
	font-size: 1.2rem;
}
.goc-ldm-added-note {
	margin: 0 0.25rem 1.5rem;
	color: #6b7280;
	font-size: 0.9em;
}
.goc-ldm-added-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.goc-ldm-btn.button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0.9rem 1.25rem;
	font-size: 1.1rem;
	font-weight: 700;
	border-radius: 10px;
	text-align: center;
	text-decoration: none;
}
.goc-ldm-btn--primary.button {
	background: var(--goc-ldm-cart-accent);
	border: 2px solid var(--goc-ldm-cart-accent);
	color: #fff;
}
.goc-ldm-btn--primary.button:hover {
	filter: brightness(0.92);
	color: #fff;
}
.goc-ldm-btn--secondary.button {
	background: transparent;
	border: 2px solid currentColor;
	color: inherit;
}
.goc-ldm-added-edit {
	margin-top: 1rem;
	text-align: center;
}
@media (max-width: 600px) {
	.goc-ldm-added-actions {
		grid-template-columns: 1fr;
	}
	.goc-ldm-added-actions .goc-ldm-btn--primary {
		order: -1;
	}
	.goc-ldm-added-item {
		grid-template-columns: 56px 1fr;
	}
	.goc-ldm-added-thumb img {
		width: 56px;
		height: 56px;
	}
	.goc-ldm-added-price {
		grid-column: 2;
	}
}

/* ---------- 4. Full address form ---------- */
.goc-ldm-address-intro {
	margin: 0.75rem 0;
	font-size: 0.95em;
}
.goc-ldm-address-form .form-row input.input-text,
.goc-ldm-address-form .form-row select {
	width: 100%;
}

/* ---------- 5. Pay now / Pay at the door ---------- */
.goc-ldm-pay-choice {
	margin: 1.25rem 0;
}
.goc-ldm-pay-choice[hidden] {
	display: none !important;
}
.goc-ldm-pay-choice h3 {
	margin: 0 0 0.75rem;
}
.goc-ldm-pay-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}
.goc-ldm-pay-option {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	padding: 1rem;
	border: 2px solid #d1d5db;
	border-radius: 12px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.goc-ldm-pay-option input {
	margin-top: 0.25rem;
}
.goc-ldm-pay-option.is-selected {
	border-color: var(--goc-ldm-cart-accent);
	box-shadow: 0 0 0 3px rgba(228, 87, 46, 0.15);
}
.goc-ldm-pay-option.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.goc-ldm-pay-text {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.goc-ldm-pay-text strong {
	font-size: 1.05rem;
}
.goc-ldm-pay-text small {
	color: #6b7280;
}
.goc-ldm-pay-unavailable {
	color: #b45309 !important;
}
@media (max-width: 600px) {
	.goc-ldm-pay-options {
		grid-template-columns: 1fr;
	}
}
