/* =========================================================
   Nautica Gift Card — Frontend CSS
   ========================================================= */

/* ── Campi prodotto ── */
.nws-gc-fields {
	margin: 20px 0;
	padding: 20px 24px;
	background: #f8faff;
	border: 1px solid #dbe8ff;
	border-radius: 12px;
}
.nws-gc-section-title {
	font-weight: 600;
	font-size: 14px;
	color: #1e293b;
	margin: 0 0 12px;
}
.nws-gc-field {
	margin-bottom: 14px;
}
.nws-gc-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 5px;
}
.nws-gc-field small {
	display: block;
	font-size: 11px;
	color: #94a3b8;
	margin-top: 4px;
}
.nws-gc-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	transition: border-color .15s;
	box-sizing: border-box;
}
.nws-gc-input:focus {
	outline: none;
	border-color: #0d3ea3;
	box-shadow: 0 0 0 3px rgba(13,62,163,.1);
}
.nws-gc-textarea {
	resize: vertical;
	min-height: 72px;
}
/* ── Preset importi ── */
.nws-gc-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}
.nws-gc-preset-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 22px;
	border: 2px solid #d1d5db;
	border-radius: 999px;
	background: #fff;
	color: #1e293b;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
	font-family: inherit;
}
.nws-gc-preset-btn:hover {
	border-color: #0d3ea3;
	color: #0d3ea3;
}
.nws-gc-preset-btn.is-active {
	border-color: #0d3ea3;
	background: #0d3ea3;
	color: #fff;
	box-shadow: 0 2px 8px rgba(13,62,163,.2);
}
.nws-gc-preset-btn--custom { font-size: 14px; }
.nws-gc-preset-btn--custom.is-active { background: #1e293b; border-color: #1e293b; }

/* ── Input importo personalizzato ── */
.nws-gc-custom-wrap { margin-bottom: 4px; }
.nws-gc-amount-input-row {
	display: flex;
	align-items: center;
	gap: 0;
}
.nws-gc-amount-wrap {
	display: flex;
	align-items: center;
	gap: 0;
}
.nws-gc-currency {
	padding: 10px 12px;
	background: #e8ecf0;
	border: 1px solid #d1d5db;
	border-right: none;
	border-radius: 8px 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: #475569;
}
.nws-gc-amount-input-row .nws-gc-input,
.nws-gc-amount-wrap .nws-gc-input {
	border-radius: 0 8px 8px 0;
}
.nws-gc-input--custom {
	max-width: 200px;
}
.nws-gc-divider {
	border: none;
	border-top: 1px solid #e2e8f0;
	margin: 16px 0;
}
.nws-gc-toggle-label {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	margin: 0 !important;
}
.nws-gc-checkbox {
	width: 18px !important;
	height: 18px !important;
	margin-top: 2px;
	flex-shrink: 0;
}
.nws-gc-toggle-text {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

/* ── Carrello/Checkout ── */
.nws-gc-cart-row th,
.nws-gc-cart-row td {
	padding: 12px 0 !important;
	vertical-align: middle;
}
.nws-gc-apply-form {
	display: flex;
	gap: 8px;
	align-items: center;
}
.nws-gc-apply-form .nws-gc-input {
	max-width: 200px;
}
.nws-gc-btn {
	white-space: nowrap;
}
.nws-gc-message {
	margin-top: 8px;
	font-size: 13px;
}
.nws-gc-message--success { color: #16a34a; }
.nws-gc-message--error   { color: #dc2626; }
.nws-gc-applied {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.nws-gc-applied__code {
	font-weight: 700;
	font-size: 13px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
	padding: 3px 10px;
	border-radius: 20px;
	letter-spacing: .06em;
}
.nws-gc-applied__balance {
	font-size: 13px;
	color: #64748b;
}
.nws-gc-remove {
	background: transparent;
	border: 1px solid #fca5a5;
	border-radius: 6px;
	color: #dc2626;
	font-size: 12px;
	padding: 3px 10px;
	cursor: pointer;
	transition: all .15s;
}
.nws-gc-remove:hover { background: #fff5f5; }

/* ── Area utenti ── */
.nws-gc-account__title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 24px;
}
.nws-gc-account__section {
	margin-bottom: 36px;
}
.nws-gc-account__section h3 {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e2e8f0;
}
.nws-gc-account__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}
.nws-gc-empty {
	color: #94a3b8;
	font-size: 14px;
}

/* ── Card gift card ── */
.nws-gc-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px 18px;
	transition: box-shadow .2s;
}
.nws-gc-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.nws-gc-card--void {
	opacity: .6;
}
.nws-gc-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}
.nws-gc-card__code {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	color: #0d3ea3;
	background: #eff6ff;
	padding: 3px 10px;
	border-radius: 20px;
}
.nws-gc-card__status {
	font-size: 12px;
	font-weight: 600;
}
.nws-gc-card__balance-bar {
	height: 6px;
	background: #e2e8f0;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 8px;
}
.nws-gc-card__balance-fill {
	height: 100%;
	background: #0d3ea3;
	border-radius: 3px;
	transition: width .4s;
}
.nws-gc-card__amounts {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	margin-bottom: 8px;
}
.nws-gc-card__balance-label { color: #1e293b; }
.nws-gc-card__original { color: #94a3b8; }
.nws-gc-card__meta {
	font-size: 12px;
	color: #64748b;
	margin-top: 6px;
}
.nws-gc-card__date {
	font-size: 11px;
	color: #94a3b8;
	margin-top: 6px;
}
