/* CSS

1: Core styles
2: Typography
3: Forms
*/

/**********************/
/* 1:   CORE STYLES   */
/**********************/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+KR:wght@100..900&family=Permanent+Marker&family=Dokdo&display=swap');

@font-face {
	font-family: FontAwesome;
	font-weight: 400;
	font-style: normal;
	src: url(../font/fontawesome/fontawesome-webfont.eot);
	src: url(../font/fontawesome/fontawesome-webfont.eot) format('embedded-opentype'), url(../font/fontawesome/fontawesome-webfont.woff) format('woff'), url(../font/fontawesome/fontawesome-webfont.ttf) format('truetype'), url(../font/fontawesome/fontawesome-webfont.svg) format('svg')
}

* {
  box-sizing: border-box;
}

body {
    margin: 0;
    color: #666;
    background-color: var(--background);
	width: 100vw;
	height: 100svh;
}

a {
  color: inherit;
  cursor: pointer;
}

/**********************/
/* 2:   TYPOGRAPHY    */
/**********************/
body {
  font-family: "Montserrat", "Noto Sans KR", sans-serif;
  font-size: 100%; /* 16px */
}

a {
  text-decoration: none;
}

h1 {
  font-size: 1.8em;
}

h1, h2, h3, h4 {
  font-weight: 700;
  margin: 0;
}

p {
  margin: 0;
}

svg {
    display: inline-block;
	width: 24px;
	height: 24px;
}

svg path {
	stroke-width: 2;
}

svg.bulk path,
svg.bold path {
	fill: #292D32;
}

svg.linear path,
svg.twotone path,
svg.outline path,
svg.broken path {
	stroke: #292D32;
}

.cursor-pointer {
	cursor: pointer;
}

*[content-attr] {
	display: flex;
	align-items: center;
	column-gap: 1px;
	font-size: 1.3em;
	font-weight: 700;
}

*[content-attr]::after {
	content: attr(content-attr);
}

/*************************/
/* 3:       FORMS        */
/*************************/
button, input, optgroup, select, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox  */
input[type='number'] {
  -moz-appearance: textfield;
}

select::-ms-expand { 
	display: none;
}

select {
    -o-appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
	color: var(--secondary);
	outline: none;
	cursor: pointer;
}

select[readonly],
select[disabled] {
	background: var(--gray-background);
	color: var(--gray);
	border: 1px solid var(--border);
}

/* logo */
.logo-box {
	width: fit-content;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	column-gap: 20px;
	z-index: 100;
}

.logo-box .logo {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	column-gap: 5px;
	flex-shrink: 0;
}

.logo-box .logo img {
  height: 100%;
  max-height: 30px;
  margin: 0;
  filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(175deg) brightness(101%) contrast(100%);
}

.logo-box .logo .text {
	font-weight: 700;
	font-size: 1.5em;
	color: white;
}

/* margin */

.margin-right-5 {
	margin-right: 5px !important;
}

.margin-top-5 {
	margin-top: 5px !important;
}

.margin-top-10 {
	margin-top: 10px !important;
}

.margin-top-20 {
	margin-top: 20px !important;
}

.margin-top-40 {
	margin-top: 40px !important;
}

.margin-bottom-10 {
	margin-bottom: 10px !important;
}

.margin-bottom-20 {
	margin-bottom: 20px !important;
}

.margin-bottom-40 {
	margin-bottom: 40px !important;
}

/* padding */
.padding-top-5 {
	padding-top: 5px !important;
}

.padding-top-10 {
	padding-top: 10px !important;
}

.padding-top-20 {
	padding-top: 20px !important;
}

.padding-top-40 {
	padding-top: 40px !important;
}

.padding-top-80 {
	padding-top: 80px !important;
}

.padding-bottom-5 {
	padding-bottom: 5px !important;
}

.padding-bottom-10 {
	padding-bottom: 10px !important;
}

.padding-bottom-20 {
	padding-bottom: 20px !important;
}

.padding-bottom-30 {
	padding-bottom: 30px !important;
}

.padding-bottom-40 {
	padding-bottom: 40px !important;
}

.padding-bottom-80 {
	padding-bottom: 80px !important;
}

