/**
 * Obituary Gift Buttons – Modal Styles
 *
 * @package Obituary_Gift_Buttons
 */

/* ============================================================
   Backdrop & Scroll Lock
   ============================================================ */
body.ogb-no-scroll {
	overflow: hidden;
	position: fixed;
	width: 100%;
}

/* ============================================================
   Modal Wrapper (hidden by default)
   ============================================================ */
.ogb-modal {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 999999;
}

.ogb-modal.ogb-modal-active {
	display: block;
}

/* ============================================================
   Overlay
   ============================================================ */
.ogb-modal-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.65);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	animation: ogbFadeIn 0.25s ease;
}

@keyframes ogbFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* ============================================================
   Container
   ============================================================ */
.ogb-modal-container {
	position: relative;
	width: 92%;
	max-width: 880px;
	max-height: 85vh;
	margin: 7vh auto 0;
	background: rgba(255, 255, 255, 0.98);
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	animation: ogbSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	outline: none;
	overflow: hidden;
}

@keyframes ogbSlideIn {
	from {
		opacity: 0;
		transform: translateY(30px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* ============================================================
   Header
   ============================================================ */
.ogb-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 32px;
	border-bottom: 1px solid #f0f0f0;
	flex-shrink: 0;
	background: #ffffff;
}

.ogb-modal-title {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	color: #111111;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.ogb-modal-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 2px solid transparent;
	border-radius: 50%;
	cursor: pointer;
	color: #888888;
	transition: color 0.2s, background 0.2s, border-color 0.2s;
	flex-shrink: 0;
}

.ogb-modal-close:hover {
	color: #1a1a1a;
	background: #f2f2f2;
}

.ogb-modal-close:focus-visible {
	outline: none;
	border-color: #1a1a1a;
}

.ogb-modal-close svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* ============================================================
   Body (scrollable area)
   ============================================================ */
.ogb-modal-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 24px 28px;
	-webkit-overflow-scrolling: touch;
}

/* ============================================================
   Loading State
   ============================================================ */
.ogb-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 0;
	color: #888888;
	gap: 14px;
}

.ogb-loading p {
	margin: 0;
	font-size: 15px;
}

.ogb-spinner svg {
	width: 48px;
	height: 48px;
	fill: #aaaaaa;
	animation: ogbSpin 0.8s linear infinite;
}

@keyframes ogbSpin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

/* ============================================================
   Error State
   ============================================================ */
.ogb-error {
	padding: 32px;
	text-align: center;
	color: #E63946;
}

.ogb-error-message {
	margin: 0;
	font-size: 15px;
}

/* ============================================================
   Products Grid
   ============================================================ */
.ogb-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}

/* ============================================================
   Product Card
   ============================================================ */
.ogb-product-card {
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	background: #ffffff;
	display: flex;
	flex-direction: column;
}

.ogb-product-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

/* Product Image */
.ogb-product-image {
	width: 100%;
	height: 210px;
	overflow: hidden;
	background: #f8f8f8;
	flex-shrink: 0;
}

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

.ogb-product-card:hover .ogb-product-image img {
	transform: scale(1.04);
}

.ogb-product-image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 100%);
}

/* Product Details */
.ogb-product-details {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
}

.ogb-product-name {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.35;
}

.ogb-product-price {
	font-size: 18px;
	font-weight: 700;
	color: #E63946;
}

.ogb-product-price .woocommerce-Price-amount {
	color: inherit;
}

.ogb-product-description {
	font-size: 13px;
	line-height: 1.5;
	color: #666666;
	flex: 1;
}

.ogb-product-description p:last-child {
	margin-bottom: 0;
}

/* Product Actions */
.ogb-product-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 8px;
}

/* Quantity Controls */
.ogb-qty-wrap {
	display: flex;
	align-items: center;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
}

.ogb-qty-minus,
.ogb-qty-plus {
	width: 30px;
	height: 36px;
	padding: 0;
	background: #f5f5f5;
	border: none;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	color: #555555;
	transition: background 0.15s;
}

