/* ==========================================================================
   Flower Ordering Page — Obituary Gift Buttons Plugin
   ========================================================================== */

/* ── Layout ──────────────────────────────────────────────────────────────── */

.ogb-flowers-page {
	padding: 40px 16px 60px;
}

.ogb-flowers-container {
	max-width: 100%;
}

/* ── Memorial Header ─────────────────────────────────────────────────────── */

.ogb-memorial-header {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 36px;
	padding: 28px 32px;
	background: linear-gradient(135deg, #f9f5f7 0%, #fdf8fb 100%);
	border-left: 5px solid #682145;
	border-radius: 0 8px 8px 0;
}

.ogb-memorial-photo-wrap {
	flex-shrink: 0;
}

.ogb-memorial-photo {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #682145;
}

.ogb-memorial-info {
	flex: 1;
}

.ogb-memorial-label {
	margin: 0 0 4px;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #682145;
	font-weight: 600;
}

.ogb-memorial-name {
	margin: 0;
	font-size: 1.7rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
}

.ogb-page-header {
	margin-bottom: 36px;
	text-align: center;
}

.ogb-page-header h1 {
	font-size: 1.8rem;
	color: #1a1a1a;
}

/* ── Form Sections ───────────────────────────────────────────────────────── */

.ogb-form-section {
	margin-bottom: 32px;
	padding: 28px 32px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ogb-section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1a1a1a;
}

.ogb-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: #682145;
	color: #fff;
	border-radius: 50%;
	font-size: 0.85rem;
	font-weight: 700;
	flex-shrink: 0;
}

.ogb-optional {
	font-size: 0.8rem;
	font-weight: 400;
	color: #888;
	margin-left: 4px;
}

/* ── Arrangements Grid ───────────────────────────────────────────────────── */

.ogb-arrangements-grid {
	display: grid;
	grid-template-columns: repeat(var(--ogb-cols, 3), 1fr);
	gap: 16px;
}

@media (max-width: 680px) {
	.ogb-arrangements-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.ogb-arrangements-grid {
		grid-template-columns: 1fr;
	}
}

.ogb-arrangement-card {
	display: block;
	position: relative;
	border: 2px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	background: #fff;
}

.ogb-arrangement-card:hover {
	border-color: #682145;
	box-shadow: 0 2px 12px rgba(104, 33, 69, 0.15);
}

.ogb-arrangement-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* Selected state */
.ogb-arrangement-card:has(input:checked) {
	border-color: #682145;
	box-shadow: 0 0 0 3px rgba(104, 33, 69, 0.18);
}

.ogb-arrangement-card:has(input:checked) .ogb-radio-indicator {
	background: #682145;
	border-color: #682145;
}

.ogb-arrangement-card:has(input:checked) .ogb-radio-indicator::after {
	opacity: 1;
}

.ogb-arrangement-img-wrap {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f4f4f4;
}

.ogb-arrangement-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}

.ogb-arrangement-card:hover .ogb-arrangement-img {
	transform: scale(1.03);
}

.ogb-arrangement-details {
	padding: 14px 16px 16px;
}

.ogb-arrangement-name {
	margin: 0 0 4px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1a1a1a;
}

.ogb-arrangement-price {
	margin: 0 0 4px;
	font-size: 1.1rem;
	font-weight: 700;
	color: #682145;
}

.ogb-arrangement-price-breakdown {
	margin: 0 0 6px;
	font-size: 0.75rem;
	color: #888;
	font-weight: 400;
}

.ogb-arrangement-desc {
	margin: 0;
	font-size: 0.8rem;
	color: #666;
	line-height: 1.4;
}

/* ── Tier Buttons (Standard / Deluxe / Premium …) ───────────────────────── */

.ogb-flowers-page .ogb-tier-btns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
	margin-top: 12px;
	padding: 0 2px;
}

.ogb-flowers-page .ogb-tier-btn {
	flex: 1 1 0;
	min-width: 0;
	max-width: 110px;
	padding: 5px 10px;
	border: 1.5px solid #9d3036;
	border-radius: 999px;
	background: #fff;
	color: #9d3036;
	font-size: 0.76rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	line-height: 1.5;
	white-space: nowrap;
	text-align: center;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
}

.ogb-flowers-page .ogb-tier-btn:hover,
.ogb-flowers-page .ogb-tier-btn.ogb-tier-btn--active {
	background: #9d3036 !important;
	color: #fff !important;
	border-color: #9d3036 !important;
	box-shadow: 0 2px 8px rgba(157, 48, 54, 0.30);
}

