* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1rem; /* 모바일에서 패딩 줄임 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem; /* 모바일 최적화: 2rem → 1.5rem */
    font-weight: bold;
    color: #000;
    letter-spacing: 1px; /* 2px → 1px */
}

.logo p {
    font-size: 0.7rem; /* 모바일 최적화: 0.9rem → 0.7rem */
    color: #666;
    margin-top: 0.2rem;
}

.header-nav {
    display: flex;
    gap: 1rem; /* 모바일에서 간격 줄임 */
    align-items: center;
}

.header-nav button {
    background: none;
    border: 2px solid #000;
    color: #000;
    padding: 0.4rem 0.8rem; /* 모바일에서 패딩 줄임 */
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.7rem; /* 모바일 최적화 */
}

.header-nav button:hover {
    background: #000;
    color: #fff;
}

.social-links {
    display: flex;
    gap: 0.5rem; /* 간격 줄임 */
}

.social-links a {
    color: #000;
    font-size: 1.2rem; /* 1.5rem → 1.2rem */
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #666;
}

/* Main Content */
main {
    margin-top: 80px; /* 헤더가 작아졌으므로 마진 줄임 */
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 1rem; /* 모바일 최적화: 4rem → 2rem */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero h2 {
    font-size: 1.8rem; /* 모바일 최적화: 3rem → 1.8rem */
    margin-bottom: 0.8rem;
    color: #000;
    font-weight: 300;
    line-height: 1.3; /* 줄간격 추가 */
}

.hero .highlight {
    font-weight: bold;
    color: #000;
}

.hero p {
    font-size: 0.9rem; /* 모바일 최적화: 1.2rem → 0.9rem */
    color: #666;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.hero-notice {
    background: #fff;
    border: 2px solid #000;
    padding: 0.8rem 1rem; /* 패딩 줄임 */
    margin: 1.5rem auto;
    max-width: 400px; /* 너비 줄임 */
    font-weight: bold;
    font-size: 0.8rem; /* 글자 크기 줄임 */
}

/* Cake Gallery */
.gallery {
    padding: 2rem 1rem; /* 모바일 최적화: 4rem → 2rem */
    max-width: 1200px;
    margin: 0 auto;
}

.gallery h3 {
    text-align: center;
    font-size: 1.5rem; /* 모바일 최적화: 2.5rem → 1.5rem */
    margin-bottom: 2rem; /* 3rem → 2rem */
    color: #000;
    font-weight: 300;
    letter-spacing: 1px;
}

.cake-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 최소 너비 줄임 */
    gap: 1.5rem; /* 2rem → 1.5rem */
}

.cake-card {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cake-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.cake-image {
    position: relative;
    overflow: hidden;
}

.cake-image img {
    width: 100%;
    height: 200px; /* 모바일 최적화: 250px → 200px */
    object-fit: cover;
    filter: grayscale(10%);
    transition: filter 0.3s;
}

.cake-card:hover .cake-image img {
    filter: grayscale(0%);
}

.cake-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: #000;
    color: #fff;
    padding: 0.4rem 0.8rem; /* 패딩 줄임 */
    font-size: 0.7rem; /* 0.8rem → 0.7rem */
    font-weight: bold;
    letter-spacing: 1px;
}

.cake-info {
    padding: 1.5rem; /* 2rem → 1.5rem */
}

.cake-info h4 {
    font-size: 1.1rem; /* 모바일 최적화: 1.3rem → 1.1rem */
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: bold;
}

.cake-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.85rem; /* 모바일 최적화 */
}

.design-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem; /* 0.5rem → 0.4rem */
    margin-bottom: 1rem; /* 1.5rem → 1rem */
}

.design-tag {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 0.25rem 0.6rem; /* 패딩 줄임 */
    font-size: 0.7rem; /* 0.8rem → 0.7rem */
    color: #666;
}

.price-info {
    background: #f8f9fa;
    padding: 0.8rem; /* 1rem → 0.8rem */
    margin-bottom: 1rem; /* 1.5rem → 1rem */
    border-left: 4px solid #000;
}

.price-info h5 {
    color: #000;
    margin-bottom: 0.4rem;
    font-size: 0.9rem; /* 모바일 최적화 */
}

.price-list {
    font-size: 0.8rem; /* 0.9rem → 0.8rem */
    color: #666;
}

.order-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem; /* 패딩 줄임 */
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background 0.3s;
    text-transform: uppercase;
    width: 100%;
    font-size: 0.9rem; /* 모바일 최적화 */
}

