@charset "utf-8";

.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 5px;
	height: 2.13rem;
	padding: 0 0.93rem;
	font-family: inherit; font-size: 1rem; font-weight: 500; line-height: 1;
	white-space: nowrap; text-align: center; text-decoration: none;
	color: #fff;
	background: var(--primary);
	border: 1px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	transition: filter .13s ease;
}
.button:hover { color: #fff; }
@media (hover: hover) {
	.button:hover { filter: brightness(.93); }
}
.button:active { filter: brightness(.86); }

.button[disabled],
.button.is_disabled {
	cursor: not-allowed;
	opacity: .55;
	filter: grayscale(1);
}
.button[disabled]:hover,
.button.is_disabled:hover { filter: grayscale(1); }

/* ===== 크기 ===== */
.button_xs { height: 1.87rem; padding: 0 0.8rem; font-size: 0.87rem; }
.button_lg { height: 2.93rem; padding: 0 1.47rem; font-size: 1.13rem; }
.button_block { display: flex; width: 100%; }

/* ===== 뜻 ===== */
.button_success { background: var(--success); }
.button_danger  { background: var(--danger); }
.button_warning { background: var(--warning); }
.button_dark    { background: var(--dark); }

.button_purple  { background: var(--purple); }

.button_ghost { color: inherit; background: none; border-color: var(--line); }
.button_ghost:hover { color: inherit; background: rgba(128, 128, 128, .15); filter: none; }

.button_link {
	height: auto; padding: 0;
	color: var(--link); background: none; border: 0;
	text-decoration: underline;
}
.button_link:hover { color: var(--link); filter: brightness(.85); }

.button.is_loading { opacity: .7; cursor: progress; pointer-events: none; }

/* ===== 팔레트 ===== */
.button_choral       { background: var(--choral); }
.button_tomato       { background: var(--tomato); }
.button_red          { background: var(--red); }
.button_orange       { background: var(--orange); }
.button_brown        { background: var(--brown); }
.button_secondary    { background: var(--secondary); }
.button_info         { background: var(--info); }
.button_midnightblue { background: var(--midnightblue); }
.button_royalblue    { background: var(--royalblue); }
.button_deeppink     { background: var(--deeppink); }
.button_seagreen     { background: var(--seagreen); }

.button_tan      { background: var(--tan); }
.button_gray     { color: var(--on_light); background: var(--gray); }
.button_lavender { color: var(--on_light); background: var(--lavender); }
.button_gray:hover, .button_lavender:hover { color: var(--on_light); }

.button_icon { width: 2.13rem; padding: 0; }
.button_icon.button_xs { width: 1.87rem; }
