.wolf-buy-now { cursor: pointer; }
.wolf-qo-remove-embroidery { display: block; margin-top: 6px; border: 0; background: transparent; padding: 0; color: #174d83; font: inherit; font-size: .78rem; text-decoration: underline; cursor: pointer; }
.wolf-buy-now:focus-visible { outline: 3px solid var(--wolf-blue); outline-offset: 3px; }
.wolf-qo-trigger-error { margin: 8px 0 0; color: #9f2525; font-size: .82rem; }

.wolf-qo-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	padding: clamp(10px, 2vw, 24px);
	background: rgb(10 15 26 / 58%);
	backdrop-filter: blur(4px);
	color: var(--wolf-text);
	font: 400 15px/1.55 "Sora", sans-serif;
	opacity: 0;
	transition: opacity 220ms ease;
}
.wolf-qo-overlay[hidden],
.wolf-qo-overlay [hidden] { display: none !important; }
.wolf-qo-overlay.is-open { opacity: 1; }
.wolf-qo-backdrop { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; background: transparent; padding: 0; cursor: default; }
.wolf-qo-modal {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: min(690px, 100%);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: clamp(20px, 4vw, 34px);
	border: 1px solid rgb(10 15 26 / 8%);
	border-radius: 18px;
	background: var(--wolf-white);
	box-shadow: 0 24px 80px rgb(10 15 26 / 30%);
	transform: translateY(10px) scale(.99);
	transition: transform 220ms ease;
}
.wolf-qo-overlay.is-open .wolf-qo-modal { transform: translateY(0) scale(1); }
.wolf-qo-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid rgb(10 15 26 / 8%);
	border-radius: 50%;
	background: var(--wolf-light);
	color: var(--wolf-navy);
	padding: 0;
	font: 400 25px/1 "Sora", sans-serif;
	cursor: pointer;
}
.wolf-qo-close:hover { border-color: var(--wolf-blue); background: #eef7ff; color: var(--wolf-navy); }
.wolf-qo-content { min-width: 0; }
.wolf-qo-header { margin: 0 34px 22px 0; }
.wolf-qo-brand { display: inline-block; margin: 0 0 9px; border-bottom: 2px solid var(--wolf-cyan); padding: 0 0 5px; color: var(--wolf-navy); font-size: .68rem; font-weight: 700; letter-spacing: .17em; }
.wolf-qo-header h2 { margin: 0 0 8px; color: var(--wolf-navy); font-size: clamp(1.35rem, 3vw, 1.7rem); font-weight: 700; line-height: 1.25; }
.wolf-qo-header p { margin: 0; color: #657080; font-size: .86rem; line-height: 1.55; }

.wolf-qo-summary { min-width: 0; margin: 0 0 20px; }
.wolf-qo-summary h3 { margin: 0 0 11px; color: var(--wolf-navy); font-size: 1rem; font-weight: 700; }
.wolf-qo-items { display: grid; max-height: 290px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0; list-style: none; }
.wolf-qo-item { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 13px; box-sizing: border-box; padding: 13px 28px 13px 0; border-bottom: 1px solid rgb(10 15 26 / 10%); }
.wolf-qo-item__image { width: 68px; height: 82px; overflow: hidden; border-radius: 9px; background: var(--wolf-light); }
.wolf-qo-product-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.wolf-qo-item__details { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 2px; }
.wolf-qo-item__details > strong { color: var(--wolf-navy); font-size: .83rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.wolf-qo-attribute, .wolf-qo-unit { color: #687384; font-size: .72rem; line-height: 1.45; }
.wolf-qo-line { display: flex; width: 100%; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.wolf-qo-line-total { color: var(--wolf-navy); font-size: .82rem; font-weight: 700; }
.wolf-qo-quantity { display: inline-flex; width: 104px; height: 34px; flex: 0 0 auto; overflow: hidden; border: 1px solid #d9dee5; border-radius: 8px; background: #fff; }
.wolf-qo-quantity button { width: 31px; min-width: 31px; height: 32px; border: 0; border-radius: 0; background: var(--wolf-light); color: var(--wolf-navy); padding: 0; font: 500 1rem/1 "Sora", sans-serif; cursor: pointer; }
.wolf-qo-quantity button:hover:not(:disabled) { background: #e8f4ff; color: var(--wolf-blue); }
.wolf-qo-quantity button:disabled { cursor: default; opacity: .4; }
.wolf-qo-quantity input { box-sizing: border-box; width: 42px; min-width: 0; height: 32px; margin: 0; border: 0; border-radius: 0; background: #fff; color: var(--wolf-navy); padding: 0 2px; font: 500 .75rem/1 "Sora", sans-serif; text-align: center; appearance: textfield; }
.wolf-qo-quantity input::-webkit-inner-spin-button,
.wolf-qo-quantity input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.wolf-qo-remove { position: absolute; top: 10px; right: 0; display: grid; width: 26px; height: 30px; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #687384; padding: 0; font: 400 1.3rem/1 "Sora", sans-serif; cursor: pointer; }
.wolf-qo-remove:hover { background: #fff1f1; color: #a32727; }
.wolf-qo-totals { margin-top: 12px; border-radius: 11px; background: var(--wolf-light); padding: 12px 15px; }
.wolf-qo-totals > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 14px; margin: 0 0 7px; color: #4f5967; font-size: .78rem; }
.wolf-qo-totals .wolf-qo-total { margin: 10px 0 0; border-top: 1px solid rgb(10 15 26 / 12%); padding-top: 10px; color: var(--wolf-navy); font-size: .95rem; }
.wolf-qo-totals .wolf-qo-total strong:last-child { font-size: 1.08rem; }
.wolf-qo-empty { margin: 0; border-radius: 9px; background: var(--wolf-light); padding: 17px; color: #657080; text-align: center; }
.wolf-qo-summary[aria-busy="true"] { opacity: .65; }

.wolf-qo-config-notice { margin: 0 0 12px; border: 1px solid #f1d39b; border-radius: 8px; background: #fff9ed; color: #754e10; padding: 10px 12px; font-size: .8rem; }
.wolf-qo-config-notice:empty { display: none; }
.wolf-qo-form { margin: 0; }
.wolf-qo-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.wolf-qo-field { min-width: 0; }
.wolf-qo-field label { display: block; margin: 0 0 6px; color: var(--wolf-navy); font-size: .8rem; font-weight: 600; }
.wolf-qo-field label span { color: var(--wolf-blue); }
.wolf-qo-input-wrap { position: relative; min-width: 0; }
.wolf-qo-input-wrap > svg { position: absolute; top: 15px; left: 14px; width: 19px; height: 19px; fill: none; stroke: #687384; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; pointer-events: none; }
.wolf-qo-input-wrap > input { box-sizing: border-box; display: block; width: 100%; min-width: 0; height: 50px; margin: 0; border: 1px solid #d7dde5; border-radius: 10px; background: #fff; color: var(--wolf-text); padding: 10px 13px 10px 43px; font: 400 .88rem/1.3 "Sora", sans-serif; box-shadow: none; }
.wolf-qo-city-selector .wolf-qo-input-wrap > input { padding-right: 40px; }
.wolf-qo-input-wrap > input::placeholder { color: #9299a3; opacity: 1; }
.wolf-qo-input-wrap > input:focus { border-color: var(--wolf-blue); outline: 0; box-shadow: 0 0 0 3px rgb(0 119 255 / 12%); }
.wolf-qo-input-wrap > input[aria-invalid="true"] { border-color: #b42318; }
.wolf-qo-field-error { margin: 5px 0 0; color: #a32727; font-size: .7rem; line-height: 1.35; }
.wolf-qo-field-error:empty { display: none; }
.wolf-qo-city-selector { width: 100%; min-width: 0; }
.wolf-qo-city-chevron { position: absolute; top: 50%; right: 14px; color: var(--wolf-navy); transform: translateY(-50%); pointer-events: none; }
.wolf-qo-city-options { box-sizing: border-box; width: 100%; max-height: 220px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y; margin-top: 6px; border: 1px solid rgb(10 15 26 / 12%); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgb(10 15 26 / 12%); }
.wolf-qo-city-options[hidden] { display: none; }
.wolf-qo-city-options [role="option"] { box-sizing: border-box; min-height: 42px; overflow-wrap: anywhere; padding: 10px 13px; color: var(--wolf-text); cursor: pointer; font-size: .82rem; }
.wolf-qo-city-options [role="option"]:hover,
.wolf-qo-city-options [aria-selected="true"] { background: #eef7ff; color: var(--wolf-navy); }
.wolf-qo-city-options p { margin: 0; padding: 10px 13px; color: #687384; font-size: .8rem; }
.wolf-qo-city-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wolf-qo-message { margin: 12px 0 0; border-radius: 8px; background: #fff1f1; color: #a32727; padding: 10px 12px; font-size: .8rem; }
.wolf-qo-submit { display: flex; width: 100%; min-height: 58px; align-items: center; justify-content: center; gap: 10px; margin-top: 17px; border: 1px solid var(--wolf-navy) !important; border-radius: 10px !important; background: var(--wolf-navy) !important; color: #fff !important; padding: 12px 18px !important; font: 600 .9rem/1.3 "Sora", sans-serif !important; text-align: center; cursor: pointer; }
.wolf-qo-submit:hover:not(:disabled) { border-color: var(--wolf-blue) !important; background: var(--wolf-blue) !important; }
.wolf-qo-submit:disabled { cursor: not-allowed; opacity: .55; }
.wolf-qo-submit small { display: block; margin-top: 2px; font-size: .7rem; font-weight: 400; }
.wolf-qo-spinner { width: 18px; height: 18px; flex: 0 0 auto; border: 2px solid rgb(255 255 255 / 42%); border-top-color: #fff; border-radius: 50%; animation: wolf-qo-spin .8s linear infinite; }
.wolf-qo-submit:focus-visible,
.wolf-qo-close:focus-visible,
.wolf-qo-quantity button:focus-visible,
.wolf-qo-remove:focus-visible { outline: 3px solid var(--wolf-blue); outline-offset: 2px; }
@keyframes wolf-qo-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
	.wolf-qo-overlay { padding: 8px; }
	.wolf-qo-modal { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); padding: 24px 17px 18px; border-radius: 14px; }
	.wolf-qo-header { margin-right: 28px; margin-bottom: 17px; }
	.wolf-qo-header h2 { font-size: 1.32rem; }
	.wolf-qo-fields { grid-template-columns: minmax(0, 1fr); gap: 11px; }
	.wolf-qo-item { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding-right: 24px; }
	.wolf-qo-item__image { width: 58px; height: 72px; }
	.wolf-qo-items { max-height: 240px; }
	.wolf-qo-line { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.wolf-qo-overlay, .wolf-qo-modal { transition: none; }
	.wolf-qo-spinner { animation-duration: 1.6s; }
}
