/* Complaint form (entry + wizard), .rk and .rk-*. Builds on shop-base.css, which the header loads on every page.
   The status and supplier pages use reklamation-status.css instead.
   Some theme classes are swapped for .rk-* ones in the template, because the brand CSS and Bootstrap set
   .btn-success, .text-success, .bg-success, .border, .rounded, .text-muted and link colors with !important. */

/* Layout and typography */
.rk-col { width: 100%; max-width: 720px; margin-left: auto; margin-right: auto; }
.rk .rk-h1 { margin: 0 0 12px; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; color: var(--sk-ink); text-wrap: balance; }
.rk .rk-h2 { margin: 0 0 8px; font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--sk-ink); }
@media (min-width: 768px) { .rk .rk-h1 { font-size: 30px; } }
.rk p { color: var(--sk-text); line-height: 1.6; }
.rk hr { border-top-color: var(--sk-line); }
.rk .rk-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--sk-ink); }
.rk .rk-hint { color: var(--sk-muted); }

.rk .breadcrumb { padding: 0; background: none; font-size: 13px; }
.rk .breadcrumb-item + .breadcrumb-item::before { color: var(--sk-line-strong); }
.rk .breadcrumb-item { color: var(--sk-muted); }
.rk .rk-back { display: inline-block; padding: 4px 0; }
.rk .rk-back:hover { text-decoration: none; }
.rk .rk-back .font-size-xs { font-size: 13px; }
.rk .rk-back:hover .font-size-xs { text-decoration: underline; text-underline-offset: 2px; }

/* Progress */
.rk .progress { height: 4px; background: var(--sk-soft); border-radius: 2px; }
.rk .progress-bar { background: var(--sk-accent); border-radius: 2px; }
.rk-progress-initial { width: 25%; }
/* The wizard has no breadcrumb on phones, so the progress bar needs room below the header */
@media (max-width: 991.98px) { .rk .rk-col:has(> .progress) { padding-top: 20px; } }