.order-btn:hover {
    background: #333;
}

/* Order Management */
.order-management {
    padding: 2rem 1rem; /* 모바일 최적화: 4rem → 2rem */
    background: #f8f9fa;
}

.management-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.management-content h3 {
    font-size: 1.2rem; /* 모바일 최적화 */
    margin-bottom: 0.8rem;
}

.management-content p {
    font-size: 0.85rem; /* 모바일 최적화 */
    margin-bottom: 1.5rem;
}

.management-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: #000;
    color: #fff;
    padding: 2rem 1rem; /* 모바일 최적화: 3rem → 2rem */
    text-align: center;
}

footer h3 {
    font-size: 1.3rem; /* 모바일 최적화: 2rem → 1.3rem */
    margin-bottom: 1rem;
    letter-spacing: 1px; /* 2px → 1px */
}

footer p {
    color: #ccc;
    margin-bottom: 0.5rem;
    font-size: 0.8rem; /* 모바일 최적화 */
}

.footer-notice {
    background: #333;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.75rem; /* 모바일 최적화: 0.9rem → 0.75rem */
}

/* 채팅 버튼 및 채팅창 - 위치 조정 */
.chat-button {
    position: fixed;
    bottom: 120px; /* 🔥 중요: 30px → 120px로 변경 - 주문 버튼과 겹치지 않게 */
    right: 20px; /* 30px → 20px */
    width: 50px; /* 모바일 최적화: 60px → 50px */
    height: 50px; /* 모바일 최적화: 60px → 50px */
    background: gray;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 999; /* 모달보다 낮게 설정 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem; /* 1.5rem → 1.3rem */
    transition: all 0.3s;
}

.chat-button:hover {
    transform: scale(1.1);
    background: #333;
}

.chat-button.active {
    background: #666;
}

.chat-window {
    position: fixed;
    bottom: 180px; /* 채팅 버튼 위치에 맞춰 조정 */
    right: 20px; /* 30px → 20px */
    width: 320px; /* 모바일 최적화: 350px → 320px */
    height: 450px; /* 모바일 최적화: 500px → 450px */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 998; /* 채팅 버튼보다 낮게 */
    display: none;
    flex-direction: column;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: #000;
    color: #fff;
    padding: 0.8rem; /* 1rem → 0.8rem */
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 0.9rem; /* 1rem → 0.9rem */
}

.chat-status {
    font-size: 0.7rem; /* 0.8rem → 0.7rem */
    color: #ccc;
    display: flex;
    align-items: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem; /* 1.2rem → 1.1rem */
    cursor: pointer;
    padding: 0;
}

.chat-messages {
    flex: 1;
    padding: 0.8rem; /* 1rem → 0.8rem */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* 1rem → 0.8rem */
}

.message {
    max-width: 80%;
    padding: 0.6rem 0.8rem; /* 패딩 줄임 */
    border-radius: 18px;
    word-wrap: break-word;
    font-size: 0.8rem; /* 모바일 최적화 */
}

.message.user {
    background: #000;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.admin {
    background: #f1f1f1;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.6rem; /* 0.7rem → 0.6rem */
    opacity: 0.7;
    margin-top: 0.3rem;
}

.message-input-area {
    padding: 0.8rem; /* 1rem → 0.8rem */
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.message-input {
    flex: 1;
    border: 2px solid #eee;
    border-radius: 20px;
    padding: 0.6rem 0.8rem; /* 패딩 줄임 */
    resize: none;
    max-height: 60px; /* 80px → 60px */
    font-family: inherit;
    font-size: 0.8rem; /* 0.9rem → 0.8rem */
}

.message-input:focus {
    outline: none;
    border-color: #000;
}

.send-button {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 35px; /* 40px → 35px */
    height: 35px; /* 40px → 35px */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    font-size: 1rem; /* 모바일 최적화 */
}

.send-button:hover {
    background: #333;
}

.send-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.quick-messages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem; /* 0.5rem → 0.4rem */
    margin-bottom: 0.8rem; /* 1rem → 0.8rem */
}

.quick-message-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #666;
    padding: 0.4rem 0.8rem; /* 패딩 줄임 */
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.7rem; /* 0.8rem → 0.7rem */
    transition: all 0.3s;
}

.quick-message-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.typing-indicator {
    display: none;
    align-items: center;
    color: #666;
    font-size: 0.7rem; /* 0.8rem → 0.7rem */
    margin-bottom: 0.5rem;
}

.typing-indicator.active {
    display: flex;
}

