/* ELSUP Stock cart + checkout (ported from simple-order styles) */

.elsup-cart-container,
.so-cart-container {
	margin: 1.25em 0;
}

.elsup-cart-table,
.so-cart-table {
	border-collapse: collapse;
	width: 100%;
}

.elsup-cart-table th,
.elsup-cart-table td,
.so-cart-table th,
.so-cart-table td {
	border: 1px solid #ccc;
	padding: 4px 8px;
	text-align: left;
	line-height: 1.3;
}

.elsup-cart-table th:first-child,
.elsup-cart-table td:first-child,
.so-cart-table th:first-child,
.so-cart-table td:first-child {
	width: 2.5em;
	min-width: 2.5em;
	max-width: 3em;
	text-align: center;
}

.elsup-btn,
.so-btn {
	display: inline-block;
	margin: 4px 8px 4px 0;
	padding: 6px 12px;
	cursor: pointer;
	font: inherit;
}

.elsup-checkout-form-wrap,
.so-checkout-form-wrap {
	margin-top: 1em;
	padding: 1em;
	border: 1px solid #ddd;
}

.elsup-cart-table .elsup-qty-input,
.so-cart-table .so-qty-input {
	width: 5.5em;
	min-width: 5.5em;
	margin: 0 4px 0 0;
	text-align: right;
	vertical-align: middle;
	box-sizing: border-box;
}

.elsup-btn-checkout,
.so-btn-checkout {
	background: #00a0d2;
	color: #fff;
	border: none;
	padding: 10px 24px;
	font-size: 1em;
	font-weight: 600;
	letter-spacing: 0.02em;
	border-radius: 4px;
	cursor: pointer;
}

.elsup-btn-checkout:hover,
.so-btn-checkout:hover {
	background: #008ec2;
	color: #fff;
}

.elsup-cart-table .elsup-remove,
.so-cart-table .so-remove {
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	font-size: 1.1em;
	line-height: 1;
	margin-left: 4px;
	padding: 0 2px;
	vertical-align: middle;
}

.elsup-cart-table .elsup-remove:hover,
.so-cart-table .so-remove:hover {
	color: #666;
}

/* Honeypot — visually hidden, not display:none (some bots skip display:none). */
.elsup-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.so-form-cf7-style,
.so-form-cf7-style .elsup-checkout-form,
.so-form-cf7-style .so-checkout-form {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.so-form-cf7-style .so-form-title {
	color: #00a0d2;
	font-size: 1.5em;
	font-weight: 600;
	margin: 0 0 1em;
	padding: 0;
}

.so-form-cf7-style .elsup-checkout-form,
.so-form-cf7-style .so-checkout-form {
	max-width: 100%;
	min-width: 280px;
	position: relative;
}

.so-form-cf7-style .so-form-field {
	margin-bottom: 1em;
}

.so-form-cf7-style .so-form-field label {
	display: block;
	margin-bottom: 0.35em;
	font-weight: 500;
}

.so-form-cf7-style .so-required {
	color: #dc3232;
}

.so-form-cf7-style .elsup-checkout-form input[type="text"],
.so-form-cf7-style .elsup-checkout-form input[type="email"],
.so-form-cf7-style .elsup-checkout-form input[type="password"],
.so-form-cf7-style .so-checkout-form input[type="text"],
.so-form-cf7-style .so-checkout-form input[type="email"],
.so-form-cf7-style .so-checkout-form input[type="password"] {
	width: 100%;
	max-width: 100%;
	padding: 8px 10px;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 2px;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 1em;
}

.so-form-cf7-style .so-form-field-file .so-file-hint {
	display: block;
	font-size: 0.9em;
	color: #666;
	margin-bottom: 4px;
}

.so-form-cf7-style .so-file-wrap {
	display: block;
}

.so-form-cf7-style .so-file-name {
	display: inline-block;
	margin-left: 8px;
	color: #666;
	font-size: 0.95em;
}

.so-form-cf7-style .so-form-field-checkbox {
	margin: 1.25em 0;
}

.so-form-cf7-style .so-checkbox-label {
	display: block;
	font-weight: normal;
	cursor: pointer;
}

.so-form-cf7-style .so-checkbox-label a {
	color: #00a0d2;
	text-decoration: none;
}

.so-form-cf7-style .so-checkbox-label a:hover {
	text-decoration: underline;
}

.so-form-cf7-style .so-form-submit {
	margin: 1.5em 0 0;
}

.elsup-btn-submit,
.so-btn-submit {
	background: #00a0d2;
	color: #fff;
	border: none;
	padding: 10px 24px;
	font-size: 1em;
	font-weight: 600;
	letter-spacing: 0.02em;
	border-radius: 3px;
	cursor: pointer;
}

.elsup-btn-submit:hover,
.so-btn-submit:hover {
	background: #008ec2;
}

.elsup-btn-submit:disabled,
.so-btn-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Success / error toast — above Complianz cookie banner */
.elsup-toast-host {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100000;
	display: flex;
	justify-content: center;
	pointer-events: none;
	padding: 0.75rem 0.75rem 0;
	box-sizing: border-box;
}

.elsup-toast {
	pointer-events: auto;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	max-width: min(36rem, calc(100vw - 1.5rem));
	width: 100%;
	padding: 0.85rem 1rem;
	border-radius: 4px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	font-size: 15px;
	line-height: 1.4;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.elsup-toast--success {
	background: #1b7a3d;
	color: #fff;
}

.elsup-toast--error {
	background: #b32d2e;
	color: #fff;
}

.elsup-toast__text {
	flex: 1 1 auto;
	min-width: 0;
}

.elsup-toast__close {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 0.15rem;
	opacity: 0.9;
}

.elsup-toast__close:hover {
	opacity: 1;
}

@media (max-width: 720px) {
	.elsup-cart-container,
	.so-cart-container {
		min-width: 0;
		max-width: 100%;
	}

	.elsup-cart-table-wrap,
	.so-cart-table-wrap {
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.elsup-cart-table,
	.so-cart-table {
		min-width: 36rem;
	}
}
