/* Kodelink NFC Shop
 * Everything is scoped to .kl-nfc. Key visual properties use !important on purpose:
 * the site's Elementor kit / theme styles headings, buttons and inputs globally and
 * would otherwise override these components.
 */

.kl-nfc {
	--kl-ink: #18112E;
	--kl-muted: #54595F;
	--kl-line: #E2DDEE;
	--kl-tint: #F5F3FA;
	--kl-dark: #18112E;
	--kl-primary: #6EC1E4;
	--kl-accent: #61CE70;
	--kl-teal-d: #0C8F86;
	--kl-blue-d: #1567B8;
	--kl-grad-btn: linear-gradient(90deg, var(--kl-teal-d), var(--kl-blue-d));
	--kl-head: 'Epilogue', 'Segoe UI', sans-serif;
	--kl-body: 'Lato', 'Segoe UI', sans-serif;
	--kl-radius: 18px;
}

/* Root: own white surface so the site's gradient body doesn't show through. */
.kl-nfc.kl-nfc-root {
	background: #fff !important;
	color: var(--kl-ink) !important;
	font-family: var(--kl-body) !important;
	font-size: 16px;
	line-height: 1.6;
	padding-bottom: 72px;
	width: 100%;
	position: relative;
	z-index: 0;
	-webkit-font-smoothing: antialiased;
}
.kl-nfc *, .kl-nfc *::before, .kl-nfc *::after { box-sizing: border-box; }
.kl-nfc h1, .kl-nfc h2, .kl-nfc h3 {
	font-family: var(--kl-head) !important;
	color: var(--kl-ink) !important;
	margin: 0 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	line-height: 1.15 !important;
}
.kl-nfc p { margin: 0 0 12px; color: inherit; }
.kl-nfc p:last-child { margin-bottom: 0; }
.kl-nfc a { text-decoration: none; }
.kl-nfc img { max-width: 100%; height: auto; }
.kl-nfc [hidden] { display: none !important; }
.kl-nfc :focus-visible { outline: 3px solid var(--kl-primary) !important; outline-offset: 2px; }

.kl-nfc-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Shared button */
.kl-nfc a.kl-nfc-btn, .kl-nfc .kl-nfc-btn {
	display: inline-flex !important; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 20px !important; border-radius: 10px !important; border: 0 !important;
	background: var(--kl-grad-btn) !important; color: #fff !important;
	font: 700 15px/1 var(--kl-body) !important; text-transform: none !important; letter-spacing: 0 !important;
	box-shadow: none !important; opacity: 1 !important; white-space: nowrap; cursor: pointer;
}
.kl-nfc .kl-nfc-btn.loading { opacity: .6 !important; }
.kl-nfc .added_to_cart { margin-left: 10px; font-weight: 700; color: var(--kl-blue-d) !important; font-size: 14px; }

/* ================= Shop page ================= */
.kl-nfc-shop { padding-top: 48px; }
.kl-nfc-shop__head { margin-bottom: 32px; }
.kl-nfc .kl-nfc-shop__title { font-size: clamp(30px, 4vw, 42px) !important; font-weight: 800 !important; }
.kl-nfc-shop__intro { margin-top: 8px !important; color: var(--kl-muted); font-size: 17px; max-width: 640px; }

.kl-nfc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.kl-nfc-product { background: #fff; border: 1px solid var(--kl-line); border-radius: var(--kl-radius); overflow: hidden; display: flex; flex-direction: column; }
.kl-nfc-product--custom { border: 2px solid var(--kl-dark); }
.kl-nfc-product__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--kl-tint); }
.kl-nfc .kl-nfc-product__img { width: 100% !important; height: 100% !important; object-fit: contain !important; padding: 12px; display: block; border-radius: 0 !important; margin: 0 !important; }
.kl-nfc-badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--kl-ink); font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(24, 17, 46, .1); }
.kl-nfc-product__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.kl-nfc .kl-nfc-product__title { font-size: 18px !important; font-weight: 700 !important; }
.kl-nfc .kl-nfc-product__title a { color: var(--kl-ink) !important; }
.kl-nfc-product__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.kl-nfc-product__price { font-family: var(--kl-head); font-weight: 800; font-size: 18px; color: var(--kl-ink); }
.kl-nfc-product__price del { opacity: .5; font-size: 14px; font-weight: 600; }
.kl-nfc-product__price ins { text-decoration: none; }
.kl-nfc-empty { padding: 32px; background: var(--kl-tint); border-radius: var(--kl-radius); }

.kl-nfc-about { margin-top: 56px; max-width: 760px; color: var(--kl-muted); font-size: 16px; }

