
.elementor-chengho-calc-container .category {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .elementor-chengho-calc-container .category {
        grid-template-columns: 1fr;
    }
}
.elementor-chengho-calc-container .category-card {
    background: #fff;
    /*border: 1px solid #ccc;*/
    border-radius: 8px; 
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.elementor-chengho-calc-container .category-card-title {
    padding: 5px 10px;
    color: #fff;
    background: rgb(166, 154, 138);
    border-radius: 5px;
    cursor: pointer;
}
.elementor-chengho-calc-container .category-card-title span{
    float: right;
    transition: 0.5s;
}
.elementor-chengho-calc-container .category-card.closed span {
    transform: rotate(180deg);
}
.elementor-chengho-calc-container .category-card ul {
    list-style: none;
    padding: 0;
    margin: 10px 15px;
    transition: 0.5s;
}
.elementor-chengho-calc-container .category-card.closed ul {
    height: 0;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
}
.elementor-chengho-calc-container .category-card ul li {
    margin: 5px 0;
    display: flex;
    align-items: start;
}
.elementor-chengho-calc-container .category-card ul li input {
    margin-right: 10px;
}
.elementor-chengho-calc-container .buttons {
    text-align: center;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.elementor-chengho-calc-container .buttons button {
    background-color: rgb(40,	70,	93	);
    color: #fff;
    border: none;
    padding: 16px 20px;
    font-size: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}
.elementor-chengho-calc-container .buttons button:hover, .elementor-chengho-calc-container .buttons button:focus  {
    background-color: #954b42;
}
.elementor-chengho-calc-container .result {
    font-size: 20px;
    margin-top: 20px;
}
.elementor-chengho-calc-container .category-card label {
    cursor: pointer;
}

/* 隱藏原生 checkbox */
.elementor-chengho-calc-container .category-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* 自訂 checkbox 樣式 */
.elementor-chengho-calc-container .category-card input[type="checkbox"] + label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
}

/* 未選中的樣式（:before） */
.elementor-chengho-calc-container .category-card input[type="checkbox"] + label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 1px solid #666;
    border-radius: 4px;
    background-color: #fff;
}

/* 已選中的樣式（:after） */
.elementor-chengho-calc-container .category-card input[type="checkbox"]:checked + label:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    background: rgb(166, 154, 138);
    height: 12px;
    width: 12px;
    border-radius: 2px;
}


.elementor-chengho-calc-container .category-card input[type=number]{
    border: none;
    border-bottom: 1px solid;
    margin-right: 5px;
    -webkit-appearance: none;
    width: 3em;
    text-align: center;
    outline: none;
    padding: 0;
}

.elementor-chengho-calc-container .calc-string{
    font-size: 30px;
    color: #1e4861;
    margin-bottom: 0;
    line-height: 1.2em;
}
.elementor-chengho-calc-container .calc-hint{
    font-size: 14px;
    color: #999999;
}
.elementor-chengho-calc-container .result{
    display: none;
}
.elementor-chengho-calc-container .result.show{
    display: block;
}
.elementor-chengho-calc-container .result a{
    background-color: rgb(223,227,236	);
    border-radius: 5px;
    -webkit-box-shadow: none;
    box-shadow: none;
    text-decoration: none;
    display: inline-block;
    padding: 8px 15px;
    color: #000;
    margin-right: 10px;
}
.elementor-chengho-calc-container .result .link-arrow{
    display: none;
}

.elementor-chengho-calc-container .result .service-desc {
    display: inline-block;
    font-size: 16px;
    color: #333;
}

@media (max-width: 768px) {
    .mobile-show{
        display: inline;
    }
    .elementor-chengho-calc-container .result #total-price{
        display: block;
    }
    .elementor-chengho-calc-container .result a{
        margin-right: 0px; 
        display: flex;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        align-items: center;
        justify-content: space-between;
    }
    .elementor-chengho-calc-container .result .link-arrow{
        display: inline;
        opacity: 0.3;
    }

    .elementor-chengho-calc-container .result .service-desc {
        display: block;
        margin-top: 0px;
        background: #fefefe;
        padding: 15px;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }
}