.ogb-qty-minus:hover,
.ogb-qty-plus:hover {
	background: #e8e8e8;
}

.ogb-qty-input {
	width: 44px;
	height: 36px;
	padding: 0 4px;
	border: none;
	border-left: 1px solid #d0d0d0;
	border-right: 1px solid #d0d0d0;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	-moz-appearance: textfield;
	appearance: textfield;
	/* Firefox: hide arrows */
}

.ogb-qty-input::-webkit-inner-spin-button,
.ogb-qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Add to Cart Button */
.ogb-add-to-cart-btn {
	flex: 1;
	padding: 9px 14px;
	background: #1a1a1a;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
	white-space: nowrap;
	min-height: 44px;
}

.ogb-add-to-cart-btn:hover {
	background: #333333;
}

.ogb-add-to-cart-btn:active {
	transform: scale(0.97);
}

.ogb-add-to-cart-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ogb-add-to-cart-btn.ogb-added {
	background: #2A9D8F;
}

/* View Details (variable products) */
.ogb-view-details-btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 14px;
	background: transparent;
	color: #1a1a1a;
	border: 2px solid #1a1a1a;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
	min-height: 44px;
}

.ogb-view-details-btn:hover {
	background: #1a1a1a;
	color: #ffffff;
}

/* Out of stock */
.ogb-out-of-stock {
	font-size: 13px;
	color: #999999;
	font-style: italic;
}

/* ============================================================
   Load More
   ============================================================ */
.ogb-load-more-wrap {
	text-align: center;
	margin-top: 24px;
}

.ogb-load-more-btn {
	padding: 11px 32px;
	background: transparent;
	color: #1a1a1a;
	border: 2px solid #1a1a1a;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.ogb-load-more-btn:hover {
	background: #1a1a1a;
	color: #ffffff;
}

.ogb-load-more-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ============================================================
   Modal Footer (Cart / Checkout links)
   ============================================================ */
.ogb-modal-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding: 16px 28px;
	border-top: 1px solid #e8e8e8;
	flex-shrink: 0;
}

.ogb-cart-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #555555;
	text-decoration: none;
	transition: color 0.2s;
}

.ogb-cart-link:hover {
	color: #1a1a1a;
}

.ogb-cart-count-badge {
	font-size: 12px;
	color: #888888;
}

.ogb-checkout-link {
	display: inline-flex;
	align-items: center;
	padding: 10px 22px;
	background: #1a1a1a;
	color: #ffffff !important;
	border: none;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s;
}

.ogb-checkout-link:hover {
	background: #333333;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 760px) {
	.ogb-modal-container {
		width: 100%;
		max-width: 100%;
		max-height: 96vh;
		margin: 2vh 0 0;
		border-radius: 10px 10px 0 0;
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		animation: ogbSlideUp 0.3s ease;
	}

	@keyframes ogbSlideUp {
		from {
			transform: translateY(100%);
		}

		to {
			transform: translateY(0);
		}
	}

	.ogb-modal-header {
		padding: 16px 18px;
	}

	.ogb-modal-body {
		padding: 16px 18px;
	}

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

	.ogb-modal-footer {
		padding: 12px 18px;
		flex-direction: column;
		align-items: stretch;
	}

	.ogb-checkout-link {
		text-align: center;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.ogb-modal-title {
		font-size: 18px;
	}

	.ogb-product-image {
		height: 180px;
	}
}

/* ============================================================
   Stepper Indicator Bar
   ============================================================ */
.ogb-stepper {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	background: #fafafa;
	border-bottom: 1px solid #e8e8e8;
	gap: 0;
}

.ogb-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	cursor: default;
	opacity: 0.4;
	transition: opacity 0.2s;
}

.ogb-step.ogb-step-active {
	opacity: 1;
}

.ogb-step.ogb-step-done {
	opacity: 0.75;
}

