* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

body {
    background: white;
    font-size: 16px;
    color: #1f1f1f;
    line-height: 1.5;
    /*overflow-x: hidden;*/
    min-width: 1280px;
}

a {
    color: inherit;
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

ul, li, ol {
    list-style: none;
    box-sizing: border-box;
}

button {
    cursor: pointer;
    border: none;
}

.hide {
  display: none;
}

.show {
  display: black;
}

.error-text {
  display: inline-block;
  padding-top: 5px;

  font-size: 14px;
  color: #ef4444;

  display: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: white;
    box-shadow: 0px 0px 4px 0px rgba(78, 98, 114, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.header-content {
    width: 100%;
    margin: 0 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
}

.logo-img {
    width: 42px;
    height: 42px;
}

.logo-text {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.24px;
    color: black;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-item {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.0912px;
    color: #1f1f1f;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-item:hover {
    color: #2752ff;
}

.nav-item.active {
    color: #2752ff;
    font-weight: 600;
}

.top-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.0912px;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}


.top-btn.login {
    background: #2752ff;
    color: white;
}

.top-btn.login:hover {
    background: #1a3acc;
}

.top-btn.logout {
    background: white;
    border: 1px solid #eceef3;
    color: #98A1AC;
}

.top-btn.logout:hover {
    background: #f9fafd;
    border-color: #98a1ac;
}


/* Main Content */
.main-content {
    padding-top: 90px;
}


/* Footer */
.footer {
    background: #f5f7f9;
    padding: 60px 280px;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    gap: 200px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 203px;
}

.footer-brand-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.0912px;
    color: #98a1ac;
}

.footer-links {
    display: flex;
    gap: 216px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 70px;
}

.footer-column-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.24px;
    color: #1f1f1f;
}

.footer-column-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.0912px;
    color: #98a1ac;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #2752ff;
}

.pagination {
	width: 100%;
	display: flex;
	justify-content: center;
	padding: 12px;
}
.pagination .page {
	margin: 0;
	padding: 0;
	text-align: center
}
.pagination .page li {
	display: inline
}
.pagination .page li a {
	display: inline-block;
	text-decoration: none;
	padding: 5px 10px;
	font-size: 14px;
	font-weight: normal;
	color: #333
}

.pagination .page li a {
	border-radius: 5px;
	-webkit-transition: background-color 0.3s;
	transition: background-color 0.3s
}
.pagination .page li a.active {
	background-color: #404f6b;
	color: #fff
}
.pagination .page li a:hover:not(.active) {
	background-color: #ddd;
}


/*
.popup-loading-dots {
    display: inline-flex;
    gap: 4px;
    margin-right: 6px;
    vertical-align: middle;
}

.popup-loading-dots i {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    display: block;
    animation: popup-dotBounce 1.2s infinite ease-in-out;
}

.popup-loading-dots i:nth-child(2) { animation-delay: 0.15s; }
.popup-loading-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes popup-dotBounce {
    0%, 80%, 100% { transform: scale(0); opacity: .5; }
    40% { transform: scale(1); opacity: 1; }
}*/

.modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.modal-dim {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 700px;
    flex-direction: column;
    box-shadow: 0px 0px 4px 0px rgba(78, 98, 114, 0.2);
    z-index: 9999;

    border-radius: 20px;
    overflow: hidden;
    background-color: white;
}

