/* 상단 예상금액 숨기기 */
.onboardingArea .materials-total-box>div:last-child,
.onboardingArea .materials-total-box>i:last-of-type {
    display: none;
}


section.onboardingArea {
    width: 100%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    padding: 100px 10px 50px 10px;
    margin-bottom: 0;
}

.onboardingArea .onboarding {
    width: 100%;
    max-width: 420px;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    transition: max-width 0.3s ease;
    padding-top: 0px;
}

/* 자재 선택 단계에서만 넓게 */
.onboardingArea .formArea.material-mode {
    max-width: 1650px !important;
}

.onboardingArea .top {
    margin-bottom: 50px;
}


.onboardingArea .step-count {
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.onboardingArea .progress-step {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.onboardingArea .progress-step .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dcdfe6;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.onboardingArea .progress-step .dot.active {
    background: #2563eb;
    transform: scale(1.2);
}


.onboardingArea .step-wrapper {
    display: grid;
    overflow: hidden;
    background: #fff;
}

.onboardingArea #stepContainer {
    display: grid;
}

.onboardingArea .step {
    grid-area: 1 / 1;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateX(40px);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.onboardingArea .step.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.onboardingArea .step.exit-left {
    opacity: 0;
    transform: translateX(-40px);
}

.onboardingArea .step.exit-right {
    opacity: 0;
    transform: translateX(40px);
}

.onboardingArea .step h4 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.35;
    font-weight: 800;
}

.onboardingArea .step>p {
    margin: 0 0 30px;
    color: #8a8f98;
    font-size: 15px;
}


.onboardingArea .form-field label {
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 600;
}

.onboardingArea .step input {
    width: 100%;
    height: 60px;
    margin-bottom: 17px;
    padding: 0 18px;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    outline: none;
}

.onboardingArea .step input:focus {
    border-color: #2563eb;
}


.onboardingArea .option-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.onboardingArea .option-btn {
    width: 100%;
    min-height: 60px;
    padding: 0 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.onboardingArea .option-btn.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}


.onboardingArea .bottom {
    display: flex;
    width: 100%;
    max-width: 420px;
    margin: 50px auto 0;
    gap: 12px;
}

.onboardingArea .nav-btn {
    flex: 1;
    height: 56px;
    border: 0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.onboardingArea .nav-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.onboardingArea .nav-btn.gray {
    background: #edf1f7;
    color: #555;
}

.onboardingArea .nav-btn.blue {
    background: var(--color-main);
    color: #fff;
}


.onboardingArea .price-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: 10px;
    background: #f5f8ff;
}

.onboardingArea .price-label {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.onboardingArea .price-value {
    color: #111;
    font-size: 24px;
    font-weight: 700;
}


.onboardingArea .result-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
}

.onboardingArea .result-modal.active {
    display: block;
}

.onboardingArea .result-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(49, 49, 49, 0.5);
}

.onboardingArea .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 90%;
    max-width: 420px;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #fff;
    transform: translate(-50%, -50%);
}

.onboardingArea .modal-content h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
    text-align: center;
}

.onboardingArea .modal-desc {
    /* margin: 0 0 20px; */
    color: #777;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

.onboardingArea .result-summary {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 10px;
    background: #f7f8fb;
    line-height: 1.9;
}

.onboardingArea .result-summary div {
    font-weight: 500;
}

.onboardingArea .result-summary div b {
    font-weight: 800;
}

.onboardingArea .modal-btn-wrap {
    display: flex;
    margin-top: 30px;
    gap: 12px;
}

.onboardingArea .modal-btn-wrap button {
    flex: 1;
    height: 56px;
    border: 0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.onboardingArea .modal-btn-wrap .gray {
    background: #f1f3f8;
    color: #333;
}

.onboardingArea .modal-btn-wrap .blue,
.onboardingArea #modalCloseBtn {
    background: #2563eb;
    color: #fff;
}


.onboardingArea .materials-step {
    width: 100%;
}

.onboardingArea .materials-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 30px;
}

.onboardingArea .materials-title-box {
    flex: 1;
}

.onboardingArea .materials-head h4 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 30px;
    line-height: 1.3;
}

.onboardingArea .materials-head p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.4;
}


.onboardingArea .materials-total-box {
    /* display: flex; */
    display: none;
    align-items: center;
    min-width: 340px;
    padding: 15px;
    border-radius: 15px;
    background: #f7f9fc;
    gap: 26px;
    justify-content: center;
}