/* ================= Product page ================= */
.kl-nfc-pdp { padding-top: 32px; }
.kl-nfc-pdp .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 20px; }
.kl-nfc a.kl-nfc-back { display: inline-block; margin-bottom: 20px; color: var(--kl-muted) !important; font-size: 14px; font-weight: 700; }
.kl-nfc-pdp__grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.kl-nfc-pdp__gallery { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1000px) { .kl-nfc-pdp__gallery { position: sticky; top: 120px; } }
.kl-nfc-pdp__stage { border-radius: var(--kl-radius); overflow: hidden; background: var(--kl-tint); aspect-ratio: 1 / 1; }
.kl-nfc .kl-nfc-pdp__main { width: 100% !important; height: 100% !important; object-fit: contain !important; padding: 16px; display: block; margin: 0 !important; border-radius: 0 !important; }
.kl-nfc-pdp__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.kl-nfc button.kl-nfc-thumb { padding: 0 !important; border: 2px solid transparent !important; border-radius: 12px !important; overflow: hidden; background: var(--kl-tint) !important; cursor: pointer; aspect-ratio: 1; box-shadow: none !important; }
.kl-nfc button.kl-nfc-thumb.is-active { border-color: var(--kl-dark) !important; }
.kl-nfc-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.kl-nfc-pdp__buy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.kl-nfc .kl-nfc-pdp__title { font-size: clamp(28px, 3.2vw, 38px) !important; font-weight: 800 !important; }
.kl-nfc-pdp__price { font: 800 28px var(--kl-head); color: var(--kl-ink); }
.kl-nfc-pdp__price del { opacity: .5; font-size: 20px; }
.kl-nfc-pdp__price ins { text-decoration: none; }
.kl-nfc-pdp__lead { color: var(--kl-muted); font-size: 16px; }
.kl-nfc a.kl-nfc-wa { color: var(--kl-blue-d) !important; font-weight: 700; font-size: 15px; }