.ogb-step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	background: #e0e0e0;
	color: #888888;
	transition: background 0.25s, color 0.25s;
}

.ogb-step.ogb-step-active .ogb-step-number {
	background: #1a1a1a;
	color: #ffffff;
}

.ogb-step.ogb-step-done .ogb-step-number {
	background: #2A9D8F;
	color: #ffffff;
}

/* Checkmark for done steps */
.ogb-step.ogb-step-done .ogb-step-number {
	font-size: 0;
	/* hide the number */
}

.ogb-step.ogb-step-done .ogb-step-number::after {
	content: '✓';
	font-size: 16px;
	font-weight: bold;
}

.ogb-step-label {
	font-size: 11px;
	font-weight: 600;
	color: #888888;
	white-space: nowrap;
}

.ogb-step.ogb-step-active .ogb-step-label {
	color: #1a1a1a;
}

.ogb-step.ogb-step-done .ogb-step-label {
	color: #2A9D8F;
}

/* Connector line between steps */
.ogb-step-connector {
	flex: 1;
	max-width: 60px;
	height: 2px;
	background: #e0e0e0;
	margin-bottom: 16px;
	/* align with number circles */
	transition: background 0.25s;
}

.ogb-step-connector.ogb-connector-done {
	background: #2A9D8F;
}

/* ============================================================
   Step Panels
   ============================================================ */
.ogb-step-panel {
	animation: ogbFadeIn 0.2s ease;
}

/* ============================================================
   Step 1 – Product Cards (compact grid for selection)
   ============================================================ */
.ogb-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.ogb-product-card-s {
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.2s;
	background: #fff;
	cursor: default;
}

.ogb-product-card-s:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.ogb-product-card-img {
	width: 100%;
	height: 170px;
	overflow: hidden;
	background: #f5f5f5;
}

.ogb-product-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.ogb-product-card-s:hover .ogb-product-card-img img {
	transform: scale(1.04);
}

.ogb-product-card-img-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 100%);
}

.ogb-product-card-body {
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ogb-product-card-name {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.3;
}

.ogb-product-card-price {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: #E63946;
}

.ogb-select-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 9px 12px;
	background: #1a1a1a;
	color: #ffffff;
	border: none;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	min-height: 40px;
}

.ogb-select-btn:hover {
	background: #333333;
}

.ogb-select-btn-outline {
	background: transparent;
	color: #1a1a1a;
	border: 2px solid #1a1a1a;
}

.ogb-select-btn-outline:hover {
	background: #1a1a1a;
	color: #ffffff;
}

.ogb-out-of-stock {
	display: block;
	font-size: 13px;
	color: #aaaaaa;
	font-style: italic;
	text-align: center;
	padding: 6px 0;
}

/* Stock badge (shown on out-of-stock products) */
.ogb-stock-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	border-radius: 3px;
	padding: 3px 7px;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.ogb-badge-oos {
	background: #fde8e8;
	color: #c0392b;
	border: 1px solid #f5c6c6;
}

/* Dimmed select button (out-of-stock product) */
.ogb-select-btn-dim {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* "Select Options" link for variable products */
.ogb-select-options-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 9px 12px;
	background: transparent;
	color: #1a1a1a;
	border: 2px solid #1a1a1a;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
	min-height: 40px;
	box-sizing: border-box;
}

.ogb-select-options-link:hover {
	background: #1a1a1a;
	color: #ffffff;
}

/* ============================================================
   Step 2 – Personalize
   ============================================================ */
.ogb-selected-summary {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	background: #f8f8f8;
	border-radius: 8px;
	margin-bottom: 20px;
	border: 1px solid #e8e8e8;
}

.ogb-selected-img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
	border: 1px solid #e0e0e0;
}

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

.ogb-selected-name {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
}

.ogb-selected-price {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #E63946;
}

.ogb-personalize-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ogb-form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ogb-form-label {
	font-size: 13px;
	font-weight: 600;
	color: #444444;
}

