/* Omniverce Core — Delivery location widget + popups.
   Measured from the client's Figma (file SoLYQNDI4aA1NOwfddhrmA):
   guest popup node 1362:24 (453x306), addresses popup node
   734:2921 (900x602). Navy #053677, add-button #186FE3,
   badge #DBEAFE / #1662C7, delete #EF181C, card grey #F3F4F6,
   borders #E5E7EB, popup bg #F8F8F8, header band #F0F2F2. */

/* ---------- Header trigger ---------- */

.ovc-dlw-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 4px 6px;
	margin: 0;
	cursor: pointer;
	color: #fff !important;
	font: inherit;
	text-align: left;
}

.ovc-dlw-pin {
	display: inline-flex;
	flex: none;
}

.ovc-dlw-text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.ovc-dlw-to {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.ovc-dlw-update {
	font-size: 11px;
	opacity: 0.85;
	white-space: nowrap;
}

.ovc-dlw-trigger:hover .ovc-dlw-update {
	text-decoration: underline;
}

/* ---------- Overlay + card ---------- */

.ovc-dlw-overlay {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(15, 23, 42, 0.55);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 48px 16px 24px;
	overflow-y: auto;
}

.ovc-dlw-overlay[hidden] {
	display: none;
}

.ovc-dlw-card {
	position: relative;
	background: #f8f8f8;
	border-radius: 8px;
	width: 100%;
	max-width: 453px;
	padding: 0 32px 32px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.ovc-dlw-card--wide {
	max-width: 900px;
	padding: 32px;
}

.ovc-dlw-band {
	margin: 0 -32px;
	padding: 0 32px;
	height: 72px;
	display: flex;
	align-items: center;
	background: #f0f2f2;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px 8px 0 0;
}

/* Geometry and look of the close button live in its inline style
   attribute (the theme's button rules kept winning the cascade);
   this class only carries the cursor fallback. */
.ovc-dlw-close {
	cursor: pointer;
}

.ovc-dlw-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #000;
}

.ovc-dlw-body {
	margin: 32px 0 0;
	font-size: 14px;
	line-height: 1.4;
	color: rgba(0, 0, 0, 0.6);
}

.ovc-dlw-primary {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	margin-top: 24px;
	background: #053677 !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 500;
	padding: 8px 10px;
	border-radius: 8px;
	text-decoration: none;
}

.ovc-dlw-primary:hover {
	background: #042c61;
	color: #fff;
}

.ovc-dlw-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 24px;
}

.ovc-dlw-overlay .ovc-dlw-done {
	width: 86px;
	height: 44px;
	background: transparent;
	border: 1px solid #053677 !important;
	color: #053677 !important;
	font-size: 14px;
	font-weight: 500;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: none;
}

.ovc-dlw-done:hover {
	background: rgba(5, 54, 119, 0.06);
}

/* ---------- Member addresses ---------- */

.ovc-dlw-head {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-right: 56px;
}

.ovc-dlw-add {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	height: 34px;
	background: #186fe3 !important;
	border: 0;
	box-shadow: none;
	color: #fff !important;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	padding: 0 14px;
	border-radius: 6px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.ovc-dlw-add:hover {
	background: #1259bd;
	color: #fff;
}

.ovc-dlw-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 28px;
}

.ovc-dlw-address {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 20px;
}

.ovc-dlw-address-head {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ovc-dlw-home {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #e9eaee;
	color: #555;
	flex: none;
}

.ovc-dlw-address-label {
	font-size: 15px;
	font-weight: 600;
	color: #000;
}

.ovc-dlw-default {
	margin-left: auto;
	background: #dbeafe;
	color: #1662c7;
	font-size: 12px;
	font-weight: 500;
	padding: 4px 10px;
	border-radius: 1000px;
}

.ovc-dlw-address-lines {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(0, 0, 0, 0.6);
}

.ovc-dlw-address-lines strong {
	color: #000;
	font-weight: 500;
}

.ovc-dlw-address-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	flex-wrap: wrap;
}

.ovc-dlw-overlay .ovc-dlw-btn {
	background: #fff !important;
	border: 1px solid #e5e7eb !important;
	color: #000 !important;
	font-size: 13px;
	font-weight: 500;
	padding: 7px 14px;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.ovc-dlw-btn:hover {
	border-color: #c3c7cd;
	color: #000;
}

.ovc-dlw-overlay .ovc-dlw-delete {
	background: none;
	border: 0;
	box-shadow: none;
	color: #ef181c !important;
	font-size: 13px;
	font-weight: 500;
	padding: 7px 8px;
	cursor: pointer;
}

.ovc-dlw-delete:hover {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.ovc-dlw-overlay {
		padding: 24px 10px 16px;
	}

	.ovc-dlw-card {
		padding: 0 18px 22px;
	}

	.ovc-dlw-band {
		margin: 0 -18px;
		padding: 0 18px;
	}

	.ovc-dlw-card--wide {
		padding: 22px 18px;
	}

	.ovc-dlw-grid {
		grid-template-columns: 1fr;
	}

	.ovc-dlw-head {
		flex-wrap: wrap;
	}

	.ovc-dlw-form-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Address form (add / edit) ---------- */

.ovc-dlw-form {
	margin-top: 22px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 20px;
}

.ovc-dlw-form[hidden] {
	display: none;
}

.ovc-dlw-form-title {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 600;
	color: #000;
}

.ovc-dlw-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.ovc-dlw-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ovc-dlw-field--full {
	grid-column: 1 / -1;
}

.ovc-dlw-field span {
	font-size: 13px;
	font-weight: 500;
	color: #333;
}

.ovc-dlw-overlay .ovc-dlw-field input,
.ovc-dlw-overlay .ovc-dlw-field select {
	height: 40px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 0 12px;
	font-size: 14px;
	color: #111;
	background: #fff;
	width: 100%;
	box-sizing: border-box;
}

.ovc-dlw-overlay .ovc-dlw-field input:focus,
.ovc-dlw-overlay .ovc-dlw-field select:focus {
	border-color: #186fe3;
	outline: none;
}

.ovc-dlw-form-error {
	margin: 14px 0 0;
	font-size: 13px;
	color: #ef181c;
}

.ovc-dlw-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 18px;
}

.ovc-dlw-save {
	background: #053677 !important;
	border: 0;
	box-shadow: none;
	color: #fff !important;
	font-size: 14px;
	font-weight: 500;
	height: 40px;
	padding: 0 20px;
	border-radius: 8px;
	cursor: pointer;
}

.ovc-dlw-save:hover {
	background: #042c61;
}
