:root {
	--ark-ups-primary: #3d6389;
	--ark-ups-primary-dark: #2f4d6b;
	--ark-ups-text: #1f2933;
	--ark-ups-muted: #6b7280;
	--ark-ups-border: #e5e7eb;
	--ark-ups-soft: #f4f7fd;
	--ark-ups-danger: #b42318;
}

html.ark-ups-locked { overflow: hidden; }

.ark-ups-launcher {
	position: fixed; right: 24px; bottom: 24px; z-index: 99990;
	width: 56px; height: 56px; border-radius: 50%; border: 0;
	background: #000; color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.ark-ups-launcher:focus-visible { outline: 3px solid var(--ark-ups-primary); outline-offset: 3px; }
.ark-ups-count {
	position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
	border-radius: 11px; background: var(--ark-ups-primary); color: #fff;
	font-size: 12px; font-weight: 700; line-height: 22px; text-align: center;
}
.ark-ups-count[hidden] { display: none; }

.ark-ups-overlay { position: fixed; inset: 0; z-index: 99991; background: rgba(17, 24, 39, .55); }
.ark-ups-overlay[hidden] { display: none; }

.ark-ups-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 99992;
	width: 460px; max-width: 92vw; background: #fff; color: var(--ark-ups-text);
	display: flex; flex-direction: column;
	transform: translateX(100%); visibility: hidden;
	transition: transform .3s ease, visibility 0s linear .3s;
	box-shadow: -8px 0 24px rgba(0, 0, 0, .15);
	font-size: 14px; line-height: 1.45;
}
.ark-ups-drawer.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
body.admin-bar .ark-ups-drawer { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ark-ups-drawer { top: 46px; } }

.ark-ups-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 20px; border-bottom: 1px solid var(--ark-ups-border);
}
.ark-ups-head h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ark-ups-text); }
.ark-ups-close {
	width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent;
	font-size: 26px; line-height: 1; cursor: pointer; color: var(--ark-ups-text);
}
.ark-ups-close:hover { background: var(--ark-ups-soft); }

.ark-ups-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.ark-ups-drawer.is-busy .ark-ups-body { opacity: .55; pointer-events: none; transition: opacity .15s; }
.ark-ups-loading { margin: 40px auto; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--ark-ups-border); border-top-color: var(--ark-ups-primary); animation: ark-ups-spin .8s linear infinite; }
@keyframes ark-ups-spin { to { transform: rotate(360deg); } }

.ark-ups-error { margin: 12px 20px 0; padding: 10px 12px; border-radius: 6px; background: #fef3f2; color: var(--ark-ups-danger); }
.ark-ups-empty { padding: 40px 20px; text-align: center; }

.ark-ups-items { list-style: none; margin: 0; padding: 0; }
.ark-ups-item { padding: 16px 20px; border-bottom: 1px solid var(--ark-ups-border); }
.ark-ups-item-main, .ark-ups-helmet { display: flex; gap: 14px; }
.ark-ups-thumb { flex: 0 0 84px; }
.ark-ups-thumb img { width: 84px; height: 84px; object-fit: contain; border-radius: 6px; background: var(--ark-ups-soft); }
.ark-ups-info { flex: 1; min-width: 0; }
.ark-ups-name { display: block; font-weight: 700; color: var(--ark-ups-text); text-decoration: none; }
a.ark-ups-name:hover { color: var(--ark-ups-primary); }
.ark-ups-meta { color: var(--ark-ups-muted); font-size: 12px; margin-top: 4px; }
.ark-ups-meta dl, .ark-ups-meta dd, .ark-ups-meta p { margin: 0; }
.ark-ups-meta *, .ark-ups-meta span.woocommerce-Price-amount.amount { font-size: 12px !important; line-height: 1.45 !important; }
.ark-ups-meta dd * { font-weight: 400 !important; color: inherit !important; }
.ark-ups-meta dt { float: left; clear: left; margin-right: 4px; font-weight: 600; }
.ark-ups-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.ark-ups-price { font-weight: 700; }

.ark-ups-qty { display: inline-flex; align-items: center; border: 1px solid var(--ark-ups-border); border-radius: 6px; }
.ark-ups-qty span { min-width: 28px; text-align: center; }
.ark-ups-qty-btn { width: 30px; height: 30px; border: 0; background: transparent; cursor: pointer; font-size: 16px; color: var(--ark-ups-text); }
.ark-ups-qty-btn:hover { background: var(--ark-ups-soft); }
.ark-ups-remove { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--ark-ups-muted); font-size: 12px; text-decoration: underline; cursor: pointer; }

