/*
 * PureCSS.com
 * https://purecss.com/examples/styled-select/
 * Custom <select> appearance using appearance:none and an inline SVG background arrow.
 */

.demo-styled-select .select-wrap {
		display: flex;
		flex-direction: column;
		gap: 1rem;
		max-width: 320px;
		margin: 0 auto;
	}

.demo-styled-select label {
		display: block;
		font-size: .82rem;
		color: var(--text-muted);
		margin-bottom: .25rem;
		font-weight: 500;
	}

.demo-styled-select select {
		appearance: none;
		-webkit-appearance: none;
		width: 100%;
		padding: .7rem 2.75rem .7rem 1rem;
		background-color: var(--surface-2);
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2388888f' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: right 1rem center;
		border: 2px solid var(--border);
		border-radius: var(--radius);
		color: var(--text);
		font-family: var(--font-sans);
		font-size: .95rem;
		cursor: pointer;
		outline: none;
		transition: border-color .2s;
	}

:is(.demo-styled-select select):focus {
			border-color: var(--accent);
		}

:is(.demo-styled-select select):hover {
			border-color: var(--text-muted);
		}

.select-accent:is(.demo-styled-select select) {
			border-color: var(--accent);
			background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8ff57' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
		}