.padding-side-15 {
	padding: 0 15px !important;
}

.padding-side-20 {
	padding: 0 20px !important;
}

.padding-all-20 {
	padding: 20px !important;
}

.padding-all-40 {
	padding: 40px !important;
}

.color-gray {
	color: var(--gray-text) !important;
}

.color-black {
	color: black;
}

.font-weight-500 {
	font-weight: 500 !important;
}

.font-weight-600 {
	font-weight: 600 !important;
}

.font-size-08 {
	font-size: 0.8rem !important;
}

.border-solid-1 {
	border: 1px solid var(--border) !important;
}

.border-solid-1-primary {
	border: 1.5px solid var(--primary) !important;
}

.border-top-solid-1 {
	border-top: 1px solid var(--border) !important;
}

.border-bottom-solid-1 {
	border-bottom: 1px solid var(--border) !important;
}

.background-gray {
	background-color: var(--gray-background) !important;
}

.border-radius-all-20 {
	border-radius: 20px;
}

.border-radius-top-20 {
	border-radius: 20px 20px 0 0;
}

.border-radius-bottom-20 {
	border-radius: 0 0 20px 20px;
}

.primary {
	color: var(--primary) !important;
}

.heart {
	color: var(--heart) !important;
}

.color-0 {
	color: var(--heart) !important;
}

.color-1 {
	color: hsl(346, 76%, 80%) !important;
}

.color-2 {
	color: hsl(248, 100%, 80%) !important;
}

.color-3 {
	color: hsl(211, 100%, 80%) !important;
}

.width-100 {
	width: 100% !important;
}

.width-50px {
	width: 50px !important;
}

.width-80px {
	width: 80px !important;
}

.width-90px {
	width: 90px !important;
}

.width-100px {
	width: 100px !important;
}

.width-120px {
	width: 120px !important;
}

.width-150px {
	width: 150px !important;
}

.width-200px {
	width: 200px !important;
}

.width-300px {
	width: 300px !important;
}

.width-fitcontent {
	width: fit-content !important;
	min-width: fit-content !important;
	max-width: fit-content !important;
}

.height-100 {
	height: 100% !important;
}

.height-100px {
	height: 100px !important;
}

.wrapper {
	width:inherit;
	padding: 20px 15px !important;
}

.word-wrap {
	overflow: hidden;
	white-space: normal;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

.line-clamp-2 {
	-webkit-line-clamp: 2;
}

.line-clamp-4 {
	-webkit-line-clamp: 4;
}

.text-indent-20 {
	text-indent: 20px;
}

/* toast-notification */
.toast-notification--info {
	--toast-bg: #f0fbfe;
	--toast-primary: #0ea1e7;
}
.toast-notification--finalised {
	--toast-bg: #f7f6fb;
	--toast-primary: #9077df;
}
.toast-notification--failure {
	--toast-bg: #fff1f6;
	--toast-primary: #c43060;
}
.toast-notification--warning {
	--toast-bg: #fff9eb;
	--toast-primary: #d6a024;
}
.toast-notification--success {
	--toast-bg: #ecfbf2;
	--toast-primary: #335d48;
}
.toast-notification {
	position: absolute;
	left: 50%;
	top: 90px;
	border-left: 0.25rem solid var(--toast-primary);
	background-color: var(--toast-bg);
	color: var(--toast-primary);
	max-width: 320px;
	width: 100%;
	transform: translate(-50%, -50px);
	opacity: 0;
	visibility: hidden;
	animation: fade-in 3s linear;
	margin: 0;
}

.toast-notification__description {
	display: flex;
	gap: 4px;
	align-items: center;
	font-size: 1rem;
	flex-grow: 2;
}

.toast-notification__body {
	display: flex;
	flex-direction: row;
	padding: 12px;
}

.toast-notification__button {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	cursor: pointer;
	padding: 0;
	border: none;
	background: none;
	font-size: .9rem;
	text-align: right;
	white-space: nowrap;
	margin-left: 20px;
	flex-grow: 1;
	color: var(--toast-primary);
}

.toast-notification__button:hover {
	text-decoration: underline;
}

.toast-notification__progress {
	position: absolute;
	left: 8px;
	bottom: 4px;
	width: calc(100% - 16px);
	height: 3px;
	transform: scaleX(0);
	transform-origin: left;
	border-radius: inherit;
	animation: progress 2.5s 0.3s linear;
	background: linear-gradient(to right, var(--toast-bg), var(--toast-primary));
}

.icon__wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	margin-right: 8px;
	padding: 6px;
}