.onboardingArea .materials-total-box>div {
    display: flex;
    align-items: center;
    gap: 18px;
}

.onboardingArea .materials-total-box span {
    color: #374151;
    font-size: 14px;
    white-space: nowrap;
}

.onboardingArea .materials-total-box strong {
    color: #1263e5;
    font-size: 25px;
    white-space: nowrap;
}

.onboardingArea .materials-total-box small {
    margin-left: 3px;
    font-size: 14px;
}

.onboardingArea .materials-total-box i {
    width: 1px;
    height: 36px;
    background: #d8dee9;
}


.onboardingArea .material-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.onboardingArea .material-category {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce3ed;
    border-radius: 15px;
    background: #fff;
}

.onboardingArea .material-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px;
    border: 0;
    background: transparent;
    pointer-events: none;
}

.onboardingArea .material-category-title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.onboardingArea .material-category-title strong {
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.onboardingArea .material-category-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e5eaf2;
    border-radius: 50%;
    background: #f6f9ff;
    font-size: 23px;
}

.onboardingArea .material-category-count {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    padding: 0 7px;
    border-radius: 20px;
    background: #1263e5;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.onboardingArea .material-category-count.show {
    display: inline-flex;
}

.onboardingArea .material-arrow {
    display: none;
    pointer-events: none;
}

.onboardingArea .material-category.closed .material-category-body,
.onboardingArea .material-category.closed .material-category-footer {
    display: none;
}


.onboardingArea .material-category-body {
    flex: 1;
    padding: 20px 20px 0 20px;
}

.onboardingArea .material-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.onboardingArea .material-row:not(:last-child) {
    margin-bottom: 14px;

}

.onboardingArea .material-check {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    gap: 10px;
    cursor: pointer;
}

.onboardingArea .material-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.onboardingArea .custom-checkbox {
    position: relative;
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    border: 1px solid #c8d0dc;
    border-radius: 3px;
    background: #fff;
}

.onboardingArea .material-checkbox:checked+.custom-checkbox {
    border-color: #1263e5;
    background: #1263e5;
}

.onboardingArea .material-checkbox:checked+.custom-checkbox::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.onboardingArea .material-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.onboardingArea .material-name {
    font-size: 16px;
    font-weight: 600;
}

.onboardingArea .material-row-right {
    display: flex;
    flex: 1;
    align-items: center;
}

.onboardingArea .material-unit-price,
.onboardingArea .material-item-total {
    display: none;
}


.onboardingArea .quantity-control {
    display: flex;
    align-items: center;
}

.onboardingArea .quantity-btn,
.onboardingArea .material-quantity {
    border: 1px solid #dce3ed;
    background: #fff;
}

.onboardingArea .quantity-btn {
    width: 34px;
    height: 48px;
    padding: 0 5px;
    font-size: 16px;
    cursor: pointer;
}


.onboardingArea .quantity-minus {
    border-radius: 5px;
    margin-right: 5px;
}

.onboardingArea .quantity-plus {
    border-radius: 6px;
    margin-left: 5px;
}

.onboardingArea .material-quantity {
    margin: 0;
    border-radius: 7px !important;
    font-size: 16px;
    text-align: center;
    outline: none;
    flex: 1;
    margin-bottom: 0 !important;
}

.onboardingArea .material-quantity:focus {
    position: relative;
    z-index: 1;
    border-color: #1263e5;
}

.onboardingArea .material-quantity::-webkit-inner-spin-button,
.onboardingArea .material-quantity::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.onboardingArea .material-quantity[type="number"] {
    appearance: textfield;
    height: 48px;
}

.onboardingArea .quantity-btn:disabled,
.onboardingArea .material-quantity:disabled {
    background: #fafbfc;
    color: #aeb7c4;
    cursor: default;
}

.onboardingArea .quantity-unit {
    margin-left: 8px;
    color: #374151;
    font-size: 12px;
}


.onboardingArea .material-category-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: 14px 20px;
    border-top: 1px solid #e5eaf1;
    background: #fafbfe;
}

.onboardingArea .material-category-footer>div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.onboardingArea .material-category-footer strong {
    color: #1263e5;
}

.onboardingArea .material-category-footer .category-price {
    display: none;
}


.onboardingArea .material-bottom-summary {
    /* display: flex; */
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding: 12px;
    border: 1px solid #dce3ed;
    border-radius: 13px;
    background: #fff;
    display: none;
}