.modal-header {
    border-radius: 20px 20px 0 0;
    /*padding: 24px;*/
    padding: 24px 24px 4px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-title {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.334;
    color: #1f1f1f;
    letter-spacing: -0.552px;
}

.modal-subtitle {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: #1f1f1f;
    letter-spacing: 0.0912px;
}

.modal-close-btn {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.modal-footer {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;

    padding: 24px;
}

.modal .button-group {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.modal-footer button:first-child {
    flex: 3;
}

.modal-footer button:last-child {
    flex: 7;
}


/* Search Box */
.modal .search-container {
    background-color: white;
    height: 44px;
    padding: 1px 24px;
}

.modal .search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.modal .search-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.modal .search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    background: transparent;
}

.address-add-container {
    background-color: white;
    height: 50px;
    padding: 1px 24px;
}

.address-add-btn {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;

    padding:12px 14px;
    width: 98%;
    background: white;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
}

.address-add-btn:hover{
    /*background:#f5f5f5;*/
}

/* Address List */
.modal .address-list-container {
    overflow: hidden;
    display: flex;
}

.modal .address-list {
    background-color: white;
    flex: 1;
    overflow-y: auto;

    height: 500px;
}

.modal .address-item {
    background-color: white;
    padding: 12px 12px 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 688px;
}

.modal .address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal .address-name {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.445;
    color: #1f1f1f;
    letter-spacing: -0.0036px;
}

.modal .select-btn {
    background-color: #2752ff;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.modal .select-btn-text {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: white;
    letter-spacing: 0.0912px;
}

.modal .address-detail {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.625;
    color: #1f1f1f;
    letter-spacing: 0.0912px;
}

.modal .address-meta {
    display: flex;
    gap: 4px;
    align-items: center;
}

.modal .address-meta-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.625;
    color: #98a1ac;
    letter-spacing: 0.0912px;
}

.modal .dot {
    width: 2px;
    height: 2px;
    background-color: #98a1ac;
    border-radius: 50%;
}

.modal .address-memo {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.625;
    color: #98a1ac;
    letter-spacing: 0.0912px;
}

/* Form Fields */
.modal .form-container {
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal .form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}

.modal .form-label {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.429;
    color: #4e555e;
    letter-spacing: 0.203px;
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.modal .form-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal .form-group input[type="text"],
.modal .form-group input[type="tel"],
.modal .form-group input[type="email"],
.modal .form-group input[type="password"] {
    width: 100%;
    height: 42px;
    border: 1px solid #eceef3;
    border-radius: 8px;
    padding: 0 16px;
    box-sizing: border-box;
    font-size: 16px;
    color: #1f1f1f;
}

.modal .form-group input[type="text"]:focus, 
.modal .form-group input[type="tel"]:focus, 
.modal .form-group input[type="email"]:focus, 
.modal .form-group input[type="password"]:focus {
    outline: none;
    border-color: #eceef3;
}

.modal .form-group input::placeholder {
    color: #98a1ac;
}

.modal .btn-send {
    width: 116px;
    padding: 12px;
    background: white;
    border: 1px solid #eceef3;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #2752ff;
    cursor: pointer;
    letter-spacing: 0.0912px;
    transition: all 0.2s;
}

.modal .btn-send:hover {
    background: #eaf2ff;
    border-color: #eaf2ff;
}

.modal .btn-send:disabled {
    border: 1px solid #eceef3;
    background: #fff;
    color: #98a1ac;
}

.modal .timer-row {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
}

.modal .timer {
    color: #2752FF;
    display: none;
}

#min, #sec {
    display: inline-block;
    width: 24px; 
    text-align: center;
}

.ui-autocomplete {
    z-index: 9999 !important;
}

.modal-content-section {
    background: white;
    padding: 12px 24px 0 24px;
}

.date-time-container {
    display: flex;
    gap: 7px;
    align-items: flex-start;
}

.date-box {
    border: 1px solid #eceef3;
    border-radius: 16px;
    padding: 16px;
    flex: 1;
}

.section-label {
    display: flex;
    gap: 2px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.section-label span {
    font-weight: 600;
    font-size: 16px;
    color: #4e555e;
}

.required {
    color: #ff4209;
    font-size: 12px;
    padding-top: 2px;
}

.date-display {
    background: #f9fafd;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 20px;
}

.date-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.date-badge-container {
    display: flex;
    gap: 4px;
    align-items: center;
}

.date-badge {
    background: #2752ff;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 2px;
    min-width: 20px;
    text-align: center;
}

.date-badge.arrival {
    background: #4ec56b;
}

.date-text {
    font-size: 18px;
    font-weight: 500;
    color: #2752ff;
}

.date-text.arrival {
    color: #1f1f1f;
}

.time-text {
    font-size: 18px;
    font-weight: 500;
    color: #2752ff;
}

.time-text.arrival {
    color: #1f1f1f;
}

.address {
    font-size: 18px;
    color: #4e555e;
}

.divider {
    width: 100%;
    height: 1px;
    background: #eceef3;
    margin: 15px 0;
}

.calendar-header {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    height: 38px;
}

.calendar-nav {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

.calendar-nav.right {
    justify-content: flex-end;
}

.calendar-title {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #1f1f1f;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.weekday {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: #1f1f1f;
}

.day {
    width: 38px;
    height: 38px;
    font-size: 16px;

    border-radius: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.day.past {
    color: #98a1ac;
    font-weight: 500;

    cursor: default;
}

.day.today {
  font-weight: 600;
}

.day.selected {
    background: #2752ff;
    color: white;
    font-weight: 500;
}

.time-selectors {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.time-select {
    width: 100%;
    height: 42px;
    border: 1px solid #eceef3;
    border-radius: 8px;
    padding: 0 40px 0 16px; /* 오른쪽 여백 (아이콘 공간) */
    font-size: 16px;
    color: #1f1f1f;
    background: white;
    cursor: pointer;

    /* 기본 화살표 제거 */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg width='8.4' height='6' viewBox='0 0 8.4 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.7065 0H7.6935C8.32174 0 8.63586 0.93026 8.19257 1.47261L4.69907 5.74678C4.42311 6.08441 3.97689 6.08441 3.70386 5.74678L0.207428 1.47261C-0.235865 0.93026 0.0782568 0 0.7065 0Z' fill='%2398A1AC'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.time-select:focus {
    outline: none;
    border-color: #4a90e2;
}

.time-select:disabled {
    background: #f5f6f8;
    color: #aaa;
    cursor: not-allowed;
}

.delivery-type {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* 기본 라디오 제거 */
.delivery-type input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 20px;
    height: 20px;
    border: 1px solid #2752ff;
    border-radius: 50%;
    background: white;

    display: inline-block;
    position: relative;
    cursor: pointer;
}

/* 선택됐을 때 내부 점 */
.delivery-type input[type="radio"]:checked::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #2752ff;
    border-radius: 50%;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* hover */
.delivery-type input[type="radio"]:hover {
    border-color: #1d3fd6;
}

/* disabled */
.delivery-type input[type="radio"]:disabled {
    border-color: #ccc;
    background: #f5f6f8;
    cursor: not-allowed;
}

.delivery-type.locked {
    cursor: default;
}

.delivery-type.locked * {
    pointer-events: none;
}

.radio-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-title {
    color: #98a1ac;
}

.radio-price {
    margin-left: auto;
    color: #98a1ac;
}

.delivery-type input[type="radio"]:checked + .radio-content .radio-title {
    font-weight: 600;
    color: #1f1f1f;
}

/* ✅ 선택 시 가격 색상 변경 */
.delivery-type input[type="radio"]:checked ~ .radio-price {
    font-weight: 600;
    color: #1f1f1f;
}

/* 한 줄 */
.arrival-time-group {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-bottom: 20px;
}

/* 라디오 + 텍스트 */
.radio-time {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* 기본 라디오 제거 */
.radio-time input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 18px;
    height: 18px;
    border: 1.5px solid #c7cbd1;
    border-radius: 50%;
    background: #fff;
    position: relative;
    cursor: pointer;
}

/* 선택 시 테두리 */
.radio-time input[type="radio"]:checked {
    border-color: #2752ff;
}

/* 내부 점 */
.radio-time input[type="radio"]:checked::after {
    content: "";
    width: 8px;
    height: 8px;
    background: #2752ff;
    border-radius: 50%;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 텍스트 */
.radio-label {
    color: #98a1ac;
}

/* 선택 시 텍스트 */
.radio-time input[type="radio"]:checked + .radio-label {
    font-weight: 600;
    color: #1f1f1f;
}

/*
.radio-group {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.radio-option {
    display: flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
}

.radio-circle {
    width: 20px;
    height: 20px;
    border: 1px solid #2752ff;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-circle.unchecked {
    border-color: #98a1ac;
    background: #f9fbff;
}

.radio-inner {
    width: 12px;
    height: 12px;
    background: #2752ff;
    border-radius: 6px;
}

.radio-label {
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
}

.radio-label.unchecked {
    color: #98a1ac;
}

.price {
    font-size: 16px;
    font-weight: 500;
    color: #1f1f1f;
}

.price.unchecked {
    color: #98a1ac;
}
*/
.info-box {
    background: #f9fafd;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.info-box .icon {
    width: 24px;
    height: 24px;
}

.info-text {
    font-size: 16px;
    font-weight: 500;
    color: #2752ff;
}

.note-item {
    display: flex;
    gap: 4px;
    align-items: center;
    color: #98a1ac;
    font-size: 16px;
}

.note-dot {
    width: 2px;
    height: 2px;
    background: #98a1ac;
    border-radius: 50%;
}

/*버튼*/
.btn-primary {
    width: 100%;
    padding: 12px;
    background: #2752ff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    letter-spacing: 0.0912px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1e42cc;
}

.btn-cancel,
.btn-secondary {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #eceef3;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #2752ff;
    cursor: pointer;
    letter-spacing: 0.0912px;
    transition: all 0.2s;
}

.btn-cancel:hover,
.btn-secondary:hover {
    background: #f9fbff;
    border-color: #2752ff;
}

/* 로딩중 */
.main-loading-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
}

.main-loading-box {
    padding: 24px;
    border-radius: 16px;
}

.main-spinner {
    width: 54px;
    height: 54px;
    border: 5px solid rgba(0,0,0,0.15);
    border-top-color: #2563eb;
    border-right-color: #2563eb;
    border-radius: 50%;
    animation: mainSpin 0.7s linear infinite;
}

@keyframes mainSpin {
    100% {
        transform: rotate(360deg);
    }
}

/*버튼*/
.submit-loading-dots {
    display: inline-flex;
    gap: 8px;
    margin-right: 6px;
    vertical-align: middle;
}

.submit-loading-dots i {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    display: block;
    animation: dotBounce 1.5s infinite ease-in-out;
}

.submit-loading-dots i:nth-child(2) { animation-delay: 0.15s; }
.submit-loading-dots i:nth-child(3) { animation-delay: 0.3s; }
.submit-loading-dots i:nth-child(4) { animation-delay: 0.45s; }
.submit-loading-dots i:nth-child(5) { animation-delay: 0.6s; }

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: .5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}