/* Hecki Label Konfigurator – Frontend */
.hlc {
	--hlc-accent: #a87b4f;
	--hlc-btn: #4a9be4;
	--hlc-ink: #1f2a37;
	--hlc-muted: #6b7280;
	--hlc-line: #e8dccb;
	--hlc-card: #fffdfa;
	--hlc-soft: #f6efe5;
	--hlc-radius: 26px;
	color: var(--hlc-ink);
	font-size: 16px;
	line-height: 1.5;
	padding: 56px 0 24px;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
.hlc *, .hlc *::before, .hlc *::after { box-sizing: border-box; }
.hlc [hidden] { display: none !important; }
.hlc button { font: inherit; cursor: pointer; }

/* Head */
.hlc-head { text-align: center; max-width: 760px; margin: 0 auto 44px; padding: 0 16px; }
.hlc-eyebrow { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--hlc-accent); margin-bottom: 8px; }
.hlc-eyebrow__line { width: 58px; height: 1px; background: currentColor; opacity: .55; }
.hlc-eyebrow__beans { width: 28px; height: 22px; opacity: .85; }
.hlc-kicker { color: var(--hlc-accent); font-weight: 600; font-size: 17px; margin: 0 0 14px; }
.hlc .hlc-title { font-family: var(--hlc-heading-font, inherit); text-transform: uppercase; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.12; letter-spacing: .02em; margin: 0 0 22px; color: var(--hlc-ink); font-weight: 500; }
.hlc-intro { color: #4b5563; font-size: 15px; margin: 0 auto; max-width: 600px; }

/* Card */
.hlc-card { background: var(--hlc-card); border: 1px solid var(--hlc-line); border-radius: var(--hlc-radius); padding: 60px 70px; box-shadow: 0 30px 60px -40px rgba(80, 52, 22, .35); }
.hlc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 0 56px; align-items: start; }
.hlc-steps { padding-right: 56px; border-right: 1px solid var(--hlc-line); }
.hlc-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; }

/* Steps */
.hlc-step { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--hlc-line); }
.hlc-step--last { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.hlc .hlc-step__title { display: flex; align-items: center; gap: 18px; font-family: inherit; font-size: 21px; font-weight: 600; margin: 0 0 22px; color: var(--hlc-ink); text-transform: none; letter-spacing: 0; line-height: 1.3; }
.hlc-num { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--hlc-accent); color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }

