/* =====================================================
   inquiry-panel.css
   판매자에게 문의하기 - 슬라이드 패널
   무신사 레이아웃 참고 + Humi 로즈/블랙 무드 적용
   기존 product-detail.css 와 충돌 없음
   ===================================================== */

/* ── 오버레이 배경 ──────────────────────────────────── */
.inq-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
}

.inq-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ── 슬라이드 패널 ──────────────────────────────────── */
.inq-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(520px, 100vw);
    height: 100dvh;
    background: #ffffff;
    z-index: 901;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
}

.inq-panel.is-open {
    transform: translateX(0);
}

/* ── 패널 헤더 ──────────────────────────────────────── */
.inq-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.inq-panel__title {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
}

.inq-panel__close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: background 0.15s;
    line-height: 1;
}

.inq-panel__close:hover {
    background: #eaeaea;
}

/* ── 패널 본문 (스크롤) ──────────────────────────────── */
.inq-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 32px;
}

/* ── 상품 미리보기 영역 ──────────────────────────────── */
.inq-product-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
}

.inq-product-preview__img {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
    border: 1px solid #ebebeb;
}

.inq-product-preview__info {
    flex: 1;
    min-width: 0;
}

.inq-product-preview__brand {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.inq-product-preview__name {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inq-product-preview__price {
    font-size: 13px;
    font-weight: 800;
    color: #c47d9a;
    margin-top: 5px;
}

/* ── 폼 섹션 ─────────────────────────────────────────── */
.inq-form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inq-form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inq-form__label {
    font-size: 13px;
    font-weight: 700;
    color: #222;
}

.inq-form__label span {
    color: #c47d9a;
    margin-left: 2px;
}

.inq-form__select,
.inq-form__input,
.inq-form__textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
    font-size: 14px;
    color: #111;
    outline: none;
    font-family: inherit;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.inq-form__select {
    height: 48px;
    padding: 0 16px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.inq-form__input {
    height: 48px;
    padding: 0 16px;
}

.inq-form__textarea {
    padding: 14px 16px;
    resize: vertical;
    min-height: 140px;
    line-height: 1.65;
}

.inq-form__select:focus,
.inq-form__input:focus,
.inq-form__textarea:focus {
    border-color: #c47d9a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(196,125,154,0.1);
}

/* 유의사항 박스 */
.inq-notice {
    background: #faf7f9;
    border: 1px solid #f0e6ed;
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 4px;
}

.inq-notice__title {
    font-size: 12px;
    font-weight: 800;
    color: #7b5f6e;
    margin-bottom: 10px;
}

.inq-notice__list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inq-notice__list li {
    font-size: 12px;
    color: #8f7c87;
    line-height: 1.6;
    padding-left: 14px;
    position: relative;
}

.inq-notice__list li::before {
    content: "·";
    position: absolute;
    left: 4px;
    color: #c4a0b0;
}

/* 성공/에러 알림 */
.inq-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.inq-alert--success {
    background: #f0fff5;
    color: #1f7a42;
    border: 1px solid #c3ead4;
}

.inq-alert--error {
    background: #fff4f6;
    color: #c43060;
    border: 1px solid #f5c0cc;
}

/* 비로그인 메시지 */
.inq-login-box {
    text-align: center;
    padding: 48px 20px;
    background: #faf7f9;
    border-radius: 16px;
}

.inq-login-box p {
    font-size: 14px;
    color: #8f7c87;
    margin-bottom: 16px;
}

.inq-login-box a {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 24px;
    background: #111;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.inq-login-box a:hover {
    background: #333;
}

/* ── 패널 푸터 (버튼 고정) ───────────────────────────── */
.inq-panel__footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fff;
}

.inq-btn {
    flex: 1;
    height: 52px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.18s ease;
    font-family: inherit;
}

.inq-btn--cancel {
    background: #f5f5f5;
    color: #555;
}

.inq-btn--cancel:hover {
    background: #eaeaea;
}

.inq-btn--submit {
    background: #111;
    color: #fff;
    flex: 1.5;
}

.inq-btn--submit:hover {
    background: #333;
}

.inq-btn--submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ── 반응형 ──────────────────────────────────────────── */
@media (max-width: 560px) {
    .inq-panel {
        width: 100vw;
    }

    .inq-panel__header,
    .inq-panel__body,
    .inq-panel__footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ── 사진 첨부 ───────────────────────────────────────── */
.inq-photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.inq-photo-trigger {
    width: 80px;
    height: 80px;
    border: 1.5px dashed #d5b8c8;
    border-radius: 12px;
    background: #fdf8fb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
    flex-shrink: 0;
}

.inq-photo-trigger:hover {
    border-color: #c47d9a;
    background: #fdf3f7;
}

.inq-photo-trigger__plus {
    font-size: 22px;
    color: #c4a0b0;
    line-height: 1;
}

.inq-photo-trigger__count {
    font-size: 11px;
    color: #b09098;
    font-weight: 600;
}

.inq-photo-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ebebeb;
    flex-shrink: 0;
}

.inq-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inq-photo-item__del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: none;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s;
}

.inq-photo-item__del:hover {
    background: rgba(0,0,0,0.8);
}

.inq-photo-hint {
    font-size: 11px;
    color: #b09098;
    margin: 0;
    line-height: 1.5;
}

/* ── 비밀글 체크박스 ─────────────────────────────────── */
.inq-secret-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #6b5a63;
    cursor: pointer;
    user-select: none;
}

.inq-secret-check {
    width: 16px;
    height: 16px;
    accent-color: #c47d9a;
    cursor: pointer;
}

.inq-secret-icon {
    font-size: 14px;
}

/* ── Q&A 목록 비밀글 표시 (product-detail 쪽) ─────────── */
.inquiry-card__title--secret {
    color: #6b5a63;
}

.inquiry-card__content--hidden {
    color: #aaa;
    font-style: italic;
    font-size: 13px;
}

/* ── 문의 카드 삭제 버튼 ──────────────────────────────── */
.inquiry-card__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #f5f0f3;
}

.inq-delete-form {
    margin: 0;
}

.inq-delete-btn {
    height: 32px;
    padding: 0 14px;
    border: 1px solid #e8c4cc;
    border-radius: 8px;
    background: #fff;
    color: #c45a6a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
}

.inq-delete-btn:hover {
    background: #fff0f2;
    border-color: #c45a6a;
}
