/* --- Common (WMCM/기타 공용) --- */
.wmcm-configurator-wrapper {
    max-width: 1520px;
    margin: auto;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #D1D1D6;
}

.wmcm-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #02457C;
    border-radius: 4px 4px 0 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.wmcm-main-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: nowrap; /* 데스크탑에서는 줄바꿈 방지 */
    justify-content: space-between;
    min-height: 470px;
    gap: 20px;
    padding: 20px;
}

/* 옵션 리스트 / 프리뷰 / 요약 */
.wmcm-options-list {
    flex: 1 1 38%;
    max-width: 540px;
    font-size: 14px;
    color: #111827;
}
.wmcm-image-preview {
    flex: 1 1 32%;
    max-width: 450px;
    height: 360px;
    border: 1px solid #D1D1D6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wmcm-summary {
    flex: 1 1 30%;
    max-width: 410px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 옵션 행(기본: flex 2열) */
.wmcm-option-item {
    display: flex;
    min-height: 50px;
    border-top: 1px solid #D1D1D6;
}
.wmcm-options-list > .wmcm-option-item:first-child { border-top: none; }

.wmcm-option-label {
    width: 210px;
    flex-shrink: 0;
    font-weight: 500;
    padding: 10px 16px;
    border-right: 1px solid #D1D1D6;
    display: flex;
    align-items: center;
}

.wmcm-option-control {
    flex-grow: 1;
    padding: 7.5px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wmcm-option-control.static-value {
    padding-left: 16px;
    justify-content: flex-start;
}

.wmcm-options-list select,
.wmcm-options-list input[type="number"] {
    width: 100%;
    height: 35px;
    background: rgba(255, 204, 0, 0.2);
    border: 1px solid #111827;
    border-radius: 4px;
    padding: 0 10px;
    transition: border 0.3s, box-shadow 0.3s;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.wmcm-options-list select:focus,
.wmcm-options-list input[type="number"]:focus,
.wmcm-summary-qty input:focus {
    outline: none;
    border: 1px solid #66A3D2 !important;
    box-shadow: 0 0 0 2px rgba(102, 163, 210, 0.25);
}

.wmcm-options-list .length-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.wmcm-options-list .length-done-button {
    height: 35px;
    padding: 0 15px;
    background: #06C270;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.wmcm-image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wmcm-summary-content { display: flex; flex-direction: column; gap: 13px; }

.wmcm-summary-title { font-size: 14px; font-weight: 500; color: #111827; }

.wmcm-part-number {
    font-size: 20px;
    font-weight: 700;
    color: #02457C;
    text-decoration: underline;
    word-break: break-word;
    min-height: 30px;
}

/* 파트넘버 placeholder */
.pn-placeholder { color: #adb5bd; font-weight: 600; }

.wmcm-summary-details {
    border-top: 1px dashed #D1D1D6;
    padding-top: 10px;
    font-size: 14px;
    color: #111827;
    line-height: 1.8;
}

.wmcm-summary-qty { margin-top: 10px; display: flex; }
.wmcm-summary-qty input {
    width: 100%; max-width: 260px; height: 40px;
    padding: 6px 10px; font-size: 14px; font-family: 'Inter', sans-serif;
    color: #111827; background: #fff; border: 1px solid #D1D1D6; border-radius: 4px;
    text-align: right;
}

.wmcm-action-buttons { display: flex; gap: 10px; margin-top: 20px; }
.wmcm-action-buttons button {
    padding: 6px 15px; border-radius: 4px; border: none; font-weight: 600;
    transition: background-color 0.3s, opacity 0.3s;
}
.wmcm-confirm-button { background: #003766; color: #fff; cursor: pointer; }
.wmcm-confirm-button:not(.confirm-disabled):hover { background: #00294d; }
.wmcm-confirm-button.confirm-disabled { opacity: 0.5; cursor: not-allowed; background: #aeb8c1; }
.wmcm-clear-button { background: #02457C; color: #fff; cursor: pointer; }
.wmcm-clear-button:hover { background: #013A6A; }

.info-icon { cursor: pointer; width: 20px; height: auto; vertical-align: middle; flex-shrink: 0; margin-left: 10px; }
.info-icon:hover { opacity: 0.7; }
.label-unit { font-weight: bold; font-size: 0.9em; margin-left: 2px; margin-top: 4px; color: #02457C; }

/* 반응형 */
@media (max-width: 1024px) {
    .wmcm-main-layout { flex-wrap: wrap; justify-content: center; }
    .wmcm-options-list, .wmcm-image-preview, .wmcm-summary { flex-basis: 45%; min-width: 320px; }
}
@media (max-width: 820px) {
    .wmcm-main-layout { flex-direction: column; align-items: center; min-height: auto; gap: 30px; }
    .wmcm-options-list, .wmcm-image-preview, .wmcm-summary { width: 100%; max-width: 540px; flex-basis: auto; }
    .wmcm-option-item { flex-direction: column; min-height: auto; padding: 0; }
    .wmcm-option-label { width: 100%; border-right: none; font-weight: 600; padding: 5px 15px; }
    .wmcm-option-control { width: 100%; padding: 5px 15px; }
    .wmcm-image-preview { height: auto; aspect-ratio: 4/3; }
    .wmcm-summary { justify-content: flex-start; gap: 30px; }
}
