/* K&C legal: footer line, withdrawal form, cookie banner — v1.9.5 */

/* footer line: Withdraw from contract here · Cookie settings */
.kc-legalbar { background: #f4f6fa; border-top: 1px solid #e3e7ee; }
.kc-legalbar__in { max-width: 1480px; margin: 0 auto; padding: 10px 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; font-size: 14px; line-height: 1.4; }
.kc-legalbar a { color: #0f2a5c !important; font-weight: 600; text-decoration: underline !important; text-underline-offset: 2px; padding: 6px 2px; }
.kc-legalbar span { color: #6b7480; }

/* withdrawal form */
.kc-wd { max-width: 680px; margin: 0 auto 40px; color: #1a1d23; }
.kc-wd__intro { font-size: 16px; line-height: 1.55; }
.kc-wd__form p { margin: 0 0 16px; }
.kc-wd__form label { display: block; font-weight: 600; margin-bottom: 6px; }
.kc-wd__form label span { color: #b32d2e; }
.kc-wd__form input[type="text"], .kc-wd__form input[type="email"], .kc-wd__form textarea {
	width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 16px; border: 1px solid #c9d0db; border-radius: 10px; background: #fff;
}
.kc-wd__form input:focus, .kc-wd__form textarea:focus { outline: 2px solid #1f5fd1; outline-offset: 1px; border-color: #1f5fd1; }
.kc-wd__items { border: 1px solid #e3e7ee; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
.kc-wd__items legend { font-weight: 600; padding: 0 6px; }
.kc-wd__items label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; }
.kc-wd__items input { margin-top: 4px; }
.kc-wd__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.kc-wd__confirm, .kc-wd-btn { background: #1f5fd1 !important; color: #fff !important; border-radius: 10px !important; padding: 14px 26px !important; font-size: 16px !important; font-weight: 700 !important; border: 0 !important; }
.kc-wd__err { background: #fdecec; color: #8a1f1f; border-left: 4px solid #b32d2e; padding: 10px 14px; border-radius: 6px; }
.kc-wd__ok { background: #e9f7ef; color: #14532d; border-left: 4px solid #1e8e3e; padding: 10px 14px; border-radius: 6px; }
.kc-wd--done table { width: 100%; margin: 12px 0 16px; }
.kc-wd--done th { width: 32%; background: #f4f6fa; }
.kc-wd--done th, .kc-wd--done td { border: 1px solid #e3e7ee; vertical-align: top; }
.kc-wd-note { background: #e9f7ef; padding: 10px 14px; border-radius: 6px; }
@media print { .kc-legalbar, .kc-cc, .kc-wd .button { display: none !important; } }

/* cookie banner */
.kc-cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; padding: 12px; box-sizing: border-box; pointer-events: none; }
.kc-cc[hidden] { display: none !important; }
.kc-cc__box {
	pointer-events: auto; max-width: 980px; margin: 0 auto; background: #fff; color: #1a1d23; border-radius: 14px;
	box-shadow: 0 10px 40px rgba(15, 42, 92, .22), 0 0 0 1px rgba(15, 42, 92, .08); padding: 18px 20px; box-sizing: border-box;
	display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; align-items: center; font-size: 14px; line-height: 1.5;
}
.kc-cc__title { margin: 0 0 4px !important; font-weight: 800; font-size: 16px; color: #0f2a5c; }
.kc-cc__text { margin: 0 !important; }
.kc-cc__text a { color: #1f5fd1 !important; text-decoration: underline !important; }
.kc-cc__prefs { grid-column: 1 / -1; display: grid; gap: 8px; border-top: 1px solid #e3e7ee; padding-top: 12px; }
.kc-cc__prefs[hidden] { display: none !important; }
.kc-cc__opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.kc-cc__opt input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.kc-cc__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.kc-cc__btn {
	min-height: 44px; min-width: 120px; padding: 0 18px !important; border-radius: 10px !important; border: 2px solid #0f2a5c !important;
	background: #0f2a5c !important; color: #fff !important; font: inherit; font-size: 15px !important; font-weight: 700 !important; cursor: pointer; line-height: 1 !important;
}
.kc-cc__btn--ghost { background: #fff !important; color: #0f2a5c !important; }
.kc-cc__btn[hidden] { display: none !important; }
.kc-cc__btn:focus-visible { outline: 3px solid #ffd84d; outline-offset: 2px; }

@media (max-width: 860px) {
	.kc-cc__box { grid-template-columns: 1fr; padding: 16px; }
	.kc-cc__btns { justify-content: stretch; }
	.kc-cc__btn { flex: 1 1 calc(50% - 8px); min-width: 0; }
	.kc-cc__btn--ghost { flex-basis: 100%; }
	/* stay above the phone tab bar */
	body.kc-shop-m .kc-cc { bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* v1.9.5: "Lowest price in the last 30 days" — fixed small size (it grew with the big product price) and never cut off */
.kc-lowest-30d { font-size: 13px !important; line-height: 1.35 !important; font-style: normal !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
.products .price:has(.kc-lowest-30d) { height: auto !important; max-height: none !important; overflow: visible !important; white-space: normal !important; }

/* v1.9.6: footer "Legal" list looks like Quick Links (found by its /withdraw/ link, so no class is needed in the widget) */
.site-footer ul:has(a[href$="/withdraw/"]), .site-footer ul.kc-legal { list-style: none !important; margin: 0 !important; padding: 0 !important; text-align: center; }
.site-footer ul:has(a[href$="/withdraw/"]) li, .site-footer ul.kc-legal li { list-style: none !important; margin: 0 !important; padding: 0 !important; line-height: 2; }
.site-footer ul:has(a[href$="/withdraw/"]) li::marker { content: none; }
.site-footer ul:has(a[href$="/withdraw/"]) a, .site-footer ul.kc-legal a { color: #fff !important; text-decoration: none !important; }
.site-footer ul:has(a[href$="/withdraw/"]) a:hover, .site-footer ul.kc-legal a:hover { text-decoration: underline !important; }
.site-footer .footer-widget-area:has(a[href$="/withdraw/"]) :is(h1, h2, h3, h4, h5, h6) { text-align: center; }

/* v1.9.6: phone footer accordion (like suitcasecenter.com) */
@media (max-width: 768px) {
	.site-footer .kc-acc { text-align: left !important; border-bottom: 1px solid rgba(255, 255, 255, .2); margin: 0 !important; padding: 0 !important; }
	.site-footer .kc-acc .kc-acc__head {
		display: flex !important; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; user-select: none;
		margin: 0 !important; padding: 16px 0 !important; font-size: 15px !important; line-height: 1.3 !important;
		text-transform: uppercase; letter-spacing: .06em; text-align: left !important;
	}
	.site-footer .kc-acc .kc-acc__head::after { content: "+"; font-size: 24px; font-weight: 300; line-height: 1; }
	.site-footer .kc-acc.is-open .kc-acc__head::after { content: "\2212"; }
	.site-footer .kc-acc:not(.is-open) .kc-acc__part { display: none !important; }
	/* v1.9.7: the heading sits in its own widget (Legal) — drop the widget's bottom margin so every row is the same height */
	.site-footer .kc-acc .widget, .site-footer .kc-acc aside, .site-footer .kc-acc .widget > :last-child { margin-bottom: 0 !important; }
	.site-footer .kc-acc .widget:has(> .kc-acc__head) { padding-bottom: 0 !important; }
	.site-footer .kc-acc .kc-acc__part, .site-footer .kc-acc .kc-acc__part * { text-align: left !important; }
	.site-footer .kc-acc.is-open .kc-acc__part:last-child { padding-bottom: 14px; }
	.site-footer .kc-acc ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
	.site-footer .kc-acc .kc-acc__head:focus-visible { outline: 2px solid #ffd84d; outline-offset: 2px; }
}