/* WooCommerce form inside our layout */
.kl-nfc-pdp form.cart { display: flex !important; flex-direction: column; gap: 18px; margin: 0 !important; padding: 0 !important; }
.kl-nfc-pdp form.cart table.variations,
.kl-nfc-pdp form.cart .reset_variations,
.kl-nfc-pdp .single_variation .woocommerce-variation-price { display: none !important; }
.kl-nfc-pdp .single_variation_wrap { display: flex; flex-direction: column; gap: 14px; }
.kl-nfc-pdp .woocommerce-variation-add-to-cart,
.kl-nfc-pdp form.cart:not(.variations_form) { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.kl-nfc-pdp form.cart .kl-nfc-box,
.kl-nfc-pdp form.cart .kl-nfc-error { flex: 1 1 100%; }
.kl-nfc-pdp .quantity { margin: 0 !important; float: none !important; }
.kl-nfc-pdp .quantity .qty {
	width: 84px !important; min-height: 52px !important; border: 1px solid #CFC8E0 !important; border-radius: 10px !important;
	text-align: center; font: 700 17px var(--kl-body) !important; background: #fff !important; color: var(--kl-ink) !important; padding: 0 !important;
}
.kl-nfc-pdp button.single_add_to_cart_button {
	flex: 1 1 200px; min-height: 52px !important; border: 0 !important; border-radius: 10px !important;
	background: var(--kl-grad-btn) !important; color: #fff !important; opacity: 1 !important;
	font: 700 17px var(--kl-body) !important; text-transform: none !important; letter-spacing: 0 !important;
	padding: 0 24px !important; cursor: pointer; box-shadow: none !important; float: none !important;
}
.kl-nfc-pdp button.single_add_to_cart_button.disabled { opacity: .45 !important; cursor: not-allowed; }

/* Option cards (Customize Your Card) */
.kl-nfc-options { border: 0 !important; margin: 0 !important; padding: 0 !important; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.kl-nfc-options legend { font-weight: 700; font-size: 15px; margin-bottom: 10px !important; padding: 0 !important; color: var(--kl-ink); }
.kl-nfc button.kl-nfc-option {
	display: flex !important; align-items: center; gap: 14px; width: 100%;
	padding: 16px 18px !important; border-radius: 14px !important; cursor: pointer; text-align: left;
	border: 2px solid var(--kl-line) !important; background: #fff !important; color: var(--kl-ink) !important;
	font: 400 15px/1.4 var(--kl-body) !important; text-transform: none !important; letter-spacing: 0 !important;
	box-shadow: none !important; opacity: 1 !important;
}
.kl-nfc button.kl-nfc-option.is-active { border-color: var(--kl-dark) !important; background: var(--kl-tint) !important; }
.kl-nfc-option__radio { flex: 0 0 20px; height: 20px; border-radius: 50%; border: 2px solid #A9A1C2; background: #fff; }
.kl-nfc-option.is-active .kl-nfc-option__radio { border: 6px solid var(--kl-dark); }
.kl-nfc-option__body { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.kl-nfc-option__name { font: 700 16px var(--kl-head); }
.kl-nfc-option__desc { font-size: 14px; color: var(--kl-muted); }
.kl-nfc-option__price { font-weight: 700; white-space: nowrap; }

/* Boxes: upload, card details, notes */
.kl-nfc-box { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 16px; background: var(--kl-tint); }
.kl-nfc-box__title { font: 700 16px var(--kl-head); color: var(--kl-ink); }
.kl-nfc-only, .kl-nfc-type { display: flex; flex-direction: column; gap: 14px; }
.kl-nfc-note { margin: 0 !important; font-size: 14px; color: var(--kl-muted); }
.kl-nfc-field { display: flex !important; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; margin: 0 !important; color: var(--kl-ink) !important; }
.kl-nfc-field__hint { font-weight: 400; color: var(--kl-muted); font-size: 13px; }
.kl-nfc-field input[type=text], .kl-nfc-field input[type=url], .kl-nfc-field input[type=tel], .kl-nfc-field input[type=password],
.kl-nfc-field select, .kl-nfc-field textarea {
	width: 100% !important; min-height: 46px; padding: 10px 14px !important; border-radius: 10px !important;
	border: 1px solid #CFC8E0 !important; background: #fff !important; color: var(--kl-ink) !important;
	font: 400 15px var(--kl-body) !important; box-shadow: none !important;
}
.kl-nfc-field input[type=file] {
	width: 100% !important; padding: 14px !important; border-radius: 10px !important;
	border: 2px dashed #8975C6 !important; background: #fff !important; color: var(--kl-ink) !important; font: 400 14px var(--kl-body) !important;
}

.kl-nfc .kl-nfc-btn--outline { background: #fff !important; color: var(--kl-ink) !important; border: 2px solid var(--kl-dark) !important; align-self: flex-start; }
.kl-nfc-picked { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--kl-line); }
.kl-nfc-picked img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; }
.kl-nfc-picked__name { font-weight: 700; }

/* Design popup */
.kl-nfc.kl-nfc-modal {
	width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0;
	border-radius: 20px; background: #fff; color: var(--kl-ink); font-family: var(--kl-body);
	box-shadow: 0 30px 80px rgba(6, 7, 29, .35); overflow: hidden;
}
.kl-nfc.kl-nfc-modal[open] { display: flex; flex-direction: column; }
.kl-nfc-modal::backdrop { background: rgba(6, 7, 29, .6); }
.kl-nfc-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--kl-line); }
.kl-nfc .kl-nfc-modal__head h2 { font-size: 22px !important; }
.kl-nfc button.kl-nfc-modal__close {
	width: 44px; height: 44px; border-radius: 50% !important; border: 0 !important; background: var(--kl-tint) !important;
	color: var(--kl-ink) !important; font-size: 26px !important; line-height: 1 !important; cursor: pointer; padding: 0 !important; box-shadow: none !important;
}
.kl-nfc-modal__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; padding: 24px; overflow-y: auto; }
.kl-nfc button.kl-nfc-design {
	display: flex !important; flex-direction: column; gap: 8px; padding: 8px !important; text-align: left;
	border: 2px solid var(--kl-line) !important; border-radius: 14px !important; background: #fff !important;
	color: var(--kl-ink) !important; font: 700 14px var(--kl-body) !important; cursor: pointer; box-shadow: none !important; text-transform: none !important;
}
.kl-nfc button.kl-nfc-design.is-active { border-color: var(--kl-dark) !important; background: var(--kl-tint) !important; }
.kl-nfc-design img { width: 100%; aspect-ratio: 85.6 / 54; object-fit: cover; border-radius: 8px; display: block; }

.kl-nfc-error { margin: 0 !important; padding: 12px 14px; border-radius: 10px; background: #FBE9EC; color: #9B1C31; font-weight: 700; }

.kl-nfc-desc { margin-top: 56px; max-width: 760px; color: var(--kl-muted); }
.kl-nfc .kl-nfc-desc h2 { font-size: 22px !important; margin-bottom: 12px !important; }

@media (max-width: 640px) {
	.kl-nfc-shop { padding-top: 32px; }
	.kl-nfc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.kl-nfc-product__body { padding: 12px; }
	.kl-nfc .kl-nfc-product__title { font-size: 15px !important; }
	.kl-nfc-product__foot .kl-nfc-btn { width: 100%; }
	.kl-nfc-pdp__grid { gap: 28px; }
}
