/* NAKOS Bestellungen – Frontend-Styles
   Passe diese Datei nach Bedarf an dein Theme an. */

/* ═══════════════════════════════════════
   Warenkorb
═══════════════════════════════════════ */

.nks-cart__table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
}

.nks-cart__table th,
.nks-cart__table td {
	padding: 10px 12px;
	border: 1px solid #ddd;
	text-align: left;
	vertical-align: middle;
}

.nks-cart__table th {
	background: #f5f5f5;
	font-weight: 600;
}

.nks-badge {
	display: inline-block;
	font-size: 11px;
	padding: 2px 7px;
	background: #e8f0f8;
	color: #0055a0;
	border-radius: 3px;
	margin-left: 5px;
}

.nks-quantity-input {
	width: 65px;
	padding: 5px 7px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 14px;
}

.nks-remove-btn {
	background: none;
	border: none;
	color: #c00;
	cursor: pointer;
	font-size: 13px;
	text-decoration: underline;
	padding: 0;
}

.nks-remove-btn:hover {
	color: #900;
}

.nks-cart__summary {
	margin: 1.5rem 0;
	padding: 15px 18px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
}

.nks-cart__shipping-cost {
	margin: 0 0 0.75rem;
	font-size: 16px;
}

.nks-shipping-info {
	font-size: 13px;
	color: #555;
	line-height: 1.8;
}

.nks-cart__actions {
	margin-top: 1.25rem;
}

.nks-cart__empty,
.nks-notice {
	padding: 14px 18px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
}

/* ═══════════════════════════════════════
   Buttons
═══════════════════════════════════════ */

.nks-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s;
}

.nks-btn--primary {
	background: #222;
	color: #fff;
}

.nks-btn--primary:hover,
.nks-btn--primary:focus {
	background: #444;
	color: #fff;
}

/* ═══════════════════════════════════════
   Bestellformular
═══════════════════════════════════════ */

.nks-order-summary {
	margin-bottom: 2rem;
	padding: 15px 18px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
}

.nks-order-summary h3 {
	margin-top: 0;
}

.nks-order-summary ul {
	margin: 0.5rem 0 1rem;
	padding-left: 1.25rem;
}

.nks-order-summary__shipping {
	margin: 0.75rem 0 0.5rem;
	font-size: 16px;
}

/* Fieldsets */
.nks-fieldset {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 18px 20px 10px;
	margin-bottom: 1.5rem;
}

.nks-fieldset legend {
	font-weight: 700;
	padding: 0 8px;
	font-size: 15px;
}

/* Formularzeilen */
.nks-form__row {
	margin-bottom: 1rem;
}

.nks-form__row label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	font-size: 14px;
}

.nks-form__row input[type="text"],
.nks-form__row input[type="email"],
.nks-form__row input[type="tel"],
.nks-form__row select,
.nks-form__row textarea {
	display: block;
	width: 100%;
	max-width: 480px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 15px;
	box-sizing: border-box;
	font-family: inherit;
}

.nks-form__row textarea {
	max-width: 580px;
	resize: vertical;
}

.nks-form__row--half {
	display: flex;
	gap: 16px;
}

.nks-form__row--half > div {
	flex: 1;
}

.nks-form__row--half input {
	max-width: 100% !important;
}

/* Checkbox-Zeilen */
.nks-form__row--checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: normal;
	cursor: pointer;
}

.nks-form__row--checkbox input[type="checkbox"] {
	margin-top: 4px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.nks-form__row--checkbox span {
	line-height: 1.5;
}

.nks-required {
	color: #c00;
}

.nks-required-note {
	margin: 0.5rem 0 0;
	font-size: 13px;
	color: #666;
}

/* Submit */
.nks-form__submit {
	margin-top: 1.5rem;
}

/* Fehlermeldungen */
.nks-errors {
	background: #fff4f4;
	border: 1px solid #f5a5a5;
	border-radius: 4px;
	padding: 14px 18px;
	margin-bottom: 1.5rem;
}

.nks-errors p {
	margin: 0 0 0.5rem;
}

.nks-errors ul {
	margin: 0;
	padding-left: 1.25rem;
	color: #c00;
}

/* Danke-Seite */
.nks-thank-you {
	padding: 25px 30px;
	background: #f0f8f0;
	border: 1px solid #8bc98b;
	border-radius: 4px;
}

.nks-thank-you h2 {
	margin-top: 0;
}

/* ═══════════════════════════════════════
   "In den Warenkorb"-Button (generisch)
   Kann vom Theme per .nks-add-to-cart-btn
   angesteuert werden.
═══════════════════════════════════════ */

.nks-add-to-cart-btn[disabled] {
	opacity: 0.6;
	cursor: wait;
}