.typing-dots {
    display: flex;
    margin-left: 0.5rem;
}

.typing-dots span {
    width: 4px;
    height: 4px;
    background: #666;
    border-radius: 50%;
    margin: 0 1px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Order Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    margin: 2% auto;
    padding: 0;
    width: 95%;
    max-width: 800px;
    position: relative;
}

.modal-header {
    padding: 1.5rem; /* 2rem → 1.5rem */
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.2rem; /* 모바일 최적화 */
}

.modal-close {
    font-size: 1.8rem; /* 2rem → 1.8rem */
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 1.5rem; /* 2rem → 1.5rem */
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem; /* 2rem → 1.5rem */
}

.step {
    display: flex;
    align-items: center;
    color: #ccc;
    font-size: 0.8rem; /* 모바일 최적화 */
}

.step.active {
    color: #000;
    font-weight: bold;
}

.step-number {
    width: 25px; /* 30px → 25px */
    height: 25px; /* 30px → 25px */
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-size: 0.8rem; /* 모바일 최적화 */
}

.step.active .step-number {
    background: #000;
}

.step-divider {
    width: 40px; /* 50px → 40px */
    height: 2px;
    background: #ccc;
    margin: 0 0.8rem; /* 1rem → 0.8rem */
}

/* Step Contents */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.step-content h3 {
    font-size: 1.1rem; /* 모바일 최적화 */
    margin-bottom: 1rem;
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 200px → 150px */
    gap: 1rem;
    margin-bottom: 1.5rem; /* 2rem → 1.5rem */
}

.design-option {
    border: 2px solid #eee;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    padding: 0.8rem; /* 1rem → 0.8rem */
}

.design-option:hover {
    border-color: #000;
}

.design-option.selected {
    border-color: #000;
    background: #f8f9fa;
}