.onboardingArea .material-bottom-summary>div {
    display: flex;
    align-items: center;
    gap: 25px;
}

.onboardingArea .material-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #1263e5;
}

.onboardingArea .material-bottom-summary p {
    margin: 0;
}

.onboardingArea .material-bottom-summary strong {
    color: #1263e5;
}

.onboardingArea .summary-line {
    width: 1px;
    height: 30px;
    background: #e1e6ee;
}

/* 하단 자재 금액 숨기기 */
.onboardingArea .material-bottom-summary p:last-of-type {
    display: none;
}

.onboardingArea .material-reset-btn {
    min-width: 145px;
    height: 46px;
    border: 1px solid #ccd5e1;
    border-radius: 9px;
    background: #fff;
    color: #555;
    cursor: pointer;
}


.onboardingArea .summary-material-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.onboardingArea .summary-material-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #edf0f4;
    gap: 15px;
}

.onboardingArea .summary-material-list strong {
    color: #1263e5;
}

.onboardingArea .summary-material-wrap {
    margin-bottom: 10px;
}

.onboardingArea .summary-material-wrap>b {
    display: block;
}

.onboardingArea .summary-material-scroll {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 6px;
}

.onboardingArea .summary-material-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.onboardingArea .summary-material-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #e5e7eb;
    padding: 3px 0 0 0;
}

.onboardingArea .summary-material-list li:last-child {
    border-bottom: 0;
}

.onboardingArea .summary-material-name {
    flex: 1;
    min-width: 0;
    color: #111;
    font-size: 15px;
    line-height: 1.4;
    word-break: keep-all;
}

.onboardingArea .summary-material-list strong {
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

/* 스크롤바 */
.onboardingArea .summary-material-scroll::-webkit-scrollbar {
    width: 5px;
}

.onboardingArea .summary-material-scroll::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #cbd5e1;
}

.onboardingArea .summary-material-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.material-category-guide {
    padding: 20px 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.onboardingArea .address-search-row {
    display: flex;
    gap: 10px;
}

.onboardingArea .address-search-row #address {
    flex: 4;
}

.onboardingArea .address-search-row #addressSearchBtn {
    flex: 1;
    height: 58px;
    font-size: 15px;
    border-radius: 10px;
}


.material-group {
    margin-bottom: 30px;
}

.material-group .material-group-title {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 17px;
}

.material-sub-name {
    margin-top: 5px;
    display: block;
}

.protection-elevator-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 60px;
    padding: 0 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;

}

.protection-elevator-btn strong {
    font-weight: 600;
}

.protection-elevator-btn.active,
.service-type-btn.active {
    border-color: #326cf9;
    background: #f4f7ff;
    color: #2563eb;
}


/* .protection-elevator-btn .check-icon {
  width: 20px;
  height: 20px;

  flex-shrink: 0;

  border: 2px solid #ccc;
  border-radius: 50%;

  position: relative;
}

.protection-elevator-btn.active .check-icon {
  border-color: #326cf9;
  background: #326cf9;
}

.protection-elevator-btn.active .check-icon::after {
  content: "";

  position: absolute;
  left: 5px;
  top: 2px;

  width: 5px;
  height: 9px;

  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;

  transform: rotate(45deg);
} */

.protection-hallway {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    transition: 0.2s ease;
}

.protection-hallway.active {
    border-color: #326cf9;
    background: #f4f7ff;
}

.protection-hallway.active .protection-hallway-text {
    color: #2563eb;
}

.protection-hallway-check {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    background: transparent;
    margin-bottom: 10px;
    text-align: left;
    cursor: pointer;
}

.protection-hallway .quantity-control {
    /* align-items: flex-start; */
    align-items: center;
}

.protection-hallway .hallway-minus-btn,
.protection-hallway .hallway-plus-btn {
    width: 50px;
    height: 48px;
    padding: 0 5px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    box-sizing: border-box;
}

.protection-hallway .hallway-minus-btn {
    margin-right: 5px;
}

.protection-hallway .hallway-plus-btn {
    margin-left: 5px;
}

.protection-hallway .quantity-control input {
    appearance: textfield;
    height: 50px;
    margin: 0;
}


