/* Approximate price conversions (src/lib/cart/currency.js). Prices stay in GBP. */

/* Until the customer has chosen: a dotted underline on every price says it can be converted */
.prices-convertible .price[data-price] {
	border-bottom: 1px dotted currentColor;
	cursor: pointer;
}

/* Once chosen (a currency, or no conversion): the underline only on hover or focus */
.prices-convertible.prices-currency-chosen .price[data-price] {
	border-bottom-color: transparent;
}

.prices-convertible.prices-currency-chosen .price[data-price]:hover,
.prices-convertible .price[data-price]:focus {
	border-bottom-color: currentColor;
	outline: none;
}

.price-converted {
	color: #999;
	font-weight: normal;
	font-size: 0.85em;
	margin-left: 0.4em;
	white-space: nowrap;
	cursor: pointer;
}

/* A converted range goes on its own line */
.price-converted-range {
	display: block;
	margin: 2px 0 0 0;
}

.price-converted:focus {
	outline: 1px dotted #999;
}

/* The selected option's price on a product page: only useful with a conversion */
.option-price {
	display: none;
	margin: 8px 0 0 0;
}

.prices-convertible .option-price {
	display: block;
}

.currency-chooser {
	position: absolute;
	z-index: 1050;
	width: 280px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	max-height: 70vh;
	overflow-y: auto;
	font-size: 13px;
	text-align: left;
}

.currency-chooser p {
	margin: 0 0 8px 0;
	color: #333;
}

.currency-chooser .note {
	margin: 8px 0 0 0;
	color: #888;
	font-size: 11px;
}

.currency-chooser button {
	display: block;
	width: 100%;
	margin: 0 0 4px 0;
	padding: 5px 8px;
	background: #f6f6f6;
	border: 1px solid #e1e1e1;
	border-radius: 3px;
	text-align: left;
	color: #333;
}

.currency-chooser:focus {
	outline: none;
}

.currency-chooser button:hover {
	background: #eee;
}

/* Keyboard focus: an outline only, so it doesn't look chosen */
.currency-chooser button:focus {
	outline: 2px solid #9fd8ef;
	outline-offset: 1px;
}

/* The current choice */
.currency-chooser button.selected {
	background: #e8f7fd;
	border-color: #00aeef;
	font-weight: 600;
}

.currency-chooser button .symbol {
	color: #888;
	font-weight: normal;
}

.currency-chooser button .rate {
	float: right;
	color: #888;
	font-weight: normal;
}