.ogb-radio-indicator {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 20px;
	height: 20px;
	border: 2px solid #ccc;
	border-radius: 50%;
	background: #fff;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.ogb-radio-indicator::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	width: 8px;
	height: 8px;
	background: #fff;
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.15s ease;
}

/* ── Delivery Options ────────────────────────────────────────────────────── */

.ogb-radio-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.ogb-radio-option {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.ogb-radio-option input[type="radio"] {
	accent-color: #682145;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.ogb-radio-label {
	font-size: 0.95rem;
	color: #333;
}

.ogb-custom-address {
	padding: 16px;
	background: #f9f5f7;
	border-radius: 6px;
	border: 1px solid #e0c8d0;
}

/* ── Form Fields ─────────────────────────────────────────────────────────── */

.ogb-field {
	margin-bottom: 16px;
}

.ogb-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.88rem;
	font-weight: 600;
	color: #333;
}

.ogb-field input[type="text"],
.ogb-field input[type="email"],
.ogb-field input[type="tel"],
.ogb-field input[type="number"],
.ogb-field input[type="date"],
.ogb-field input[type="datetime-local"],
.ogb-field input[type="time"],
.ogb-field input[type="url"],
.ogb-field textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	font-size: 0.95rem;
	line-height: 1.4;
	color: #333;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
	font-family: inherit;
	min-height: 44px;
}

.ogb-field input:focus,
.ogb-field textarea:focus {
	outline: none;
	border-color: #682145;
	box-shadow: 0 0 0 3px rgba(104, 33, 69, 0.12);
}

.ogb-field input.ogb-invalid,
.ogb-field textarea.ogb-invalid {
	border-color: #c0392b;
}

.ogb-field textarea {
	resize: vertical;
	min-height: 90px;
}

.ogb-field-row {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 12px;
}

.ogb-field--sm input {
	width: 100%;
}

.ogb-char-count {
	margin: 4px 0 0;
	font-size: 0.78rem;
	color: #999;
	text-align: right;
}

.ogb-required {
	color: #c0392b;
}

/* ── Submit Area ─────────────────────────────────────────────────────────── */

.ogb-submit-section {
	text-align: center;
	padding: 8px 0 0;
}

.ogb-form-error {
	margin-bottom: 14px;
	padding: 12px 16px;
	background: #fdf1f1;
	border: 1px solid #f5c6cb;
	border-radius: 6px;
	color: #c0392b;
	font-size: 0.9rem;
	display: none;
}

.ogb-form-error:not(:empty) {
	display: block;
}

.ogb-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 32px;
	background: #682145;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
	letter-spacing: 0.3px;
}

.ogb-submit-btn:hover:not(:disabled) {
	background: #7d2855;
}

.ogb-submit-btn:active:not(:disabled) {
	transform: scale(0.98);
}

.ogb-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.ogb-secure-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 12px 0 0;
	font-size: 0.78rem;
	color: #888;
}

/* ── Visitation Deadline Banner ──────────────────────────────────────────── */

.ogb-deadline-banner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 24px;
	padding: 16px 20px;
	background: #f0ebf5;
	border: 1px solid #c9b8d8;
	border-radius: 8px;
	font-size: 0.95rem;
	color: #3a1a2e;
	line-height: 1.5;
}

.ogb-deadline-banner svg {
	flex-shrink: 0;
	margin-top: 2px;
	stroke: #682145;
}

.ogb-deadline-banner strong {
	font-weight: 700;
}

/* ── Orders Closed State ─────────────────────────────────────────────────── */

.ogb-orders-closed {
	margin-bottom: 32px;
	padding: 32px 28px;
	background: #fdf8fb;
	border: 1px solid #d9c8d2;
	border-radius: 10px;
	text-align: center;
}

.ogb-orders-closed-icon {
	margin-bottom: 16px;
	color: #999;
}

.ogb-orders-closed-title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 700;
	color: #3a1a2e;
}

.ogb-orders-closed-msg {
	margin: 0;
	font-size: 0.95rem;
	color: #666;
	line-height: 1.6;
}

/* ── Visitation Deadline Banner ──────────────────────────────────────────── */

.ogb-deadline-banner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 24px;
	padding: 16px 20px;
	background: #f0ebf5;
	border: 1px solid #c9b8d8;
	border-radius: 8px;
	font-size: 0.95rem;
	color: #3a1a2e;
	line-height: 1.5;
}