/* .protection-hallway-check .check-icon {
  width: 26px;
  height: 26px;

  flex-shrink: 0;

  border: 2px solid #ccc;
  border-radius: 50%;

  position: relative;
}

.protection-hallway.active .protection-hallway-check .check-icon {
  border-color: #326cf9;
  background: #326cf9;
}

.protection-hallway.active .protection-hallway-check .check-icon::after {
  content: "";

  position: absolute;
  left: 7px;
  top: 3px;

  width: 6px;
  height: 11px;

  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;

  transform: rotate(45deg); 
}*/

.protection-hallway-text {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    flex-direction: column;

}

.protection-hallway-text strong,
.protection-hallway-text>span {
    font-size: 16px;
    font-weight: 600;
}

.household-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-weight: 600;
    margin-top: 32px;
}

.household-option-btn {
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background-color: #fff;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 16px;
    font-weight: 600;
    justify-content: space-between;
}

/* .household-option-btn .check-icon {
  width: 26px;
  height: 26px;

  flex-shrink: 0;

  border: 2px solid #ccc;
  border-radius: 50%;

  position: relative;
} */

.household-option-btn>span:nth-of-type(2) {
    flex: 1;

    text-align: left;

    font-size: 16px;
    font-weight: 600;
}

.household-option-btn strong {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
}

.household-option-btn.active {
    border-color: #326cf9;
    background: #f4f7ff;
    color: #2563eb;
}

/* .household-option-btn.active .check-icon {
  border-color: #326cf9;
  background: #326cf9;
}

.household-option-btn.active .check-icon::after {
  content: "";

  position: absolute;
  left: 7px;
  top: 3px;

  width: 6px;
  height: 11px;

  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;

  transform: rotate(45deg);
} */

.step-count {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;

    margin-bottom: 18px;

    font-size: 18px;
    font-weight: 700;
}

.progress-step {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.progress-step .dot {
    width: 14px;
    height: 14px;

    border-radius: 50%;

    background: #dfe3eb;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.progress-step .dot.active {
    background: #326cf9;
}

.service-type-step {
    width: 100%;
}

.service-type-step h4 {
    margin-bottom: 16px;

    font-size: 34px;
    line-height: 1.35;
    font-weight: 800;
}

.service-type-step>p {
    margin-bottom: 36px;

    font-size: 18px;
    line-height: 1.5;

    color: #8a8f99;
}

.service-type-list {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-type-btn {
    width: 100%;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 20px;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    background-color: #fff;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.service-type-btn strong {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    color: #111;
}

.service-type-btn span {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    color: #8a8f99;
}

.service-type-btn:hover {
    border-color: #326cf9;
    background: #f7f9ff;
}

.service-type-btn:active {
    transform: scale(0.99);
}

.service-type-btn.active strong,
.service-type-btn.active span {
    color: #2563eb;
}

/* 
   중간 확인 팝업
 */

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    width: 100% !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.confirm-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.confirm-modal-content {
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 40px);

    padding: 36px;

    background: #fff;
    border-radius: 24px;

    overflow-y: auto;

    transform: translateY(15px);
    transition: transform 0.25s ease;
}

.confirm-modal.active .confirm-modal-content {
    transform: translateY(0);
}


/* 제목 */

.confirm-modal-content h3 {
    margin: 0 0 8px;

    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;

    color: #111827;
}

.confirm-modal-desc {
    margin: 0 0 28px;

    font-size: 15px;
    line-height: 1.6;

    color: #6b7280;
}


/* 자재 목록 */

.confirm-summary {
    margin-bottom: 28px;
}

.confirm-material-list {
    border-top: 1px solid #e5e7eb;
}

.confirm-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 17px 4px;

    border-bottom: 1px solid #e5e7eb;
}

.confirm-summary-item span {
    min-width: 0;

    font-size: 15px;
    color: #475569;
}

.confirm-summary-item strong {
    flex-shrink: 0;

    font-size: 16px;
    font-weight: 700;

    color: #2563eb;
}


/* 합계 */

.confirm-summary-total {
    margin-top: 20px;
    padding: 20px;

    background: #f8fafc;
    border-radius: 14px;
}

.confirm-summary-total>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.confirm-summary-total>div+div {
    margin-top: 12px;
}

.confirm-summary-total span {
    font-size: 15px;
    color: #64748b;
}

.confirm-summary-total strong {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}


/* 버튼 */

.confirm-modal .modal-btn-wrap {
    display: flex;
    gap: 10px;
}