/* Buttons (same look as the product page CTA) */
.rk-btn {
	display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
	min-height: 48px; padding: 0 20px; margin-bottom: 0; border: 1px solid var(--sk-accent); border-radius: var(--sk-radius-sm);
	background: var(--sk-accent); color: #fff; font-size: 15px; font-weight: 500; line-height: 1.2; text-align: center;
	cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.rk-btn:hover { background: var(--sk-accent-dark); border-color: var(--sk-accent-dark); color: #fff; text-decoration: none; }
.rk-btn:focus-visible { outline: 2px solid var(--sk-ink); outline-offset: 2px; }
.rk-btn[disabled] { background: var(--sk-line-strong); border-color: var(--sk-line-strong); cursor: progress; }
.rk-btn--inline { display: inline-flex; width: auto; min-height: 44px; }
.rk-btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.rk-btn--ghost { background: #fff; border-color: var(--sk-line-strong); color: var(--sk-ink); }
.rk-btn--ghost:hover { background: var(--sk-soft); border-color: var(--sk-line-strong); color: var(--sk-ink); }
/* The brand CSS's a { color: ... !important } also hits <a> buttons,
   so their text color is set with -webkit-text-fill-color, which that rule doesn't cover */
a.rk-btn { -webkit-text-fill-color: #fff; }
a.rk-btn--ghost { -webkit-text-fill-color: var(--sk-ink); }
.rk .rk-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Fields */
.rk .form-control {
	height: 46px; padding: 0 14px; border: 1px solid var(--sk-line-strong); border-radius: var(--sk-radius-sm);
	background-color: #fff; color: var(--sk-ink); font-size: 15px; box-shadow: none;
}
.rk textarea.form-control { height: auto; padding: 10px 14px; line-height: 1.5; }
.rk .form-control::placeholder { color: var(--sk-muted); }
.rk .form-control:hover { border-color: var(--sk-muted); }
.rk .form-control:focus { border-color: var(--sk-ink); box-shadow: 0 0 0 1px var(--sk-ink); }
.rk .input-group-text { border: 1px solid var(--sk-line-strong); border-right: 0; border-radius: var(--sk-radius-sm) 0 0 var(--sk-radius-sm); background: var(--sk-soft-2); color: var(--sk-muted); }
.rk .input-group > .form-control { border-radius: 0 var(--sk-radius-sm) var(--sk-radius-sm) 0; }

/* Checkboxes and radio buttons */
.rk .custom-control { padding-left: 28px; }
.rk .custom-control-label { color: var(--sk-ink); line-height: 1.5; }
.rk .custom-control-label::before, .rk .custom-control-label::after { top: 2px; left: -28px; width: 18px; height: 18px; }
.rk .custom-control-label::before { border: 1px solid var(--sk-line-strong); }
.rk .custom-checkbox .custom-control-label::before { border-radius: var(--sk-radius-sm); }
.rk .custom-control-input:checked ~ .custom-control-label::before { background: var(--sk-accent); border-color: var(--sk-accent); }
.rk .custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sk-accent); }
.rk .custom-control-input:focus:not(:checked) ~ .custom-control-label::before { border-color: var(--sk-muted); }

/* Messages (red = error) */
.rk .alert { padding: 12px 14px; border: 1px solid var(--sk-line); border-left-width: 3px; border-radius: var(--sk-radius-sm); background: #fff; font-size: 14px; line-height: 1.5; }
.rk .alert-danger { border-left-color: var(--sk-red); }

/* Entry: the form card */
.rk-entry-form-card { padding: 20px 16px; background: var(--sk-soft-2); border: 1px solid var(--sk-line); border-radius: var(--sk-radius); }
@media (min-width: 576px) { .rk-entry-form-card { padding: 28px 28px 24px; } }
.rk .rk-entry-form-card .form-group { margin-bottom: 18px; }

/* Step 1: products */
.rk .rk-product {
	display: flex; align-items: center; width: 100%; margin: 0; padding: 12px 16px 12px 12px;
	border: 1px solid var(--sk-line); border-radius: var(--sk-radius); background: #fff; transition: border-color .15s ease;
}
.rk .rk-product:hover { border-color: var(--sk-line-strong); }
.rk .rk-product:has(.rk-product-checkbox:checked) { border-color: var(--sk-ink); box-shadow: 0 0 0 1px var(--sk-ink); }
.rk .rk-product-checkbox { position: static; flex: 0 0 auto; width: 20px; height: 20px; margin: 0 0 0 12px; accent-color: var(--sk-accent); cursor: pointer; }
.rk-product-img { width: 56px; height: 56px; object-fit: contain; border-radius: var(--sk-radius-sm); }
.rk .rk-price { color: var(--sk-ink); font-weight: 500; }

/* The product being worked on (details step) */
.rk .rk-item { display: flex; align-items: center; width: 100%; padding: 10px 12px; border: 1px solid var(--sk-line); border-radius: var(--sk-radius); background: var(--sk-soft-2); }

/* Step 2: files */
.rk-file-thumb {
	position: relative;
	width: 80px;
	height: 80px;
	margin: 4px;
	border: 1px solid var(--sk-line);
	border-radius: var(--sk-radius-sm);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sk-soft-2);
}

.rk-file-thumb--small {
	width: 60px;
	height: 60px;
	margin: 3px;
}

.rk-file-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rk-file-thumb-label {
	text-align: center;
	font-size: 10px;
	padding: 4px;
	word-break: break-all;
	color: var(--sk-text);
}

.rk-file-thumb-label--small {
	font-size: 9px;
	padding: 2px;
}

.rk-play-icon {
	font-size: 20px;
}

.rk-play-icon--small {
	font-size: 16px;
}

.rk-file-remove {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	background: var(--sk-ink);
	color: #fff;
	width: 22px;
	height: 22px;
	font-size: 14px;
	line-height: 22px;
	text-align: center;
	cursor: pointer;
	padding: 0;
	border-radius: 0 var(--sk-radius-sm) 0 var(--sk-radius-sm);
}

/* Step 3: summary */
.rk-confirm-box { padding: 14px 16px; background: var(--sk-soft-2); border: 1px solid var(--sk-line); border-radius: var(--sk-radius); }

@media (prefers-reduced-motion: reduce) {
	.rk-btn, .rk .rk-product { transition: none; }
}