.icon__wrapper i {
	color: var(--toast-primary);
}

@keyframes fade-in {
	5% {
		opacity: 1;
		visibility: visible;
		transform: translate(-50%, 0);	
	}
	
	95% {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

@keyframes progress {
	to {
		transform: scaleX(1);
	}
}

/* text-field */

.text-field {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	color: var(--text);
}

.grid-field {
	display: grid;
	align-items: center;
	grid-template-columns: 100px 1fr;
	gap: 5px;
}

.text-field i {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
}

.text-field[comma-value]:before{
	content: attr(comma-value);
	color: var(--secondary);
	position: absolute;
	top: 50%;
	left: 1.25rem;
	transform: translateY(-50%);
	text-align: left;
	font-size: 1rem;
	margin: 0;
	padding: 0;
}
.text-field[comma-value] input{
	color: var(--white);
}

.text-field input {
	color: var(--secondary);
	max-width: 100%;
	width: 100%;
	border: 1px solid var(--border);
	min-height: 3rem;
	letter-spacing: .03rem;
	outline: none;
	background: var(--white);
	transition: .25s;
	border-radius: 0.5rem;
	text-indent: 1.25rem;
}

.text-field .inputbox input {
	text-align: right;
	padding-right: 25px;
}

.text-field .inputbox {
	position: relative;
}

.text-field .inputbox::after {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	color: var(--gray);
	weight: 600;
}

.text-field .price::after {
	content: "원";
}
.text-field .stock::after {
	content: "개";
}

.text-field label {
	font-weight: 500;
	
}

.text-field input:user-invalid {
	background: var(--white);
	color: var(--error);
	border: 1px solid var(--error);
}

.text-field textarea {
	width: 100%;
	height: 200px;
	font-size: 1rem;
	border: 1px solid var(--border);
	resize: none;
	background: var(--white);
	border-radius: 10px;
	color: var(--text);
	padding: 10px;
}

.text-field.remaining textarea {
	width: 100%;
	height: 200px;
	font-size: 1rem;
	border: 1px solid var(--border);
	resize: none;
	background: var(--white);
	border-radius: 10px;
	color: var(--text);
	padding: 10px;
}
.text-field.remaining .max-count {
	font-size: .8rem;
	position: absolute;
	bottom: 10px;
	right: 10px;
}

.text-field textarea:focus {
	outline: none;
}

.error-message {
	font-size: 0.8rem;
	color: var(--error);
}

.text-field input[disabled] {
	background: var(--gray-background);
	color: var(--gray-text);
	border: 1px solid var(--border);
}

.text-field input:user-invalid~.error-message {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.8rem;
	color: var(--error);
}

.text-field input:focus {
	border: 1px solid var(--primary);
	box-shadow: rgba(99, 99 ,99 0.2) 0px 1px 4px 0px;
}

.text-field input[readonly]:focus {
	border: 1px solid var(--border);
	box-shadow: 0;
}

.text-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip:rect(0,0,0,0);
  border: 0;
}

p.tip {
	font-size: .8rem;
	color: var(--gray-text);
}

p.tip::before {
	font-family:fontawesome;
	content: "\f1b0";
	margin-right: 5px;
}

.text-field > a {
	position: absolute;
	top: 0;
	right: 0;
	background: none;
}

.text-field > a:hover {
	background: none;
	color: var(--primary);
}

.text-field .input-wrapper {
	display: grid;
	align-items: center;
	grid-template-columns: 1fr minmax(auto, 100px);
	gap: 5px;
}

.check-field {
	width: 100%;
}

.check-field input{
	display: none;
}
.check-field input + label{
	display: flex;
	align-items: center;
	column-gap: 10px;
	width: 100%;
	height: fit-content;
	padding: 10px 0;
	position: relative;
	cursor: pointer;
	font-weight: 400;
}

.check-field.box input + label{
	color: var(--text);
	border: 1px solid var(--border);
	height: 38px;
	padding: 0 10px;
	background: var(--gray-mid);
	transition: .25s;
	border-radius: 5px;
}

.check-field input + label img {
	height: 30px;
}

.check-field input + label svg path {
	fill: var(--white);
	stroke: var(--secondary);
	stroke-width: 1;
}

.check-field input[disabled] + label svg path {
	fill: var(--gray) !important;
}

.check-field.box input:checked + label{
	background: var(--secondary);
	color: var(--white);
}

.check-field input:checked + label svg {
	filter: none;
}

.check-field input:checked + label svg path {
	fill: var(--primary);
	stroke: var(--white) !important;
}

.check-field input + label::after {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
}

.check-field input + label[data-price]::after {
	content: attr(data-price) "원";
	color: var(--primary-dark);
	font-weight: 500;
}

.check-field input + label[data-time]::after {
	content: attr(data-time);
	color: var(--primary-dark);
	font-weight: 500;
}


/*coupon*/
.coupon-container {
	display: flex;
	flex-direction: column;
	row-gap: 10px;
}

.coupon-wrapper {
	position: relative;
	display: grid;
    grid-template-columns: 1fr 100px;
	overflow: hidden;
}

.coupon-wrapper .circle-border {
    width: 30px;
	height: 30px;
    background-color: var(--table-background);
    border-radius: 50%;
    position: absolute;
    top: 50%;
	right: -15px;
	transform: translateY(-50%);
}

.coupon-wrapper .coupon-info {
	width: 100%;
	padding: 20px;
	background: var(--gray-soft);
	border: 1px solid var(--gray-mid);
	border-right: 0;
	border-radius: 10px 0 0 10px;
	color: var(--secondary);
}
.coupon-wrapper .coupon-info .discount {
  font-size: 1.2rem;
  font-weight: 600;
}

.coupon-wrapper .coupon-info .title {
	font-weight: 500;
}

.coupon-wrapper .coupon-info .amount {
	font-size: .8rem;
	color: var(--gray-text);
	margin-top: 5px;
}

.coupon-container .duration_of {
	font-size: .8rem;
	color: var(--gray-text);
}

/* coupon-field */

.coupon-field {
	width: 100%;
}

.coupon-field input{
	display: none;
}

.coupon-field input + label{
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0;
	position: relative;
	cursor: pointer;
	font-weight: 400;
	column-gap: 0;
	background: linear-gradient(to right top, #9956f2, #6781ec);
	color: var(--white);
	font-size: .9rem;
	border-radius: 0 10px 10px 0;
}

.coupon-field input + label .icons{
	text-align: center;
}

.coupon-field input + label .checked{
	display: none;
}

.coupon-field input:checked + label .check,
.coupon-field input[disabled] + label .check{
	display: none;
}

.coupon-field input:checked + label .checked,
.coupon-field input[disabled] + label .checked{
	display: block;
}

.coupon-field input + label svg path {
	stroke: var(--white);
}

.coupon-field input:checked + label,
.coupon-field input[disabled] + label{
	background: var(--gray);
	color: var(--gray-text);
	border: 1px solid var(--gray-dark);
}

.coupon-field input:checked + label svg path,
.coupon-field input[disabled] + label svg path {
	stroke: var(--gray-text);
}

/* btn */
.btn {
    min-width: min-content;
    white-space: nowrap;
    vertical-align: middle;
	border-radius: 0.4rem;
	outline: none;
	border: none;
	font-weight: 400;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	column-gap: 2px;
}

.btn-sm {
	font-size: .8rem;
	min-height: 2rem;
}

.btn-nm {
	font-size: .9rem;
	min-height: 2.5rem;
}

.btn-lg {
	font-size: 1rem;
	min-height: 3rem;
}

.btn-square {
	aspect-ratio: 1/1;
}

.btn-circle {
	aspect-ratio: 1/1;
	border-radius: 50%;
}

.btn--gray {
	background-color: var(--gray-mid);
	color: var(--text);
}

.btn--gray-dark {
	background-color: var(--gray-dark);
	color: var(--text);
}

.btn--secondary {
	background-color: var(--secondary);
	color: var(--white);
}

.btn--primary {
	background-color: var(--primary);
	color: var(--white);
}

.btn--error {
	background-color: var(--heart);
	color: var(--white);
}

.btn--green {
	background-color: rgba(34, 171, 148, 1);
	color: var(--white);
}

.btn--primary svg path,
.btn--primary-hover:hover svg path,
.btn--primary-hover.active svg path {
	stroke: var(--white);
}

.btn--primary-hover {
	background-color: var(--gray-mid);
	color: var(--primary);
	transition: all 0.3s ease-in-out;
}

.btn--primary-hover:hover,
.btn--primary-hover.active {
	background-color: var(
		--primary);
	color: var(
		--background);
}

.btn--transparent {
	background: none;
}

.btn--transparent.bulk svg path,
.btn--transparent.bold svg path {
	fill: var(--secondary);
}

.btn--transparent.linear svg path,
.btn--transparent.twotone svg path {
	stroke: var(--secondary);
}

.btn--white {
	background-color: var(--white);
}

.btn--white-hover {
	background-color: var(--white);
	transition: all 0.3s ease-in-out;
}

.btn--white-hover:hover,
.btn--white-hover.active {
	background-color: var(
		--secondary);
	color: var(
		--white);
}

.btn--white-hover:hover svg path,
.btn--white-hover.active svg path {
	fill: var(--white);
}

.btn--add {
    font-size: 20px;
    line-height: 1;
    font-weight: bold;
	color: var(--primary);
	background: var(--white);
	box-shadow: 0 0 1px 0 rgba(96, 93, 255, 1) !important;
}

.btn--delete,
.btn--minus {
    font-size: 20px;
    line-height: 1;
    font-weight: bold;
	color: var(--error);
	background: var(--white);
	box-shadow: 0 0 1px 0 rgba(254, 46, 46, 1) !important;
}

.circle-btn {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 0;
	border-radius: 50%;
	color: #000;
	font-size: 1.2rem;
	cursor: pointer;
}

.error {
  color: var(--error);
  font-size: .8rem;
}

/* grid */

.grid {
	display: grid;
    grid-gap: 10px;
    gap: 10px;
	grid-template-columns: repeat(5, 1fr);
}

.grid-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 5px;
	grid-gap: 5px;
}

@media screen and (max-width: 768px) {
	.grid,
	.grid-wrapper {
		max-width: 100vw;
		display: block;
		margin: 0;
	}
}

.grid-template-columns-1 {
	grid-template-columns: 1fr !important
}

.grid-template-columns-1-1 {
	grid-template-columns: 1fr 1fr !important
}

.grid-template-columns-auto-1 {
	grid-template-columns: auto 1fr !important
}

.grid-template-columns-1-auto {
	grid-template-columns: 1fr auto !important
}

.grid-template-columns-1-1-2 {
	grid-template-columns: 1fr 1fr 2fr !important
}

.grid-template-rows-auto-1 {
	grid-template-rows: auto 1fr !important;
}

.grid-template-rows-1-auto {
	grid-template-rows: 1fr auto !important;
}

.grid-template-rows-auto-1-auto {
	grid-template-rows: auto 1fr auto !important;
}

/* Flex */

.flex {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 5px;
}

@media screen and (max-width: 768px) {
	
	.flex.mobile-block {
		display: block !important;
	}
}

.flex-center {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.flex-direction-column {
	flex-direction: column !important;
}

.flex-direction-column-reverse {
	flex-direction: column-reverse !important;
}

.flex-direction-row {
	flex-direction: row !important;
}

.flex-direction-row-reverse {
	flex-direction: row-reverse !important;
}

.flex-wrap {
	flex-wrap: wrap !important;
}

.justify-content-flex-start {
	justify-content: flex-start !important;
}

.justify-content-flex-end {
	justify-content: flex-end !important;
}

.justify-content-center {
	justify-content: center !important;
}

.justify-content-space-around {
	justify-content: space-around !important;
}

.justify-content-space-evenly {
	justify-content: space-evenly !important;
}

.justify-content-space-between {
	justify-content: space-between !important;
}

.align-items-center {
	align-items: center !important;
}

.align-items-stretch {
	align-items: stretch !important;
}

.align-items-start {
	align-items: start !important;
}

.align-items-end {
	align-items: end !important;
}

.align-items-flex-start {
	align-items: flex-start !important;
}

.align-items-flex-end {
	align-items: flex-end !important;
}

.column-gap-1 {
	column-gap: 1px !important;
}

.column-gap-5 {
	column-gap: 5px !important;
}

.column-gap-10 {
	column-gap: 10px !important;
}

.column-gap-15 {
	column-gap: 15px !important;
}

.column-gap-20 {
	column-gap: 20px !important;
}

.column-gap-25 {
	column-gap: 25px !important;
}

.column-gap-30 {
	column-gap: 30px !important;
}

.text-left {
	text-align: left !important;
}

.text-right {
	text-align: right !important;
}

.text-center {
	text-align: center !important;
}

.input {
	position: relative;
}

.input::after,
.input svg {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
}

.input.period input {
	font-size: 1.2rem;
	font-weight: 500;
	text-align: right;
	padding-right: 55px;
}

.input.period select {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);	
	padding: 0 5px;
	width: fit-content;
	box-shadow: -2px 0px 5px -5px rgba(0, 0, 0, 0.5) !important;
	border-radius: 0 5px 5px 0;
}

.input.price,
.input.percentage,
.input.stock,
.input.text {
	font-size: 1.2rem;
	font-weight: 500;
}

.input.price input,
.input.percentage input,
.input.stock input {
	font-size: 1.2rem;
	font-weight: 500;
	text-align: right;
	padding-right: 40px;
}

.input.datepicker input {
	font-size: 1.2rem;
	font-weight: 500;
	text-align: left;
	text-indent: 30px;
}

.input.datepicker svg {
	position: absolute;
	top: 50%;
	left: 10px;
	right: auto;
	transform: translateY(-50%);
}

.input.price::after {
	content: attr(data-label);
}

.input.percentage::after {
	font-family: fontawesome;
	content: "\f295";
}

.input.stock::after {
	content: "개";
}

*[data-price]::after {
	content: attr(data-price);
	margin-left: 5px;
}

/* datepicker */
.ui-datepicker {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
}

.ui-datepicker-header {
    background: #f8f9fa;
    border: none;
    border-radius: 3px;
	padding: 0 !important;
}

.ui-datepicker-header .ui-corner-all {
	position: absolute;
	top: 0 !important;
	height: 100% !important;
	display: flex !important;
	align-items: center !important;
	padding: 0 !important;
	margin: 0 !important;
}

.ui-datepicker-header .ui-datepicker-prev {
	left: 0 !important;
}

.ui-datepicker-header .ui-datepicker-next {
	right: 0 !important;
}

.ui-datepicker-header .ui-corner-all .ui-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 0 !important;
	margin: 0 !important;
}