.confirm-modal .modal-btn-wrap button {
    flex: 1;
    height: 54px;
    border: 0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.confirm-modal .modal-btn-wrap .gray {
    background: #f1f5f9;
    color: #475569;
}

.confirm-modal .modal-btn-wrap .blue {
    background: #2868ed;
    color: #fff;
}
.protection-total-price,
.household-total-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding: 20px 24px;
  border-radius: 12px;
  background: #f7f7f7;
}

.protection-total-price span,
.household-total-price span {
  font-size: 15px;
  color: #666;
}

.protection-total-price strong,
.household-total-price strong {
  font-size: 22px;
  font-weight: 700;
  color: #222;
}

.confirm-package-section + .confirm-package-section {
  margin-top: 24px;
}

.confirm-section-title {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

@media screen and (max-width: 1200px) {
    .onboardingArea .material-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .onboardingArea .materials-head {
        flex-direction: column;
    }

    .onboardingArea .materials-total-box {
        width: 100%;
        box-sizing: border-box;
    }
}


@media screen and (max-width: 767px) {
    section.onboardingArea {
        min-height: 100vh;
        padding: 80px 0 0;
        margin-bottom: 0;
    }

    .onboardingArea .onboarding,
    .onboardingArea .formArea.material-mode {
        max-width: none !important;
        height: calc(100vh - 80px);
        padding: 0 20px 90px;
        box-sizing: border-box;
        overflow-y: auto;
        border-radius: 0;
    }

    .onboardingArea .material-arrow {
        display: inline-block;
        margin-left: 10px;
        transition: transform 0.25s ease;
    }

    .onboardingArea .material-category:not(.closed) .material-arrow {
        transform: rotate(180deg);
    }

    .onboardingArea .material-category.closed .material-arrow {
        transform: rotate(0);
    }

    .onboardingArea .top {
        margin-bottom: 30px;
    }

    .onboardingArea .bottom {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 30;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 10px 20px;
        box-sizing: border-box;
        background: #fff;
        box-shadow: 0 -5px 18px rgba(0, 0, 0, 0.06);
    }

    .onboardingArea .materials-head {
        display: block;
        margin-bottom: 20px;
    }

    .onboardingArea .materials-head h4 {
        font-size: 25px;
    }

    .onboardingArea .materials-total-box {
        justify-content: space-evenly;
        min-width: 0;
        margin-top: 20px;
        padding: 18px;
        gap: 12px;
        display: none;
    }

    .onboardingArea .materials-total-box>div {
        display: block;
    }

    .onboardingArea .materials-total-box span {
        display: block;
        margin-bottom: 5px;
    }

    .onboardingArea .materials-total-box strong {
        font-size: 20px;
    }

    .onboardingArea .materials-total-box i {
        height: 40px;
    }

    .onboardingArea .material-category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .onboardingArea .material-category-head {
        padding: 16px;
        pointer-events: all;

    }

    .onboardingArea .material-category-body {
        padding: 15px 15px 0 15px;
    }

    .onboardingArea .material-category-title strong {
        font-size: 16px;
    }

    .onboardingArea .material-name {
        max-width: 110px;
        word-break: keep-all;
        line-height: 1.2;
    }

    .onboardingArea .quantity-btn {
        width: 30px;
    }

    .onboardingArea .material-quantity {
        padding: 0 5px !important;
    }

    .onboardingArea .quantity-unit {
        margin-left: 5px;
    }

    .onboardingArea .material-bottom-summary {
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
    }

    .onboardingArea .material-bottom-summary>div {
        justify-content: space-between;
        gap: 8px;
    }

    .onboardingArea .material-cart,
    .onboardingArea .summary-line {
        display: none;
    }

    .onboardingArea .material-reset-btn {
        width: 100%;
    }

    .onboardingArea .address-search-row #addressSearchBtn {
        flex: 1.5;
        font-size: 14px;
    }

    .material-group .material-group-title {
        font-size: 16px;
        font-weight: 800;
    }

    .onboardingArea .modal-content {
        max-height: calc(100vh - 40px);
        display: flex;
        flex-direction: column;
    }

    .onboardingArea .result-summary {
        overflow-y: auto;
        margin-bottom: 0px;
        padding-right: 6px;
    }

    .confirm-modal {
        padding: 16px;
    }

    .confirm-modal-content {
        max-width: none;

        padding: 26px 20px;

        border-radius: 20px;
    }

    .confirm-modal-content h3 {
        font-size: 22px;
    }

    .confirm-summary-item {
        padding: 15px 2px;
    }


}