/* Nudra Gift System — front styles (inherits theme CSS variables with fallbacks) */

.ngs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: 0; border-radius: 999px; padding: 12px 24px; min-height: 46px;
	font-size: 14.5px; font-weight: 700; cursor: pointer; line-height: 1.2;
	transition: transform .15s, opacity .2s;
	font-family: inherit;
}
.ngs-btn:active { transform: scale(.96); }
.ngs-btn-block { width: 100%; }
.ngs-btn-gold { background: linear-gradient(135deg, var(--nudra-gold, #CFA24A), var(--nudra-gold-d, #B8872E)); color: #fff !important; box-shadow: 0 6px 18px rgba(184,135,46,.4); }
.ngs-btn-dark { background: var(--nudra-ink, #151515); color: #fff !important; }
.ngs-btn-ghost { background: transparent; border: 1.5px solid currentColor; color: inherit !important; }
.ngs-btn-wa { background: #1FAF53; color: #fff !important; box-shadow: 0 6px 18px rgba(31,175,83,.35); }

/* Checkout: gift section */
.ngs-gift-section {
	background: #fff; border: 1px solid var(--nudra-line, #E8DDC8);
	border-radius: 18px; padding: 16px; margin: 16px 0;
	box-shadow: 0 3px 12px rgba(21,21,21,.05);
}
.ngs-gift-toggle { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; cursor: pointer; }
.ngs-gift-toggle input {
	-webkit-appearance: none;
	appearance: none;
	width: 46px; height: 26px;
	border-radius: 13px;
	background: #d8d2c6;
	position: relative;
	cursor: pointer;
	transition: background .2s;
	flex: 0 0 46px;
	margin: 0;
}
.ngs-gift-toggle input::after {
	content: "";
	position: absolute;
	top: 3px;
	inset-inline-start: 3px;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.25);
	transition: transform .2s;
}
.ngs-gift-toggle input:checked { background: linear-gradient(135deg, var(--nudra-gold, #CFA24A), var(--nudra-gold-d, #B8872E)); }
.ngs-gift-toggle input:checked::after { transform: translateX(-20px); }
html[dir="ltr"] .ngs-gift-toggle input:checked::after { transform: translateX(20px); }
.ngs-gift-fields { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--nudra-line, #E8DDC8); }
.ngs-hide-price { font-weight: 600; font-size: 13.5px; margin-top: 8px; }

/* Checkout: payment box */
.ngs-pay-box { display: grid; gap: 14px; }
.ngs-pay-desc { color: var(--nudra-gray, #8D867C); font-size: 13.5px; }
.ngs-plan, .ngs-methods { border: 1px solid var(--nudra-line, #E8DDC8); border-radius: 14px; padding: 12px 14px; margin: 0; }
.ngs-plan legend, .ngs-methods legend { font-weight: 800; font-size: 13.5px; padding: 0 6px; }
.ngs-radio {
	display: flex; align-items: center; gap: 9px;
	padding: 11px 12px; font-size: 13.5px; cursor: pointer; flex-wrap: wrap;
	background: #fff; border: 1.5px solid var(--nudra-line, #E8DDC8);
	border-radius: 12px; margin: 7px 0; transition: border-color .15s;
}
.ngs-radio:has(input:checked) { border-color: var(--nudra-gold, #CFA24A); background: rgba(207,162,74,.05); }
.ngs-radio input { accent-color: var(--nudra-gold, #CFA24A); width: 18px; height: 18px; margin: 0; }
.ngs-method-number {
	background: var(--nudra-beige, #F3EBDD); color: var(--nudra-gold-d, #B8872E);
	border-radius: 8px; padding: 3px 10px; font-weight: 800; font-size: 13px;
	margin-inline-start: auto; user-select: all;
}

/* Proof upload */
.ngs-proof-upload {
	border: 2px dashed var(--nudra-gold, #CFA24A); border-radius: 14px;
	padding: 14px; background: rgba(207,162,74,.06); text-align: center;
}
.ngs-proof-title { font-weight: 800; margin: 0 0 8px; font-size: 14px; }
.ngs-proof-title small { color: var(--nudra-gray, #8D867C); font-weight: 500; }
.ngs-proof-upload input[type="file"] { max-width: 100%; font-size: 13px; }
.ngs-proof-upload input[type="file"]::file-selector-button {
	background: linear-gradient(135deg, var(--nudra-gold, #CFA24A), var(--nudra-gold-d, #B8872E));
	color: #fff; border: 0; border-radius: 999px;
	padding: 9px 18px; font-weight: 700; font-family: inherit;
	cursor: pointer; margin-inline-end: 10px;
}
.ngs-box-placeholder { font-size: 38px; line-height: 1; padding: 8px 0; }
.ngs-proof-status { font-size: 13px; margin: 8px 0 0; min-height: 1.2em; }
.ngs-proof-status.is-ok { color: #1d6b3f; font-weight: 700; }
.ngs-proof-status.is-error { color: #8f1f1f; font-weight: 700; }
.ngs-proof-hint { font-size: 11.5px; color: var(--nudra-gray, #8D867C); margin: 6px 0 0; }
.ngs-proof-after { margin: 16px 0; }
.ngs-proof-ok { color: #1d6b3f; font-weight: 700; }

/* Success screen */
.ngs-success {
	background: #fff; border: 1px solid var(--nudra-line, #E8DDC8);
	border-radius: 22px; padding: 30px 20px; text-align: center;
	box-shadow: 0 6px 24px rgba(21,21,21,.07); margin-bottom: 22px;
	display: grid; gap: 10px; justify-items: center;
}
.ngs-success-icon {
	width: 74px; height: 74px; border-radius: 50%;
	background: linear-gradient(135deg, var(--nudra-gold, #CFA24A), var(--nudra-gold-d, #B8872E));
	color: #fff; font-size: 36px; font-weight: 800;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 30px rgba(184,135,46,.45);
}
.ngs-success-title { margin: 4px 0 0; font-size: 21px; font-weight: 800; }
.ngs-success-number { margin: 0; color: var(--nudra-gray, #8D867C); }
.ngs-success-status {
	background: #fdf3d7; color: #8a6116; font-weight: 800; font-size: 12.5px;
	border-radius: 999px; padding: 5px 16px;
}
.ngs-success-wa-note { font-size: 13px; color: var(--nudra-gray, #8D867C); margin: 6px 0 0; }
.ngs-success-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.ngs-success .ngs-proof-upload { width: 100%; }

/* Cart packaging hint */
.ngs-cart-pack-hint {
	background: var(--nudra-beige, #F3EBDD); border-radius: 14px;
	padding: 14px; text-align: center; margin: 12px 0;
}
.ngs-cart-pack-hint p { margin: 0 0 10px; font-weight: 800; }

/* ---------------------------------------------------------- Gift builder */
.ngs-builder { display: grid; gap: 18px; }

.ngs-steps {
	display: flex; justify-content: space-between; gap: 4px;
	list-style: none; margin: 0; padding: 0; counter-reset: step;
}
.ngs-steps li {
	flex: 1; text-align: center; font-size: 11px; font-weight: 700;
	color: var(--nudra-gray, #8D867C); position: relative; padding-top: 34px;
}
.ngs-steps li::before {
	counter-increment: step; content: counter(step);
	position: absolute; top: 0; left: 50%; transform: translateX(-50%);
	width: 28px; height: 28px; border-radius: 50%;
	background: #fff; border: 2px solid var(--nudra-line, #E8DDC8);
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; transition: all .2s;
}
.ngs-steps li.is-active { color: var(--nudra-gold-d, #B8872E); }
.ngs-steps li.is-active::before { border-color: var(--nudra-gold, #CFA24A); background: var(--nudra-gold, #CFA24A); color: #fff; }
.ngs-steps li.is-done::before { content: "✓"; border-color: var(--nudra-gold, #CFA24A); color: var(--nudra-gold-d, #B8872E); }

.ngs-step { display: none; }
.ngs-step.is-active { display: block; animation: ngs-in .3s ease; }
@keyframes ngs-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ngs-step-title { font-size: 17px; font-weight: 800; margin: 0 0 14px; }

.ngs-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ngs-option input { position: absolute; opacity: 0; }
.ngs-option-card {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	background: #fff; border: 2px solid var(--nudra-line, #E8DDC8);
	border-radius: 16px; padding: 14px 10px; text-align: center;
	cursor: pointer; transition: all .18s; height: 100%;
}
.ngs-option-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.ngs-option-card strong { font-size: 13.5px; }
.ngs-option-card em { font-style: normal; color: var(--nudra-gold-d, #B8872E); font-weight: 800; font-size: 13px; }
.ngs-option input:checked + .ngs-option-card {
	border-color: var(--nudra-gold, #CFA24A);
	box-shadow: 0 0 0 3px rgba(207,162,74,.18);
	background: rgba(207,162,74,.05);
}

.ngs-builder-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; scrollbar-width: none; }
.ngs-builder-cats::-webkit-scrollbar { display: none; }
.ngs-cat-chip {
	flex: 0 0 auto; background: #fff; border: 1px solid var(--nudra-line, #E8DDC8);
	border-radius: 999px; padding: 7px 16px; font-size: 12.5px; font-weight: 700;
	white-space: nowrap;
}
.ngs-cat-chip.is-active { background: var(--nudra-ink, #151515); color: var(--nudra-gold, #CFA24A); border-color: var(--nudra-ink, #151515); }

.ngs-builder-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.ngs-bp-card {
	background: #fff; border: 2px solid var(--nudra-line, #E8DDC8);
	border-radius: 16px; padding: 10px; display: flex; flex-direction: column;
	align-items: center; gap: 5px; text-align: center; transition: border-color .18s;
}
.ngs-bp-card.is-selected { border-color: var(--nudra-gold, #CFA24A); box-shadow: 0 0 0 3px rgba(207,162,74,.15); }
.ngs-bp-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--nudra-beige, #F3EBDD); }
.ngs-bp-name { font-size: 12px; font-weight: 700; line-height: 1.4; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ngs-bp-price { font-size: 12.5px; color: var(--nudra-gold-d, #B8872E); font-weight: 800; }
.ngs-bp-qty { display: flex; align-items: center; gap: 12px; }
.ngs-bp-qty button {
	width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--nudra-line, #E8DDC8);
	background: #fff; font-size: 16px; font-weight: 700; line-height: 1;
}
.ngs-bp-qty .ngs-bp-plus { background: var(--nudra-ink, #151515); color: var(--nudra-gold, #CFA24A); border-color: var(--nudra-ink, #151515); }
.ngs-bp-count { min-width: 18px; font-size: 14px; }

#ngs-builder-message {
	width: 100%; border: 1px solid var(--nudra-line, #E8DDC8); border-radius: 14px;
	padding: 12px 14px; font-family: inherit; font-size: 14px; resize: vertical;
}
.ngs-hint { font-size: 12px; color: var(--nudra-gray, #8D867C); }

.ngs-preview-card {
	background: #fff; border: 1px solid var(--nudra-line, #E8DDC8);
	border-radius: 18px; padding: 18px; margin-bottom: 14px;
	box-shadow: 0 3px 12px rgba(21,21,21,.05);
}
.ngs-preview-card h3 { margin: 0 0 10px; font-size: 16px; }
.ngs-prev-line { margin: 6px 0; font-size: 13.5px; }
.ngs-prev-items { margin: 8px 0; padding: 10px; background: var(--nudra-beige, #F3EBDD); border-radius: 12px; font-size: 13px; display: grid; gap: 4px; }
.ngs-prev-total { font-weight: 800; color: var(--nudra-gold-d, #B8872E); font-size: 15px; margin: 10px 0 2px; }

.ngs-builder-nav { display: flex; justify-content: space-between; gap: 10px; }
.ngs-builder-nav .ngs-btn { flex: 1; }

/* Packaging ideas page */
.ngs-pack-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 6px; scrollbar-width: none; }
.ngs-pack-tabs::-webkit-scrollbar { display: none; }
.ngs-pack-tab {
	flex: 0 0 auto; background: #fff; border: 1px solid var(--nudra-line, #E8DDC8);
	border-radius: 999px; padding: 8px 18px; font-size: 13px; font-weight: 700;
}
.ngs-pack-tab.is-active { background: var(--nudra-ink, #151515); color: var(--nudra-gold, #CFA24A); border-color: var(--nudra-ink, #151515); }
.ngs-pack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ngs-pack-card {
	background: #fff; border: 1px solid var(--nudra-line, #E8DDC8); border-radius: 18px;
	padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 6px;
	box-shadow: 0 3px 12px rgba(21,21,21,.05);
}
.ngs-pack-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.ngs-pack-placeholder { font-size: 44px; display: block; padding: 20px 0; background: var(--nudra-beige, #F3EBDD); border-radius: 12px; }
.ngs-pack-card h3 { font-size: 13.5px; margin: 0; font-weight: 800; }
.ngs-pack-price { color: var(--nudra-gold-d, #B8872E); font-weight: 800; margin: 0; font-size: 13.5px; }
.ngs-pack-card .ngs-btn { margin-top: auto; padding: 9px 14px; min-height: 40px; font-size: 13px; }

/* Review image */
.ngs-review-image-field { margin: 12px 0; }
.ngs-review-image-field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.ngs-review-photo { border-radius: 12px; }

@media (min-width: 768px) {
	.ngs-options { grid-template-columns: repeat(4, 1fr); }
	.ngs-builder-products { grid-template-columns: repeat(4, 1fr); }
	.ngs-pack-grid { grid-template-columns: repeat(3, 1fr); }
}