.hlc-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.hlc-opt { position: relative; display: flex; align-items: center; gap: 16px; min-height: 100px; padding: 18px 26px 18px 38px; border: 1.5px solid var(--hlc-line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; margin: 0; }
.hlc-opt:hover { border-color: color-mix(in srgb, var(--hlc-accent) 55%, #fff); }
.hlc-opt input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.hlc-opt__dot { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #9ca3af; display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s; }
.hlc-opt__dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--hlc-accent); transform: scale(0); transition: transform .2s; }
.hlc-opt__label { font-weight: 600; font-size: 17px; line-height: 1.35; }
.hlc-opt__label small { display: block; font-weight: 400; font-size: 15px; color: #374151; margin-top: 2px; }
.hlc-opt:has(input:checked) { border-color: var(--hlc-accent); background: #fffcf8; box-shadow: 0 6px 18px -12px rgba(120, 80, 40, .45); }
.hlc-opt:has(input:checked) .hlc-opt__dot { border-color: var(--hlc-accent); }
.hlc-opt:has(input:checked) .hlc-opt__dot::after { transform: scale(1); }
.hlc-opt.is-checked { border-color: var(--hlc-accent); }
.hlc-opt.is-checked .hlc-opt__dot { border-color: var(--hlc-accent); }
.hlc-opt.is-checked .hlc-opt__dot::after { transform: scale(1); }
.hlc-opt input:focus-visible ~ .hlc-opt__dot { outline: 2px solid var(--hlc-accent); outline-offset: 3px; }
.hlc-opt--wide { margin-top: 16px; min-height: 100px; }

/* Upload */
.hlc-drop { position: relative; display: flex; align-items: center; gap: 28px; min-height: 100px; padding: 18px 34px; border: 1.5px dashed #d6c3a9; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; outline: none; }
.hlc-drop:hover, .hlc-drop:focus-visible, .hlc-drop.is-over { border-color: var(--hlc-accent); background: #fffaf3; }
.hlc-drop.is-done { border-style: solid; border-color: var(--hlc-accent); }
.hlc-drop.is-error { border-color: #dc2626; }
.hlc-drop__icon { flex: 0 0 64px; width: 64px; height: 48px; color: var(--hlc-accent); }
.hlc-drop.is-done .hlc-drop__icon { display: none; }
.hlc-drop__text { font-size: 17px; color: #374151; }
.hlc-drop__text strong { font-weight: 600; color: var(--hlc-ink); }
.hlc-drop__text small { display: block; font-size: 14px; color: var(--hlc-muted); margin-top: 6px; }
.hlc-drop__file { display: flex; align-items: center; gap: 16px; width: 100%; min-width: 0; }
.hlc-drop__thumb { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 8px; background: var(--hlc-soft) center/contain no-repeat; border: 1px solid var(--hlc-line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--hlc-accent); }
.hlc-drop__meta { flex: 1; min-width: 0; }
.hlc-drop__meta strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.hlc-drop__meta small { color: var(--hlc-muted); font-size: 13px; }
.hlc-drop__remove { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hlc-line); background: #fff; color: #6b7280; font-size: 20px; line-height: 1; padding: 0; }
.hlc-drop__remove:hover { color: #dc2626; border-color: #fca5a5; }
.hlc-progress { position: absolute; left: 16px; right: 16px; bottom: 10px; height: 4px; border-radius: 4px; background: var(--hlc-soft); overflow: hidden; }
.hlc-progress span { display: block; height: 100%; width: 0; background: var(--hlc-accent); transition: width .2s; }

/* Qty */
.hlc-qty-row { display: flex; align-items: center; gap: 16px; }
.hlc-qty { display: inline-flex; align-items: stretch; height: 54px; border: 1px solid var(--hlc-line); border-radius: 8px; background: #fff; overflow: hidden; }
.hlc-qty button { width: 58px; border: 0; background: #fff; font-size: 20px; color: var(--hlc-ink); padding: 0; transition: background .15s; }
.hlc-qty button:hover { background: var(--hlc-soft); }
.hlc-qty button:disabled { color: #c7c7c7; cursor: not-allowed; background: #fff; }
.hlc .hlc-qty input { width: 104px; height: 100%; border: 0; border-left: 1px solid var(--hlc-line); border-right: 1px solid var(--hlc-line); border-radius: 0; text-align: center; font-size: 22px; padding: 0; margin: 0; background: #fff; color: var(--hlc-ink); -moz-appearance: textfield; box-shadow: none; }
.hlc .hlc-qty input::-webkit-outer-spin-button, .hlc .hlc-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hlc-qty.is-invalid { border-color: #dc2626; }
.hlc-qty-unit { font-size: 17px; color: #374151; }
.hlc-note { font-size: 14px; color: var(--hlc-muted); margin: 14px 0 0; }

/* Preview */
.hlc-preview { border: 1px solid var(--hlc-line); border-radius: 16px; background: linear-gradient(180deg, #fbf7f1 0%, #f2e8db 100%); overflow: hidden; }
.hlc-preview__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--hlc-line); background: rgba(255, 255, 255, .6); }
.hlc-preview__live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #16a34a; text-transform: uppercase; letter-spacing: .06em; }
.hlc-preview__live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: hlc-pulse 1.8s infinite; }
@keyframes hlc-pulse { 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hlc-preview__stage { padding: 22px 26px 18px; display: flex; justify-content: center; }
.hlc-preview__bag { position: relative; width: 100%; max-width: 260px; aspect-ratio: 4 / 5; transition: opacity .25s; }
.hlc-preview__bag.is-switching { opacity: .35; }
.hlc-preview__bag > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.hlc-preview__label { position: absolute; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 3px; }
.hlc-preview__label::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, rgba(0,0,0,.10) 0%, rgba(255,255,255,0) 18%, rgba(255,255,255,.12) 45%, rgba(255,255,255,0) 60%, rgba(0,0,0,.12) 100%); }
.hlc-preview__label img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; animation: hlc-in .35s ease; }
@keyframes hlc-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.hlc-preview__placeholder { width: 100%; height: 100%; border: 1.5px dashed rgba(60, 40, 20, .45); border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; color: #2b2017; font-family: var(--hlc-heading-font, inherit); padding: 6px; }
.hlc-preview__placeholder b { font-size: clamp(14px, 1.7vw, 22px); line-height: 1.05; letter-spacing: .04em; font-weight: 600; }
.hlc-preview__placeholder span { font-size: 11px; line-height: 1.3; opacity: .8; }
.hlc-preview__bag.is-dark .hlc-preview__placeholder { color: #f2e6d6; border-color: rgba(255, 240, 220, .5); }
.hlc-preview__placeholder.is-pdf, .hlc-preview__placeholder.is-design { border-style: solid; background: rgba(255, 255, 255, .85); color: #2b2017; }
.hlc-preview__bag.is-dark .hlc-preview__placeholder.is-pdf, .hlc-preview__bag.is-dark .hlc-preview__placeholder.is-design { background: rgba(255, 255, 255, .92); color: #2b2017; }

/* Summary */
.hlc-summary { border: 1px solid var(--hlc-line); border-radius: 16px; background: #fff; padding: 26px 28px 22px; }
.hlc .hlc-summary__title { font-family: inherit; font-size: 21px; font-weight: 600; margin: 0 0 18px; text-transform: none; letter-spacing: 0; color: var(--hlc-ink); }
.hlc-summary__list { list-style: none; margin: 0; padding: 0; }
.hlc-summary__list li { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 14px; padding: 0; }
.hlc-summary__list li::before { display: none; }
.hlc-ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--hlc-soft); color: var(--hlc-accent); display: inline-flex; align-items: center; justify-content: center; }
.hlc-ico svg { width: 22px; height: 22px; }
.hlc-summary__list strong { display: block; font-weight: 600; font-size: 16px; }
.hlc-summary__list span:not(.hlc-ico) { display: block; color: #374151; font-size: 15px; word-break: break-word; }
.hlc-price { border-top: 1px solid var(--hlc-line); margin-top: 6px; padding-top: 14px; }
.hlc-price__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hlc-price__row > span:first-child { color: #374151; font-size: 15px; }
.hlc-price__row > span:first-child strong { color: var(--hlc-ink); font-size: 17px; }
.hlc-price__unit { font-size: 34px; font-weight: 700; color: var(--hlc-ink); line-height: 1.1; }
.hlc-price__sub { text-align: right; font-size: 13px; color: var(--hlc-muted); margin-bottom: 8px; }
.hlc-price__fee { font-size: 14px; margin-bottom: 6px; }
.hlc-price__fee span:last-child { font-weight: 600; }
.hlc-price__total span:last-child { font-size: 26px; font-weight: 700; }

/* Actions */
.hlc-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hlc .hlc-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 12px 24px; border: 0; border-radius: 8px; background: var(--hlc-btn); color: #fff; font-size: 17px; font-weight: 600; text-transform: none; letter-spacing: 0; transition: filter .2s, transform .1s, opacity .2s; box-shadow: 0 10px 22px -14px var(--hlc-btn); }
.hlc .hlc-btn:hover { filter: brightness(.94); color: #fff; }
.hlc .hlc-btn:active { transform: translateY(1px); }
.hlc .hlc-btn svg { width: 24px; height: 24px; }
.hlc .hlc-btn.is-loading { opacity: .7; pointer-events: none; }
.hlc .hlc-btn.is-loading svg { animation: hlc-spin 1s linear infinite; }
@keyframes hlc-spin { to { transform: rotate(360deg); } }
.hlc .hlc-link { background: none; border: 0; padding: 4px; color: var(--hlc-btn); font-size: 17px; text-decoration: none; }
.hlc .hlc-link:hover { text-decoration: underline; background: none; color: var(--hlc-btn); }
.hlc-msg { width: 100%; padding: 12px 14px; border-radius: 8px; font-size: 14px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.hlc-msg.is-ok { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

/* Modal */
.hlc-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hlc-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 14, 8, .55); backdrop-filter: blur(2px); }
.hlc-modal__box { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; background: #fffdfa; border-radius: 20px; padding: 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); animation: hlc-in .25s ease; }
.hlc .hlc-modal__x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hlc-line); background: #fff; font-size: 22px; line-height: 1; padding: 0; color: #374151; }
.hlc .hlc-modal__title { font-family: inherit; font-size: 24px; font-weight: 600; margin: 0 0 6px; text-transform: none; letter-spacing: 0; color: var(--hlc-ink); }
.hlc-modal__sub { color: var(--hlc-muted); font-size: 14px; margin: 0 0 20px; }
.hlc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 18px; }
.hlc-form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; color: #374151; margin: 0; }
.hlc .hlc-form-grid input:not([type=checkbox]), .hlc .hlc-form-grid textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--hlc-line); border-radius: 8px; background: #fff; font: inherit; font-size: 15px; font-weight: 400; color: var(--hlc-ink); box-shadow: none; margin: 0; }
.hlc .hlc-form-grid input:focus, .hlc .hlc-form-grid textarea:focus { outline: none; border-color: var(--hlc-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hlc-accent) 20%, transparent); }
.hlc-span2 { grid-column: 1 / -1; }
.hlc-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; }
.hlc-check input { margin-top: 3px; accent-color: var(--hlc-accent); }
.hlc-check a { color: var(--hlc-accent); }
.hlc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hlc-modal .hlc-msg { margin-top: 12px; }
body.hlc-lock { overflow: hidden; }

/* Responsive */
@media (max-width: 1100px) {
	.hlc-card { padding: 44px 40px; }
	.hlc-grid { gap: 0 36px; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
	.hlc-steps { padding-right: 36px; }
	.hlc-opt, .hlc-drop { padding-left: 24px; padding-right: 20px; }
}
@media (max-width: 900px) {
	.hlc { padding-top: 36px; }
	.hlc-card { padding: 28px 20px; border-radius: 20px; }
	.hlc-grid { display: flex; flex-direction: column; gap: 24px; }
	.hlc-steps { order: 2; padding-right: 0; border-right: 0; width: 100%; }
	.hlc-aside { display: contents; }
	.hlc-preview { order: 1; width: 100%; }
	.hlc-summary { order: 3; width: 100%; }
	.hlc-actions { order: 4; width: 100%; }
	.hlc-preview__bag { max-width: 220px; }
	.hlc-opt, .hlc-opt--wide, .hlc-drop { min-height: 76px; }
	.hlc .hlc-step__title { font-size: 19px; gap: 12px; }
}
@media (max-width: 520px) {
	.hlc-options { grid-template-columns: 1fr; }
	.hlc-drop { gap: 16px; padding: 16px 18px; }
	.hlc-drop__icon { flex-basis: 44px; width: 44px; height: 34px; }
	.hlc-drop__text { font-size: 15px; }
	.hlc-form-grid { grid-template-columns: 1fr; }
	.hlc-modal__box { padding: 26px 18px; }
	.hlc-price__unit { font-size: 28px; }
	.hlc .hlc-qty input { width: 80px; }
	.hlc-qty button { width: 48px; }
}

/* Theme button overrides (Hello / Elementor kit) */
.hlc .hlc-qty button, .hlc .hlc-qty button:hover, .hlc .hlc-qty button:focus { border: 0; border-radius: 0; color: var(--hlc-ink); box-shadow: none; outline: none; }
.hlc .hlc-qty button:hover, .hlc .hlc-qty button:focus-visible { background: var(--hlc-soft); }
.hlc .hlc-qty button:not(:hover):not(:focus-visible) { background: #fff; }
.hlc .hlc-drop__remove, .hlc .hlc-drop__remove:focus { background: #fff; border: 1px solid var(--hlc-line); border-radius: 50%; color: #6b7280; box-shadow: none; }
.hlc .hlc-drop__remove:hover { background: #fff; border-color: #fca5a5; color: #dc2626; }
.hlc .hlc-btn, .hlc .hlc-btn:hover, .hlc .hlc-btn:focus, .hlc .hlc-btn:active { background: var(--hlc-btn); color: #fff; border: 0; border-radius: 8px; text-decoration: none; }
.hlc .hlc-btn:focus-visible { outline: 2px solid var(--hlc-btn); outline-offset: 3px; }
.hlc .hlc-link, .hlc .hlc-link:hover, .hlc .hlc-link:focus, .hlc .hlc-link:active { background: none; border: 0; color: var(--hlc-btn); box-shadow: none; }
.hlc .hlc-modal__x, .hlc .hlc-modal__x:hover, .hlc .hlc-modal__x:focus { background: #fff; border: 1px solid var(--hlc-line); border-radius: 50%; color: #374151; box-shadow: none; }
.hlc .hlc-modal__x:hover { color: var(--hlc-ink); border-color: var(--hlc-accent); }

/* Photo bags: label placeholder is printed on the bag image itself */
.hlc-preview__placeholder:not(.is-pdf):not(.is-design) { border-color: transparent !important; }
.hlc-preview__placeholder:not(.is-pdf):not(.is-design) > * { visibility: hidden; }
.hlc-preview .hlc-preview__bag > img { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: contain !important; }