.ogb-optional {
	font-weight: 400;
	color: #999999;
	margin-left: 4px;
}

.ogb-form-input {
	padding: 10px 12px;
	border: 1px solid #d0d0d0;
	border-radius: 5px;
	font-size: 14px;
	color: #1a1a1a;
	background: #f5f5f5;
}

.ogb-form-input[readonly] {
	cursor: default;
	color: #555555;
}

.ogb-form-textarea {
	padding: 10px 12px;
	border: 1px solid #d0d0d0;
	border-radius: 5px;
	font-size: 14px;
	color: #1a1a1a;
	resize: vertical;
	min-height: 90px;
	font-family: inherit;
	transition: border-color 0.2s;
}

.ogb-form-textarea:focus {
	outline: none;
	border-color: #1a1a1a;
}

.ogb-char-count {
	margin: 0;
	font-size: 12px;
	color: #aaaaaa;
	text-align: right;
}

/* ============================================================
   Step 2 & 3 – Shared Action Row
   ============================================================ */
.ogb-step-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e8e8e8;
}

.ogb-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	background: #682145;
	color: #ffffff;
	border: none;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
	min-height: 48px;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(104, 33, 69, 0.2);
}

.ogb-btn-primary:hover {
	background: #7d2a54;
	color: #ffffff;
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 8px 24px rgba(104, 33, 69, 0.3);
}

.ogb-btn-primary:active {
	transform: translateY(0);
}

.ogb-btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.ogb-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 24px;
	background: #ffffff;
	color: #444444;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	min-height: 48px;
	text-decoration: none;
}

.ogb-btn-secondary:hover {
	border-color: #1a1a1a;
	color: #1a1a1a;
	background: #fcfcfc;
}

.ogb-btn-large {
	padding: 14px 32px;
	font-size: 16px;
}

/* ============================================================
   Step 3 – Review Card
   ============================================================ */
.ogb-review-card {
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	overflow: hidden;
}

.ogb-review-product {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	background: #f8f8f8;
	border-bottom: 1px solid #e8e8e8;
}

.ogb-review-img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}

.ogb-review-details {
	flex: 1;
}

.ogb-review-name {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
}

.ogb-review-unit-price {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #E63946;
}

.ogb-review-table {
	width: 100%;
	border-collapse: collapse;
}

.ogb-review-table tr {
	border-bottom: 1px solid #f0f0f0;
}

.ogb-review-table tr:last-child {
	border-bottom: none;
}

.ogb-review-table td {
	padding: 12px 16px;
	font-size: 14px;
	color: #444444;
}

.ogb-review-table td:first-child {
	color: #888888;
	width: 35%;
	white-space: nowrap;
}

.ogb-review-subtotal-row td {
	padding-top: 14px;
	border-top: 2px solid #e8e8e8;
	font-size: 15px;
}

.ogb-review-message-text {
	font-style: italic;
	color: #555555;
	white-space: pre-wrap;
}

/* ============================================================
   Step 3 – Success Panel
   ============================================================ */
.ogb-success-panel {
	text-align: center;
	padding: 32px 20px;
	animation: ogbFadeIn 0.4s ease;
}

.ogb-success-icon svg {
	fill: #2A9D8F;
	display: block;
	margin: 0 auto 16px;
}

.ogb-success-title {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 8px;
}

.ogb-success-sub {
	font-size: 14px;
	color: #666666;
	margin: 0 0 24px;
}

.ogb-success-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ogb-btn-cart-link {
	gap: 6px;
}

.ogb-cart-badge {
	font-size: 12px;
	color: inherit;
	opacity: 0.7;
}

/* ============================================================
   Responsive Stepper Adjustments
   ============================================================ */
