/**
 * Intendit B2B Suite — frontend styles.
 *
 * Scoped to .intendit-b2b-* so they don't leak into theme styles.
 */

.intendit-b2b-price {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5em;
	line-height: 1.3;
}

.intendit-b2b-price del {
	text-decoration: line-through;
	opacity: 0.7;
}

.intendit-b2b-price del .intendit-b2b-price-original {
	color: #888;
	font-weight: 400;
}

.intendit-b2b-price ins {
	text-decoration: none;
	background: transparent;
}

.intendit-b2b-price ins .intendit-b2b-price-discounted {
	color: var(--intendit-b2b-color-badge, #1a7f37);
	font-weight: 700;
}

.intendit-b2b-label {
	display: inline-block;
	padding: 2px 8px;
	font-size: 0.7em;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--intendit-b2b-color-badge, #1a7f37);
	background: var(--intendit-b2b-color-badge-bg, rgba(26, 127, 55, 0.1));
	border-radius: 999px;
	vertical-align: middle;
	white-space: nowrap;
}

/* ============================================================
   Application form
   ============================================================ */

.intendit-b2b-app-form-wrap {
	max-width: 640px;
	margin: 0 auto;
}

.intendit-b2b-app-title {
	margin: 0 0 16px;
	font-size: 1.6em;
	font-weight: 700;
}

.intendit-b2b-app-form { display: grid; gap: 14px; }

.intendit-b2b-app-row--two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (max-width: 540px) {
	.intendit-b2b-app-row--two { grid-template-columns: 1fr; }
}

.intendit-b2b-app-field { display: grid; gap: 4px; }

.intendit-b2b-app-field label {
	font-weight: 600;
	font-size: 0.95em;
}

.intendit-b2b-app-field input,
.intendit-b2b-app-field textarea {
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 1em;
	width: 100%;
	box-sizing: border-box;
}

.intendit-b2b-app-field input:focus,
.intendit-b2b-app-field textarea:focus {
	outline: none;
	border-color: var(--intendit-b2b-color-button, #1e3a5f);
	box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

.intendit-b2b-app-hint {
	color: #64748b;
	font-size: 0.85em;
}

.intendit-b2b-app-req { color: #b91c1c; }

.intendit-b2b-app-submit {
	display: inline-block;
	padding: 12px 20px;
	background: var(--intendit-b2b-color-button, #1e3a5f);
	color: #fff;
	border: 0;
	border-radius: 6px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s ease;
	justify-self: start;
}

.intendit-b2b-app-submit:hover { filter: brightness(0.85); }

.intendit-b2b-app-notice {
	padding: 12px 14px;
	border-radius: 6px;
	font-size: 0.95em;
}

.intendit-b2b-app-notice--error   { background: #fee2e2; color: #7f1d1d; }
.intendit-b2b-app-notice--success { background: #dcfce7; color: #166534; }
.intendit-b2b-app-notice--info    { background: #dbeafe; color: #1e3a8a; }

.intendit-b2b-app-notice ul { margin: 0; padding-left: 20px; }

/* ============================================================
   Checkout toggle buttons (Privatperson/Företag + Inkl./Exkl.)
   ============================================================ */

.intendit-b2b-toggle {
	display: flex;
	gap: 0;
	margin-bottom: 8px;
}

.intendit-b2b-toggle button {
	flex: 1;
	padding: 10px 16px;
	cursor: pointer;
	border: 1.5px solid #d1d5db;
	background: #fff;
	color: #374151;
	font-weight: 500;
	font-size: 14px;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	user-select: none;
	line-height: 1.4;
	outline: none;
}

.intendit-b2b-toggle button:first-child {
	border-radius: 6px 0 0 6px;
	border-right: none;
}

.intendit-b2b-toggle button:last-child {
	border-radius: 0 6px 6px 0;
}

.intendit-b2b-toggle button.is-active {
	background: var(--intendit-b2b-color-button, #1e3a5f);
	border-color: var(--intendit-b2b-color-button, #1e3a5f);
	color: #fff;
}

.intendit-b2b-toggle button:hover:not(.is-active) {
	background: #f3f4f6;
}

.intendit-b2b-tax-toggle-wrap { max-width: 320px; margin: 8px 0 16px; }
.intendit-b2b-tax-toggle-wrap .intendit-b2b-toggle--standalone { margin-bottom: 0; }
.intendit-b2b-tax-toggle-label { font-weight: 600; margin-bottom: 6px; font-size: 0.9em; }