.ark-ups-offers { margin-top: 12px; padding: 12px; border-radius: 8px; background: var(--ark-ups-soft); }
.ark-ups-offers-title, .ark-ups-helmets-title { margin: 0 0 8px; font-weight: 700; color: var(--ark-ups-primary); }
.ark-ups-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; }
.ark-ups-offer + .ark-ups-offer { border-top: 1px solid var(--ark-ups-border); }
.ark-ups-offer-label { flex: 1; }
.ark-ups-offer-choice, .ark-ups-size {
	max-width: 100%; height: 32px; padding: 0 8px; border: 1px solid var(--ark-ups-border);
	border-radius: 6px; background: #fff; font-size: 13px;
}
.ark-ups-offer-choice { flex: 1 1 0; min-width: 0; }
.ark-ups-offer:has(.ark-ups-offer-choice) .ark-ups-offer-label { flex-basis: 100%; }
.ark-ups-size { flex: 1; }
.ark-ups-size.is-invalid { border-color: var(--ark-ups-danger); box-shadow: 0 0 0 2px rgba(180, 35, 24, .15); }

.ark-ups-helmets { padding: 16px 20px; border-bottom: 1px solid var(--ark-ups-border); }
.ark-ups-helmet { padding: 10px 0; }
.ark-ups-helmet + .ark-ups-helmet { border-top: 1px solid var(--ark-ups-border); }
.ark-ups-helmet .ark-ups-price del { color: var(--ark-ups-muted); font-weight: 400; }

.ark-ups-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 18px; border: 0; border-radius: 6px; cursor: pointer;
	font-weight: 700; text-decoration: none; white-space: nowrap;
	background: var(--ark-ups-primary); color: #fff;
}
.ark-ups-btn:hover, .ark-ups-btn:focus { background: var(--ark-ups-primary-dark); color: #fff; text-decoration: none; }
.ark-ups-btn--small { padding: 0 12px; height: 32px; font-size: 13px; }
.ark-ups-btn--block { display: flex; width: 100%; }

.ark-ups-foot { margin-top: auto; padding: 16px 20px 20px; border-top: 1px solid var(--ark-ups-border); background: #fff; position: sticky; bottom: 0; }
.ark-ups-pay { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ark-ups-border); }
.ark-ups-pay-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ark-ups-muted); }
.ark-ups-pay-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.ark-ups-pay-logos img { height: 20px; width: auto; max-width: 60px; object-fit: contain; padding: 3px 6px; box-sizing: content-box; border: 1px solid var(--ark-ups-border); border-radius: 4px; background: #fff; }
.ark-ups-usps { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--ark-ups-border); display: flex; gap: 8px; }
.ark-ups-usps li { flex: 1 1 0; min-width: 0; margin: 0; }
.ark-ups-usp { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none; }
a.ark-ups-usp:hover .ark-ups-usp-text { text-decoration: underline; }
.ark-ups-usp-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e3ebf4; color: var(--ark-ups-primary); }
.ark-ups-usp-text { font-size: 11px; line-height: 1.3; color: var(--ark-ups-text); }
.ark-ups-total { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 16px; }
.ark-ups-link { display: block; margin-top: 10px; text-align: center; color: var(--ark-ups-primary); }