@media (max-width: 600px) {
	.ogb-stepper {
		padding: 12px 16px;
	}

	.ogb-step-label {
		font-size: 10px;
	}

	.ogb-step-connector {
		max-width: 30px;
	}

	.ogb-step-actions {
		flex-direction: column-reverse;
	}

	.ogb-btn-primary,
	.ogb-btn-secondary {
		width: 100%;
	}

	.ogb-success-actions {
		flex-direction: column;
	}

	.ogb-btn-cart-link,
	.ogb-btn-checkout-link {
		width: 100%;
		justify-content: center;
	}

	.ogb-products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ============================================================
   Step 3 – Payment: Layout (two-column on desktop)
   ============================================================ */
/* ============================================================
   Step 3 – Payment Layout
   ============================================================ */
#ogb-step-3 {
	gap: 32px;
}

#ogb-step-3 .ogb-payment-layout {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

@media (min-width: 768px) {
	#ogb-step-3 .ogb-payment-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}
}

/* ── Order Summary Card ── */
.ogb-payment-summary {
	background: #ffffff;
	border: 1px solid #f0f0f0;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ogb-payment-summary-title {
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 20px;
	color: #111111;
	letter-spacing: -0.01em;
}

.ogb-summary-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	background: #fafafa;
	border-radius: 12px;
	margin-bottom: 24px;
	border: 1px solid #f5f5f5;
}

.ogb-payment-img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 10px;
	flex-shrink: 0;
}

.ogb-payment-product-name {
	font-weight: 700;
	font-size: 15px;
	color: #111111;
	margin: 0 0 4px;
}

.ogb-payment-unit-price {
	font-size: 14px;
	color: #666666;
	margin: 0;
	font-weight: 600;
}

.ogb-summary-details {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
}

.ogb-summary-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.ogb-summary-item-icon {
	color: #999999;
	margin-top: 2px;
}

.ogb-summary-item-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ogb-summary-label {
	font-size: 12px;
	color: #888888;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ogb-payment-memory-name,
.ogb-payment-message-text,
.ogb-payment-qty {
	font-size: 14px;
	color: #333333;
	font-weight: 600;
}

.ogb-summary-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 20px;
	border-top: 1px solid #f0f0f0;
	font-size: 16px;
	font-weight: 800;
	color: #111111;
}

.ogb-payment-total {
	font-size: 20px;
	color: #1a1a1a;
}

/* ── Premium Payment Form ── */
.ogb-premium-form-row {
	margin-bottom: 24px;
}

.ogb-premium-label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #444444;
	margin-bottom: 8px;
}

.ogb-input-container,
.ogb-card-element-wrapper {
	background: #ffffff;
	border: 2px solid #f0f0f0;
	border-radius: 12px;
	padding: 2px;
	transition: all 0.2s ease;
}

.ogb-premium-input {
	width: 100%;
	padding: 12px 14px;
	border: none;
	background: transparent;
	font-size: 15px;
	color: #111111;
	outline: none;
}

.ogb-card-element-wrapper {
	padding: 14px;
}

.ogb-input-container:focus-within,
.ogb-card-element-wrapper:focus-within {
	border-color: #111111;
	box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.ogb-card-errors {
	color: #e63946;
	font-size: 13px;
	font-weight: 600;
	margin-top: 8px;
	min-height: 18px;
}

.ogb-stripe-secure {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #27ae60;
	font-size: 13px;
	font-weight: 600;
	margin-top: 24px;
}

.ogb-stripe-secure svg {
	color: #27ae60;
}

/* ============================================================
   Payment Error Banner
   ============================================================ */
.ogb-payment-error {
	background: #fff3f3;
	border: 1px solid #f5c6c6;
	border-radius: 8px;
	padding: 12px 16px;
	color: #c0392b;
	font-size: 0.88rem;
}

.ogb-payment-error-message {
	margin: 0;
}

/* ============================================================
   Pay Now button loading spin animation
   ============================================================ */
@keyframes ogb-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

/* ============================================================
   Step 3 mobile
   ============================================================ */
@media (max-width: 599px) {
	.ogb-payment-img {
		width: 50px;
		height: 50px;
	}
}