.ui-datepicker-calendar .ui-state-default {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
	padding: 10px 0;
	text-align: center;
}

.ui-datepicker-calendar .ui-state-hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.ui-datepicker-calendar .ui-state-active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.ui-timepicker-div dt.ui_tpicker_millisec_label,
.ui-timepicker-div dd.ui_tpicker_millisec,
.ui-timepicker-div dt.ui_tpicker_microsec_label,
.ui-timepicker-div dd.ui_tpicker_microsec,
.ui-timepicker-div dt.ui_tpicker_timezone_label,
.ui-timepicker-div dd.ui_tpicker_timezone {
	display: none !important;
}

.ui-timepicker-div dl {
	display: grid;
	align-items: center;
	grid-gap: 10px;
	gap: 10px;
	grid-template-columns: repeat(2, 1fr);
}

/* modal */
.modal {
	min-width: 380px;
	max-width: 455px;
	width: calc(calc(100vw - 455px) / 2);
    background: var(--table-background);
    transition: all 600ms cubic-bezier(0.86, 0, 0.07, 1);
    position: fixed;
	bottom: 0;    
	transform: translateY(calc(100% + 10px));
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto 1fr auto;
	&.open {
		z-index: 1003;
		max-height: 90%;
		transform: translateY(0);
	}
    .modal__header {
		position: relative;
		width: 100%;
		border-bottom: 1px solid var(--border);
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-size: 1.2rem;
		font-weight: 500;
		padding: 20px;
		&:before {
		    content: '';
		    width: 100%;
		    height: 10px;
			position: absolute;
		    left: 0;
		    top: -10px;
		    background-size: 10px 10px;
		    background-repeat: repeat-x;
		    background-position: 0 0, 0 0, 100% 0, 100% 0;
		    background-image: linear-gradient(-135deg, transparent 75%, var(--table-background) 75%), linear-gradient(135deg, transparent 75%, var(--table-background) 75%);
		    text-align: left;
		}
    }
    .modal__body {
		position: relative;
		margin: 0;
		padding: 0;
		overflow-y: auto;
    }
	
	.modal__footer {
		width: 100%;
		border-top: 1px solid var(--border);
	}
	
	.price {
		font-weight: 500;
		font-size: 1.1rem;
		text-align: left;
		&:after {
			content: '원';
		}
	}

	.quantitybox {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		input[type='number'] {
			width: 40px;
			height: 40px;
			line-height: 40px;
			border: 0;
			outline: none;
			text-align: center;
		}
	}
}