.design-option img {
    width: 100%;
    height: 100px; /* 120px → 100px */
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.design-option h4 {
    font-size: 0.9rem; /* 모바일 최적화 */
}

.design-option p {
    font-size: 0.8rem; /* 모바일 최적화 */
}

.size-selector {
    display: grid;
    grid-template-columns: 1fr; /* 모바일에서는 세로로 */
    gap: 1rem;
    margin-bottom: 1.5rem; /* 2rem → 1.5rem */
}

.size-option {
    border: 2px solid #eee;
    padding: 1rem; /* 1.5rem → 1rem */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.size-option:hover {
    border-color: #000;
}

.size-option.selected {
    border-color: #000;
    background: #f8f9fa;
}

.size-name {
    font-weight: bold;
    font-size: 1rem; /* 1.2rem → 1rem */
    color: #000;
}

.size-detail {
    color: #666;
    font-size: 0.8rem; /* 0.9rem → 0.8rem */
    margin: 0.5rem 0;
}

.size-price {
    font-weight: bold;
    font-size: 1rem; /* 1.1rem → 1rem */
    color: #000;
}

.order-summary {
    background: #f8f9fa;
    padding: 1rem; /* 1.5rem → 1rem */
    margin-bottom: 1.5rem; /* 2rem → 1.5rem */
    border-left: 4px solid #000;
}

.order-summary h4 {
    font-size: 1rem; /* 모바일 최적화 */
    margin-bottom: 0.8rem;
}

.order-summary p {
    font-size: 0.85rem; /* 모바일 최적화 */
    margin-bottom: 0.3rem;
}

.form-group {
    margin-bottom: 1rem; /* 1.5rem → 1rem */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr; /* 모바일에서는 세로로 */
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: bold;
    font-size: 0.9rem; /* 모바일 최적화 */
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem; /* 0.8rem → 0.7rem */
    border: 2px solid #e9ecef;
    font-size: 0.9rem; /* 1rem → 0.9rem */
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem; /* 2rem → 1.5rem */
}

.btn {
    padding: 0.8rem 1.5rem; /* 패딩 줄임 */
    border: 2px solid #000;
    background: #fff;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem; /* 모바일 최적화 */
}

.btn:hover {
    background: #000;
    color: #fff;
}

.btn-primary {
    background: #000;
    color: #fff;
}

.btn-primary:hover {
    background: #333;
}

.order-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 0.8rem; /* 1rem → 0.8rem */
    margin-bottom: 1.5rem; /* 2rem → 1.5rem */
    border-radius: 4px;
    font-size: 0.8rem; /* 모바일 최적화 */
}

.hidden {
    display: none;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.5rem; /* 1rem → 0.5rem */
        padding: 0.5rem; /* 더 작게 */
    }

    .header-nav {
        order: -1;
        gap: 0.5rem; /* 1rem → 0.5rem */
    }

    .header-nav button {
        padding: 0.3rem 0.6rem; /* 더 작게 */
        font-size: 0.6rem; /* 더 작게 */
    }

    .logo h1 {
        font-size: 1.2rem; /* 1.5rem → 1.2rem */
    }

    .logo p {
        font-size: 0.6rem; /* 0.7rem → 0.6rem */
    }

    main {
        margin-top: 120px; /* 헤더가 커졌으므로 마진 조정 */
    }

    .hero {
        padding: 1.5rem 0.5rem; /* 더 작게 */
    }

    .hero h2 {
        font-size: 1.5rem; /* 1.8rem → 1.5rem */
    }

    .hero p {
        font-size: 0.8rem; /* 0.9rem → 0.8rem */
    }

    .hero-notice {
        font-size: 0.7rem; /* 0.8rem → 0.7rem */
        padding: 0.6rem 0.8rem;
    }

    .gallery {
        padding: 1.5rem 0.5rem; /* 더 작게 */
    }

    .gallery h3 {
        font-size: 1.3rem; /* 1.5rem → 1.3rem */
    }

    .cake-grid {
        grid-template-columns: 1fr;
        gap: 1rem; /* 1.5rem → 1rem */
    }

    .cake-image img {
        height: 180px; /* 200px → 180px */
    }

    .cake-info {
        padding: 1rem; /* 1.5rem → 1rem */
    }

    .cake-info h4 {
        font-size: 1rem; /* 1.1rem → 1rem */
    }

    .cake-info p {
        font-size: 0.8rem; /* 0.85rem → 0.8rem */
    }

    .order-btn {
        padding: 0.7rem 1rem; /* 더 작게 */
        font-size: 0.8rem; /* 0.9rem → 0.8rem */
    }

    .management-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    /* 모바일에서 채팅 버튼 위치 더 조정 */
    .chat-button {
        bottom: 100px; /* 120px → 100px */
        right: 15px; /* 20px → 15px */
        width: 45px; /* 50px → 45px */
        height: 45px; /* 50px → 45px */
        font-size: 1.1rem; /* 1.3rem → 1.1rem */
    }

    .chat-window {
        bottom: 150px; /* 채팅 버튼에 맞춰 조정 */
        right: 10px;
        left: 10px;
        width: auto;
        height: 400px; /* 450px → 400px */
    }

    .modal-content {
        width: 98%;
        margin: 1% auto; /* 2% → 1% */
    }

    .design-grid {
        grid-template-columns: repeat(2, 1fr); /* 모바일에서는 2열 */
    }

    .size-selector {
        grid-template-columns: 1fr; /* 모바일에서는 1열 유지 */
    }

    .step-navigation {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn {
        width: 100%; /* 모바일에서는 전체 너비 */
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.3rem;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .logo p {
        font-size: 0.5rem;
    }

    .header-nav button {
        padding: 0.2rem 0.4rem;
        font-size: 0.5rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 0.75rem;
    }

    .gallery h3 {
        font-size: 1.1rem;
    }

    .cake-info h4 {
        font-size: 0.95rem;
    }

    .cake-info p {
        font-size: 0.75rem;
    }

    .chat-button {
        bottom: 80px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .chat-window {
        bottom: 130px;
        height: 350px;
    }

    .modal-body {
        padding: 1rem;
    }

    .step-indicator {
        margin-bottom: 1rem;
    }

    .step-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .step-divider {
        width: 30px;
        margin: 0 0.5rem;
    }
}

/* 기존 CSS 파일에 이 스타일들을 추가하세요 */

/* 주문 조회 결과 스타일 */
.order-item {
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.order-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.status-new {
    background: #e3f2fd;
    color: #1976d2;
}

.status-progress {
    background: #fff3e0;
    color: #f57c00;
}

.status-completed {
    background: #e8f5e8;
    color: #388e3c;
}

.order-details p {
    margin: 8px 0;
    color: #555;
}

.order-details strong {
    color: #333;
    min-width: 80px;
    display: inline-block;
}

.order-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
}

.cancel-btn, .modify-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.cancel-btn:hover {
    background: #ffcdd2;
    transform: translateY(-1px);
}

.modify-btn {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

.modify-btn:hover {
    background: #e1bee7;
    transform: translateY(-1px);
}

.order-notice {
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
}

.order-notice p {
    margin: 4px 0;
    font-size: 14px;
}

/* 조회 결과가 없을 때 */
#orderResult h4 {
    color: #333;
    margin-bottom: 10px;
}

#orderResult small {
    color: #888;
    font-style: italic;
}

/* 주문 수정 모달을 위한 추가 CSS (기존 style.css에 추가) */

/* 수정 알림 박스 */
.modify-notice {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #1565c0;
}

/* 현재 주문 정보 표시 */
#currentOrderInfo {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #000;
    border-radius: 0 4px 4px 0;
}

#currentOrderInfo h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #000;
}

