/* Onofah Greyskull — front end
   Everything is scoped under .oncs-* and inherits the theme font by design.
   Override the custom properties below to restyle without touching this file. */

.oncs-selector {
	--oncs-bg: #fff;
	--oncs-fg: inherit;
	--oncs-border: rgba(0, 0, 0, 0.14);
	--oncs-hover: rgba(0, 0, 0, 0.05);
	--oncs-radius: 6px;
	--oncs-gap: 0.4em;
	--oncs-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	--oncs-focus: currentColor;

	position: relative;
	display: inline-block;
	font: inherit;
	line-height: 1.4;
}

.oncs-heading {
	display: inline-block;
	margin-right: var(--oncs-gap);
	opacity: 0.7;
	font-size: 0.9em;
}

.oncs-flag {
	font-size: 1.1em;
	line-height: 1;
}

.oncs-currency {
	opacity: 0.65;
	font-size: 0.85em;
}

/* Disclosure dropdown ---------------------------------------------------- */

.oncs-details {
	position: relative;
}

.oncs-toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--oncs-gap);
	padding: 0.4em 0.7em;
	border: 1px solid var(--oncs-border);
	border-radius: var(--oncs-radius);
	background: var(--oncs-bg);
	color: var(--oncs-fg);
	cursor: pointer;
	list-style: none;
	white-space: nowrap;
}

.oncs-toggle::-webkit-details-marker {
	display: none;
}

.oncs-toggle:hover {
	background: var(--oncs-hover);
}

.oncs-details > .oncs-toggle:focus-visible {
	outline: 2px solid var(--oncs-focus);
	outline-offset: 2px;
}

.oncs-caret {
	width: 0;
	height: 0;
	margin-left: 0.1em;
	border-left: 0.32em solid transparent;
	border-right: 0.32em solid transparent;
	border-top: 0.36em solid currentColor;
	opacity: 0.6;
	transition: transform 0.15s ease;
}

.oncs-details[open] .oncs-caret {
	transform: rotate(180deg);
}

.oncs-details .oncs-list {
	position: absolute;
	z-index: 9999;
	top: calc(100% + 4px);
	left: 0;
	min-width: 100%;
	margin: 0;
	padding: 0.25em;
	list-style: none;
	background: var(--oncs-bg);
	border: 1px solid var(--oncs-border);
	border-radius: var(--oncs-radius);
	box-shadow: var(--oncs-shadow);
}

.oncs-details .oncs-item {
	margin: 0;
	list-style: none;
}

.oncs-details .oncs-item a {
	display: flex;
	align-items: center;
	gap: var(--oncs-gap);
	padding: 0.45em 0.7em;
	border-radius: calc(var(--oncs-radius) - 2px);
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.oncs-details .oncs-item a:hover,
.oncs-details .oncs-item a:focus-visible {
	background: var(--oncs-hover);
}

.oncs-details .oncs-item.is-current a {
	font-weight: 600;
}

/* Inline links ----------------------------------------------------------- */

.oncs-list--inline {
	display: flex;
	flex-wrap: wrap;
	gap: var(--oncs-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.oncs-list--inline .oncs-item {
	margin: 0;
	list-style: none;
}

.oncs-list--inline .oncs-item a {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	padding: 0.3em 0.6em;
	border: 1px solid transparent;
	border-radius: var(--oncs-radius);
	color: inherit;
	text-decoration: none;
	opacity: 0.75;
}

.oncs-list--inline .oncs-item a:hover {
	opacity: 1;
	background: var(--oncs-hover);
}

.oncs-list--inline .oncs-item.is-current a {
	opacity: 1;
	border-color: var(--oncs-border);
	font-weight: 600;
}

/* Select ----------------------------------------------------------------- */

.oncs-select {
	max-width: 100%;
	padding: 0.4em 0.6em;
	border: 1px solid var(--oncs-border);
	border-radius: var(--oncs-radius);
	background: var(--oncs-bg);
	color: inherit;
	font: inherit;
}

.oncs-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Suggestion banner ------------------------------------------------------ */

.oncs-banner {
	position: fixed;
	z-index: 99998;
	right: 1rem;
	bottom: 1rem;
	max-width: 22rem;
	padding: 1rem 1.1rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	background: #fff;
	color: #16161a;
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
	font-size: 0.95rem;
	line-height: 1.45;
}

.oncs-banner[hidden] {
	display: none;
}

.oncs-banner__text {
	margin: 0 0 0.85rem;
}

.oncs-banner__actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.oncs-btn {
	display: inline-block;
	padding: 0.45em 0.95em;
	border-radius: 6px;
	text-decoration: none;
	font-size: 0.92em;
	font-weight: 600;
	line-height: 1.3;
}

.oncs-btn--primary {
	background: #16161a;
	color: #fff;
}

.oncs-btn--primary:hover {
	background: #35353d;
	color: #fff;
}

.oncs-btn--ghost {
	border: 1px solid rgba(0, 0, 0, 0.18);
	background: transparent;
	color: inherit;
}

.oncs-btn--ghost:hover {
	background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 480px) {
	.oncs-banner {
		right: 0.6rem;
		left: 0.6rem;
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oncs-caret {
		transition: none;
	}
}