@media screen and (min-width: 769px) {
	.modal__body::-webkit-scrollbar {
		width: 5px;
	}

	.modal__body::-webkit-scrollbar-thumb {
		background: var(--gray);
		border-radius: 0.5rem;
	}

	.modal__body::-webkit-scrollbar-track {
		background: var(--table-bg);
	}
}


.modal__cover-layer {
	position: fixed;
	z-index: 1002;
	top: 0;
	height: 100%;
	width: 100%;
	min-width: 380px;
	max-width: 455px;
	background: rgba(0,0,0,0.5);
	transition: opacity 600ms,visibility 600ms;
	opacity: 0;
	visibility: hidden;
}

@media screen and (max-width: 768px) {
	.modal {
		min-width: 100vw;
		width: 100vw;
		max-width: 100vw;
	    .modal__header {
			max-width: 100vw;
			&:before {
			    max-width: 100vw;
			}
	    }
	    .modal__body {
			max-width: 100vw;
	    }
	
		.modal__footer {
			max-width: 100vw;
		}
	}
	
	.modal__cover-layer {
		min-width: 100vw;
		width: 100vw;
		max-width: 100vw;
	}
}

.modal.open+.modal__cover-layer {
	opacity: 1;
	visibility: visible;
}

/* terms-content */

.terms-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    line-height: 1.6;
    color: #333;
	background: var(--table-background);
}