#currentOrderInfo p {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #333;
}

/* 모달 버튼들 */
.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .modify-notice {
        font-size: 0.7rem;
        padding: 0.6rem;
    }
    
    #currentOrderInfo {
        padding: 0.8rem;
    }
    
    #currentOrderInfo h4 {
        font-size: 0.9rem;
    }
    
    #currentOrderInfo p {
        font-size: 0.8rem;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
}
/* 개선된 취소 시스템을 위한 CSS - style.css 파일 끝에 추가 */

/* 취소 경고 박스 */
.cancel-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid #f39c12;
}

.cancel-warning h4 {
    color: #d68910;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.cancel-warning p {
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: #856404;
}

/* 비활성화된 취소 버튼 */
.cancel-btn.disabled {
    background: #6c757d;
    color: #fff;
    cursor: not-allowed;
    border: 1px solid #6c757d;
}

.cancel-btn.disabled:hover {
    background: #6c757d;
    transform: none;
}

/* 계좌 정보 폼 스타일 */
#bankInfoModal .form-group select {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid #e9ecef;
    font-size: 0.9rem;
    transition: border-color 0.3s;
    background: white;
}

#bankInfoModal .form-group select:focus {
    outline: none;
    border-color: #000;
}

/* 주문 상태별 색상 */
.order-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.order-item .order-status {
    background: #e3f2fd;
    color: #1976d2;
}

/* 상태별 색상 개선 */
.order-status:contains("입금대기") {
    background: #e3f2fd;
    color: #1976d2;
}

.order-status:contains("입금완료") {
    background: #e8f5e8;
    color: #388e3c;
}

.order-status:contains("제작중") {
    background: #fff3e0;
    color: #f57c00;
}

.order-status:contains("완료") {
    background: #e8f5e8;
    color: #2e7d32;
}

.order-status:contains("취소") {
    background: #ffebee;
    color: #c62828;
}

/* 은행 선택 박스 개선 */
#bankName {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* 계좌번호 입력 필드 */
#accountNumber {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* 수정 알림 박스 */
.modify-notice {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #1565c0;
}

/* 현재 주문 정보 표시 */
#currentOrderInfo {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #000;
    border-radius: 0 4px 4px 0;
}

#currentOrderInfo h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #000;
}

#currentOrderInfo p {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #333;
}

/* 모달 버튼들 */
.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* 남은 일수 강조 */
.order-item p:contains("남은 일수") {
    font-weight: bold;
    color: #d68910;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .cancel-warning {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .cancel-warning h4 {
        font-size: 0.9rem;
    }
    
    .cancel-warning p {
        font-size: 0.8rem;
    }
    
    #bankInfoModal .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .order-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cancel-btn, .modify-btn {
        width: 100%;
    }
    
    .modify-notice {
        font-size: 0.7rem;
        padding: 0.6rem;
    }
    
    #currentOrderInfo {
        padding: 0.8rem;
    }
    
    #currentOrderInfo h4 {
        font-size: 0.9rem;
    }
    
    #currentOrderInfo p {
        font-size: 0.8rem;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #bankInfoModal .modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .cancel-warning {
        padding: 0.6rem;
        font-size: 0.75rem;
    }
    
    .order-status {
        font-size: 10px;
        padding: 3px 6px;
    }
}
/* 직접 입력 은행명 필드 */
#customBankName {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid #e9ecef;
    font-size: 0.9rem;
    transition: border-color 0.3s;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
}

#customBankName:focus {
    outline: none;
    border-color: #007bff;
    background: white;
}

/* 직접 입력 필드 그룹 애니메이션 */
#customBankGroup {
    transition: all 0.3s ease;
}
/* 직접 입력 은행명 필드 */
#customBankName {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid #e9ecef;
    font-size: 0.9rem;
    transition: border-color 0.3s;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
}

#customBankName:focus {
    outline: none;
    border-color: #007bff;
    background: white;
}

/* 직접 입력 필드 그룹 애니메이션 */
#customBankGroup {
    transition: all 0.3s ease;
}