/* SC-ICG Currency Switcher — Frontend Styles
 * 幣別切換器（浮動 & inline）+ 結帳提示
 */

/* =========================================================
   浮動切換器
   ========================================================= */
.sc-icg-csw-floating {
	position:   fixed;
	z-index:    99999;
	bottom:     24px;
}

.sc-icg-csw-floating.bottom-right {
	right: 24px;
}

.sc-icg-csw-floating.bottom-left {
	left: 24px;
}

/* =========================================================
   Inline 切換器（shortcode）
   ========================================================= */
.sc-icg-csw-inline {
	display: inline-block;
}

/* =========================================================
   下拉選單樣式
   ========================================================= */
.csw-dropdown-wrap {
	position: relative;
	display:  inline-block;
}

.csw-select {
	height:          36px;
	padding:         0 32px 0 12px;
	border:          1px solid rgba(0, 0, 0, 0.18);
	border-radius:   8px;
	background:      rgba(255, 255, 255, 0.95);
	color:           #333;
	font-size:       13px;
	font-weight:     500;
	font-family:     inherit;
	cursor:          pointer;
	box-shadow:      0 2px 8px rgba(0, 0, 0, 0.12);
	-webkit-appearance: none;
	appearance:      none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat:   no-repeat;
	background-position: right 10px center;
	transition:      border-color 0.2s, box-shadow 0.2s;
}

.csw-select:focus {
	outline:      none;
	border-color: #0A6EB1;
	box-shadow:   0 2px 8px rgba(0,0,0,0.12), 0 0 0 2px rgba(10,110,177,0.15);
}

/* =========================================================
   按鈕群組樣式
   ========================================================= */
.csw-btn-group {
	display:       inline-flex;
	border:        1px solid rgba(0, 0, 0, 0.18);
	border-radius: 8px;
	overflow:      hidden;
	box-shadow:    0 2px 8px rgba(0, 0, 0, 0.12);
	background:    rgba(255, 255, 255, 0.95);
}

.csw-btn {
	height:      36px;
	padding:     0 12px;
	border:      none;
	border-right: 1px solid rgba(0, 0, 0, 0.10);
	background:  transparent;
	color:       #555;
	font-size:   12px;
	font-weight: 500;
	font-family: inherit;
	cursor:      pointer;
	transition:  background 0.15s, color 0.15s;
	white-space: nowrap;
}

.csw-btn:last-child {
	border-right: none;
}

.csw-btn:hover {
	background: rgba(10, 110, 177, 0.08);
	color:      #0A6EB1;
}

.csw-btn.csw-active {
	background: #0A6EB1;
	color:      #fff;
}

/* =========================================================
   結帳提示
   ========================================================= */
.sc-icg-csw-checkout-notice {
	display:       flex;
	align-items:   flex-start;
	gap:           10px;
	padding:       14px 18px;
	margin-bottom: 20px;
	border-radius: 8px;
	font-size:     13.5px;
	background:    rgba(10, 110, 177, 0.08);
	color:         #0A6EB1;
	border:        1px solid rgba(10, 110, 177, 0.15);
}

.sc-icg-csw-checkout-notice svg {
	flex-shrink: 0;
	margin-top:  2px;
}

.sc-icg-csw-checkout-notice strong {
	font-weight: 600;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 480px) {
	.sc-icg-csw-floating.bottom-right {
		right:  12px;
		bottom: 16px;
	}
	.sc-icg-csw-floating.bottom-left {
		left:   12px;
		bottom: 16px;
	}

	.csw-select,
	.csw-btn {
		height:    40px;
		font-size: 14px;
	}
}