@media screen and (max-width: 768px) {
	.terms-content {
	    padding: 40px 15px;
	}
}

.terms-content h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}
.terms-content h2 {
    color: #34495e;
    margin-top: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.terms-content .article {
    margin-bottom: 20px;
	font-size: .9rem;
}
.terms-content .article-title {
    font-weight: bold;
    margin-bottom: 10px;
}
.terms-content .sub-section {
    margin-left: 20px;
}
.terms-content .number-list {
    list-style-type: decimal;
    margin-left: 20px;
	padding: 0;
}
.terms-content .sub-list {
    list-style-type: lower-alpha;
    margin-left: 20px;
	padding: 0;
}
.terms-content .footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

/* PAGINATION */
.pagination {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 400;
	font-size: 0.7rem;
	border-top: 1px solid #eaeaea;
	padding: 20px;
}

.pagination .search-field {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
}

.pagination .search-field button {
	width: 100%;
}

.pagination .search-field button[disabled] {
	background: var(--gray-soft);
}

.pagination .search-field button[disabled]:hover {
	cursor: default;
	color: var(--text);
}

@media screen and (max-width: 768px) {
	
	.pagination {
		flex-direction: column;
		row-gap: 10px;
		justify-content: flex-start;
		align-items: flex-start;
	}
	
	.pagination .search-field {
		width: 100%;
	}
}