/**
 * Hunonic Custom Order — front-end styles.
 * All selectors are namespaced with .hco- so they never leak into the theme.
 */

.hco-order-form-wrap {
	max-width: 580px;
	margin: 0 auto;
	color: #0f172a;
}

/* ---------- Card ---------- */
.hco-form {
	background: #ffffff;
	border: 1px solid #eceef3;
	border-radius: 18px;
	padding: 28px;
	box-shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
}

.hco-form__title {
	position: relative;
	margin: 0 0 22px;
	padding: 0 0 14px;
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #0f172a;
}

.hco-form__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.hco-form__body {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.hco-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

/* ---------- Fields ---------- */
.hco-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.hco-field__label {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #475569;
}

.hco-field__label em {
	color: #ef4444;
	font-style: normal;
}

.hco-input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	font-size: 0.98rem;
	line-height: 1.3;
	color: #0f172a;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hco-input::placeholder {
	color: #94a3b8;
}

.hco-input:focus {
	outline: none;
	background: #ffffff;
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

textarea.hco-input {
	resize: vertical;
	min-height: 68px;
}

select.hco-input {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41 0L6 4.59 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.hco-input:disabled {
	background-color: #f1f5f9;
	color: #94a3b8;
	cursor: not-allowed;
}

/* ---------- Quantity stepper ---------- */
.hco-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	background: #f8fafc;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hco-qty:focus-within {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.hco-qty .hco-input {
	width: 64px;
	padding-left: 6px;
	padding-right: 6px;
	border: 0;
	border-radius: 0;
	background: transparent;
	text-align: center;
	-moz-appearance: textfield;
}

.hco-qty .hco-input:focus {
	box-shadow: none;
	background: transparent;
}

.hco-qty .hco-input::-webkit-outer-spin-button,
.hco-qty .hco-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.hco-qty__btn {
	width: 42px;
	border: 0;
	background: #eef2f7;
	color: #334155;
	font-size: 1.15rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.hco-qty__btn:hover {
	background: #e2e8f0;
}

/* ---------- Locked product card ---------- */
.hco-product-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	background: linear-gradient(180deg, #f8fafc, #f1f5f9);
	border: 1px solid #e6ebf2;
	border-radius: 14px;
}

.hco-product-card__thumb img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 11px;
	display: block;
}

.hco-product-card__info {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.hco-product-card__name {
	font-weight: 600;
	color: #0f172a;
}

.hco-product-card__price {
	color: #2563eb;
	font-weight: 700;
}

/* ---------- Buttons ---------- */
.hco-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 22px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.hco-btn:active {
	transform: translateY(1px);
}

.hco-btn-primary {
	width: 100%;
	margin-top: 22px;
	padding: 15px 22px;
	color: #fff;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.hco-btn-primary:hover {
	background: linear-gradient(135deg, #1d4ed8, #1e40af);
	box-shadow: 0 12px 26px rgba(37, 99, 235, 0.34);
	transform: translateY(-1px);
}

.hco-btn-buy-now {
	color: #fff;
	background: linear-gradient(135deg, #f43f5e, #e11d48);
	box-shadow: 0 8px 20px rgba(225, 29, 72, 0.25);
}

.hco-btn-buy-now:hover {
	background: linear-gradient(135deg, #e11d48, #be123c);
	transform: translateY(-1px);
}

.hco-btn-order {
	margin-top: 12px;
	color: #fff;
	background: linear-gradient(135deg, #10b981, #059669);
	box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25);
}

.hco-btn-order:hover {
	background: linear-gradient(135deg, #059669, #047857);
	color: #fff;
	transform: translateY(-1px);
}

.hco-btn-cart,
.hco-btn-checkout {
	color: #fff;
	background: #0f172a;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.hco-btn-cart:hover,
.hco-btn-checkout:hover {
	background: #1e293b;
	color: #fff;
	transform: translateY(-1px);
}

.hco-btn[disabled],
.hco-btn[aria-busy="true"] {
	opacity: 0.7;
	cursor: not-allowed;
	box-shadow: none;
}

/* ---------- Notices ---------- */
.hco-notices {
	margin: 0 0 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hco-notice {
	padding: 13px 15px;
	border-radius: 12px;
	font-size: 0.95rem;
	border: 1px solid transparent;
}

.hco-notice--success {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.hco-notice--error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.hco-notice--notice,
.hco-notice--info {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1e40af;
}

.hco-empty {
	padding: 16px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 12px;
	color: #92400e;
}

/* ---------- Cart summary (checkout form) ---------- */
.hco-cart-summary {
	margin-bottom: 22px;
	border: 1px solid #e6ebf2;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}

.hco-cart-summary__title {
	margin: 0;
	padding: 13px 16px;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #475569;
	background: #f8fafc;
	border-bottom: 1px solid #e6ebf2;
}

.hco-cart-items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hco-cart-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid #f1f5f9;
}

.hco-cart-item:last-child {
	border-bottom: 0;
}

.hco-cart-item__name {
	flex: 1 1 auto;
	font-weight: 500;
	color: #0f172a;
}

.hco-cart-item__qty {
	color: #64748b;
}

.hco-cart-item__total {
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
}

.hco-cart-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: #f8fafc;
	border-top: 1px solid #e6ebf2;
	font-size: 1.05rem;
	font-weight: 600;
	color: #334155;
}

.hco-cart-total strong {
	font-size: 1.2rem;
	font-weight: 800;
	color: #2563eb;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
	.hco-form {
		padding: 20px;
		border-radius: 16px;
	}

	.hco-form__grid {
		grid-template-columns: 1fr;
	}
}
