#chatbot {
    position: fixed;
    right: 2.4rem;
    bottom: 2.4rem;
    z-index: 1000;
}

#chatbot-toggle {
    position: fixed;
    right: 1.6rem;
    bottom: 1.6rem;

    display: flex;
    align-items: center;
    gap: 0.6rem;

    padding: 1.2rem 1.6rem;
    border-radius: 1.6rem;
    background: #4f46e5;
    color: #fff;

    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;

    box-shadow: 0 0.8rem 2rem rgba(0,0,0,0.25);
}

#chatbot-toggle i {
    font-size: 1.6rem;
}

#chatbot-window {
    width: 340px;
    height: 480px;
    background: #fff;
    border-radius: 1.6rem;
    box-shadow: 0 1.2rem 3.6rem rgba(0,0,0,0.2);
    position: absolute;
    bottom: 72px;
    right: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#chatbot-header {
    background: #4f46e5;
    color: #fff;
    padding: 1.2rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4rem;
}

#chatbot-close {
    cursor: pointer;
    font-size: 1.6rem;
}

#chatbot-body {
    flex: 1;
    padding: 1.2rem;
    background: #f9fafb;
    overflow-y: auto;
}

.bot-message,
.user-message {
    padding: 0.8rem 1.2rem;
    border-radius: 1.2rem;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    max-width: 75%;
    word-break: break-word;
}

.bot-message {
    background: #e0e7ff;
    color: #1e1b4b;
    margin-right: auto;
    border-top-left-radius: 0.4rem;
}

.user-message {
    background: #4f46e5;
    color: #fff;
    margin-left: auto;
    border-top-right-radius: 0.4rem;
    text-align: left;
}

#chatbot-input-area {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

#chatbot-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 0.8rem;
    padding: 0.8rem;
    font-size: 1.3rem;
}

#chatbot-send {
    margin-left: 0.8rem;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 0.8rem;
    padding: 0 1.2rem;
    cursor: pointer;
}

.course-cards {
  display: grid;
  gap: 10px;
  margin: 8px 0 0 0;
}

.course-card {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.course-title {
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.course-price {
  font-weight: 600;
  margin-bottom: 6px;
}

.course-desc {
  color: #555;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

.course-btn {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #dcdcdc;
  text-decoration: none;
  font-size: 14px;
}

.course-btn:hover {
  background: #f6f6f6;
}

.quick-menu{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.quick-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none; /* a 태그일 때 밑줄 제거 */
}
/* 반응형 버전 */
@media (max-width: 768px) {

    #chatbot {
        right: 0;
        bottom: 0;
    }

    #chatbot-toggle {
        width: 48px;
        height: 48px;

        right: 1.6rem;
        bottom: 1.6rem;

        padding: 0;
        border-radius: 50%;

        justify-content: center;
    }

    /* 텍스트 숨김 */
    #chatbot-toggle .chatbot-text {
        display: none;
    }

    #chatbot-toggle i {
        font-size: 2rem;
    }

    #chatbot-window {
        position: fixed;

        right: 1.6rem;
        bottom: 7.2rem;

        width: 280px;
        height: 360px;

        border-radius: 1.4rem;
    }
}