.ogb-deadline-banner svg {
	flex-shrink: 0;
	margin-top: 2px;
	stroke: #682145;
}

.ogb-deadline-banner strong {
	font-weight: 700;
}

/* ── Orders Closed State ─────────────────────────────────────────────────── */

.ogb-orders-closed {
	margin-bottom: 32px;
	padding: 32px 28px;
	background: #fdf8fb;
	border: 1px solid #d9c8d2;
	border-radius: 10px;
	text-align: center;
}

.ogb-orders-closed-icon {
	margin-bottom: 16px;
	color: #999;
}

.ogb-orders-closed-title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 700;
	color: #3a1a2e;
}

.ogb-orders-closed-msg {
	margin: 0;
	font-size: 0.95rem;
	color: #666;
	line-height: 1.6;
}

/* ── Thank You Page ──────────────────────────────────────────────────────── */

.ogb-thankyou-page {
	text-align: center;
}

.ogb-success-icon {
	margin-bottom: 20px;
	color: #27ae60;
}

.ogb-thankyou-title {
	margin: 0 0 8px;
	font-size: 2rem;
	color: #1a1a1a;
}

.ogb-thankyou-subtitle {
	margin: 0 0 32px;
	font-size: 1rem;
	color: #555;
}

.ogb-order-summary-card {
	text-align: left;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 28px 32px;
	margin-bottom: 24px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ogb-summary-title {
	margin: 0 0 18px;
	font-size: 1.1rem;
	color: #1a1a1a;
}

.ogb-summary-list {
	margin: 0;
}

.ogb-summary-row {
	display: flex;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}

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

.ogb-summary-row dt {
	width: 140px;
	flex-shrink: 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: #682145;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ogb-summary-row dd {
	flex: 1;
	margin: 0;
	font-size: 0.95rem;
	color: #333;
}

.ogb-summary-row .ogb-price {
	color: #682145;
	font-weight: 600;
}

.ogb-summary-row .ogb-price-breakdown {
	display: block;
	font-size: 0.78rem;
	color: #888;
	font-weight: 400;
	margin-top: 2px;
}

.ogb-card-msg {
	font-style: italic;
}

.ogb-confirmation-note {
	margin-bottom: 28px;
	font-size: 0.9rem;
	color: #555;
}

.ogb-return-btn {
	display: inline-block;
	padding: 12px 28px;
	background: #682145;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.2s ease;
}

.ogb-return-btn:hover {
	background: #7d2855;
	color: #fff;
	text-decoration: none;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 680px) {
	.ogb-flowers-page {
		padding: 24px 12px 48px;
	}

	.ogb-memorial-header {
		flex-direction: column;
		text-align: center;
		padding: 20px 16px;
	}

	.ogb-memorial-name {
		font-size: 1.3rem;
	}

	.ogb-form-section {
		padding: 20px 16px;
	}

	.ogb-field-row {
		grid-template-columns: 1fr;
	}

	.ogb-summary-row {
		flex-direction: column;
		gap: 4px;
	}

	.ogb-summary-row dt {
		width: auto;
	}

	.ogb-order-summary-card {
		padding: 20px 16px;
	}
}

/* ── Tile radios (delivery type, tier, color) ────────────────────────────── */

.ogb-tile-radios {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin: 8px 0 0;
}

.ogb-tile-radio {
	position: relative;
	display: block;
	padding: 14px 16px;
	border: 2px solid #e5e5e5;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ogb-tile-radio input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ogb-tile-radio:hover {
	border-color: #b88aa1;
}

.ogb-tile-radio:has(input:checked) {
	border-color: #682145;
	background: #faf3f7;
	box-shadow: 0 0 0 3px rgba(104, 33, 69, 0.12);
}

.ogb-tile-radio-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ogb-tile-radio-content strong {
	font-size: 0.95rem;
	color: #1a1a1a;
}

.ogb-tile-radio-content small {
	font-size: 0.8rem;
	color: #777;
}

.ogb-field-hint {
	margin: 6px 0 0;
	font-size: 0.8rem;
	color: #777;
	line-height: 1.5;
}

.ogb-field-hint:empty {
	display: none;
}

.ogb-service-datetime-display {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: #f8f4f6;
	border: 1px solid #d9c8d2;
	border-radius: 6px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #3a1a2e;
}

.ogb-service-datetime-display svg {
	flex-shrink: 0;
	stroke: #682145;
}
