/* CSS Document */
.customized-section-1 {
    /*padding: 30px 3% calc(20px + 2%) 3%;*/
    height: 1000px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /*align-items: flex-start;*/
    color: #444;
}
/*.customized-section-1 > div:nth-of-type(1) { width: calc(100% - 450px); position: relative;padding-right: 3.5%;}*/
/*.customized-section-1 > div:nth-of-type(2) { width: 450px; text-align: left; padding-left: 0; padding-right: 0; border-left: 1px solid #DEDEDE; padding-top: 0; background: #f6f6f6; }*/

.customized-choice { height: 80vh; overflow: auto; padding:0 25px;}

.customized-3d-tool { position: absolute; z-index: 2; right: 3.5%; top:30px; display: flex; flex-direction: column; flex-wrap: nowrap;}
.customized-3d-tool > div { cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; width: 46px; height: 46px; border-radius: 100%; padding: 8px; margin-bottom: 10px;}
.customized-3d-tool > div:hover, .customized-3d-tool > div.current { background: #e9e7e7;}
.customized-3d-tool > div:hover > img, .customized-3d-tool > div.current > img { filter: brightness(50%);}
.customized-3d-tool > div > img { width: 100%;}

.customized-start { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 0; position: sticky; top:0px; z-index: 3; padding: 25px ;
background: linear-gradient(0deg, #f6f6f6 0%, #fcf1de 100%);}
.customized-start .customized-select-type-1 { margin-bottom: 0;}
.customized-start > div:nth-of-type(1) { width: 60%;}
.customized-start > div:nth-of-type(2) { width: 38%;}

.p-detail-cash { font-weight: 700; font-size: 18px; line-height: 1; padding: 8px 0 0 0; margin-bottom: 6px;}
.p-detail-cash span { display: inline-block; margin-right: 5px;}

.title03 { font-size: 18px; font-weight: 700; line-height: 1.2; padding-bottom: 5px;}
.title03-customer { display: inline-block; padding: 2px 10px; background: #cc9756; color: #fff; border-radius: 12px; margin-right: 5px; font-size: 1rem;}
.title03-2 { padding-bottom: 20px;}
.title03-2 > span { display: inline-block; margin-left: 12px; color: #969696; font-size: 14px; font-weight: 400;}


.customized-type-list { display: flex; flex-direction: row; flex-wrap: wrap; padding-left: 10px; padding-bottom: 10px;}
.customized-type-list > div { cursor: pointer; margin: 0 10px 15px 0; width: calc(25% - 10px); transition: all 0.4s ease-out 0s; }
.customized-type-list > div > img { object-fit: cover; width: 100%; height: 100%; transition: all 0.4s ease-out 0s;}
.customized-type-list > div:hover, .customized-type-list > div.current { box-shadow:inset 0px 0px 0px 2px #fff, 0px 0px 0px 4px #ddd;  }
.customized-type-list > div:hover > img, .customized-type-list > div.current > img { transform: scale(0.85);}

.p-color-list { display: flex; flex-direction: row; flex-wrap: wrap; padding-left: 20px; padding-bottom: 10px;}
.p-color-list > div { cursor: pointer; margin: 0 15px 15px 0; width: 40px; height: 40px; border-radius: 100%;transition: all 0.4s ease-out 0s; position: relative;}
.p-color-list > div > img { object-fit: cover; width: 100%; height: 100%; border-radius: 100%;transition: all 0.4s ease-out 0s;}
.p-color-list > div > span { display: block; transition: all 0.4s ease-out 0s; position:absolute; left: -10px; background: #fff; padding: 5px 8px; z-index: 5; border: 1px solid #eee; font-size: 12px; white-space: nowrap; line-height: 1; opacity: 0; transform: scale(0); border-radius: 10vw;}
.p-color-list > div:hover, .p-color-list > div.current { box-shadow:inset 0px 0px 0px 3px #fff, 0px 0px 0px 5px #ddd;  }
.p-color-list > div:hover > img, .p-color-list > div.current > img, .p-color-list > div.active > img { transform: scale(0.8);}
.p-color-list > div:hover > span { opacity: 1; transform: scale(1);}

.customized-select-type-1 { display: flex; flex-direction: column; flex-wrap: wrap; margin-bottom: 20px;}
.customized-select-type-1 > div:nth-of-type(1) { /*width: 90px;*/ position: relative; padding-right: 10px;}
.customized-select-type-1 > div:nth-of-type(1):after { content:""; position: absolute; top:0; right: 15px; width: 1px; height: 100%; transform: rotate(20deg); background: #cacaca; display: none;}
.customized-select-type-1 > div:nth-of-type(2) { /*width: calc(100% - 90px);*/}
.customized-select-type-1 select { border-radius: 12px;line-height: 1;padding: 13px 40px 13px 14px;background:url("../images/down-arrow.png") no-repeat calc(100% - 15px) 50% #fff; background-size: 20px 20px;border: 1px solid #999999;width: 100%;
-webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;}

.hr-type-1 { margin: 10px 0 25px 0;}

.customized-select-info { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center;}
.customized-select-info > div { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; margin: 0 8px 8px 0;}
.customized-select-info > div > input { background: transparent; border-width: 0; margin: 0 3px; width: 50px; text-align: center; font-weight: 700; line-height: 1; font-size: 20px;}

.customized-select-type-2 { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; margin-bottom: 20px;}
.customized-select-type-2 > div:nth-of-type(1) { width: 30px;}
.customized-select-type-2 > div:nth-of-type(2) { width: calc(100% - 30px - 30px);}
.customized-select-type-2 > div:nth-of-type(3) { width: 30px;}

.customized-select-type-2 button { width: 30px; height: 30px; border-radius: 4px; background: #fff; line-height: 0px; text-align: center; border: 1px solid #c7c7c7;}
.customized-select-type-2 button:hover { color: #fff; background: #444;}
.customized-select-type-2 .ui-state-default { text-indent: -10000px;}
.customized-select-type-2 .ui-slider-horizontal { height: .5em;}
.customized-select-type-2 .ui-slider-handle { width: 22px !important; height: 22px !important; border-radius: 100%; top:50% !important; transform: translateY(-50%); background: #fff !important;}
.customized-select-type-2 .ui-widget-header { background: #fff;}
.customized-select-type-2 .ui-widget-content { background: #444;}

.customized-bar-section { padding: 0 0 10px 0px;}

#widthSlider, #depthSlider { margin: 10px 15px; }

.customized-accories { display: flex; flex-direction: row; flex-wrap: wrap; padding-bottom: 20px;}
.customized-accories > div { margin: 0 10px 10px 0; width: calc(33.33% - 10px); border-radius: 5px; border: 1px solid #999; padding: 5px; position: relative; background: #fff; display: flex; flex-direction: column; flex-wrap: nowrap;}
.customized-accories > div.accessory-incomplete {
    border: 2px solid red;
}
.customized-accories > div:hover { border: 1px solid #444;}

.photo {line-height: 0; height: 0; padding-bottom: 40%; overflow: hidden; position: relative; z-index: 1; margin-bottom: 0px;}
.imgCenter {position: absolute; top: 0; left: 0; right: 0; bottom: 0; line-height: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; z-index: 2;}
.imgCenter img {max-height: 100%;}

.customized-accories-pto { padding-bottom: 65%; margin-bottom: 8px;}
.customized-accories-cash { width: fit-content; line-height: 1; padding: 2px 5px; border-radius: 8vw; background: #b22c00; color: #fff; font-size: 0.6rem; margin:0 auto 6px auto;}
.customized-accories-name { text-align: center; line-height: 1.2;  font-size: 0.8rem; margin-bottom: 6px; min-height: 24px;}

.customized-accories-number { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; margin-bottom: 6px;}
.customized-accories-number > div { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; }
.customized-accories-number > div:nth-of-type(1) { width: 25px;}
.customized-accories-number > div:nth-of-type(2) { width: calc(100% - 25px - 25px);}
.customized-accories-number > div:nth-of-type(3) { width: 25px;}
.customized-accories-number button { width: 25px; height: 25px; border-radius: 100%; background: #fff; line-height: 0px; text-align: center; border: 1px solid #c7c7c7;font-size: 0.6rem; }
.customized-accories-number button:hover { color: #fff; background: #444;}
.customized-accories-number input { background: none; border-width: 0; text-align: center; font-size: 0.6rem; width: 100%;}

.customized-accories select { border-radius: 10vw;line-height: 1;padding: 4px 18px 4px 8px;background:url("../images/down-arrow.png") no-repeat calc(100% - 5px) 50%; background-size: 10px 10px;border: 1px solid #999999;width: 100%; font-size: 0.6rem; margin-bottom: 6px;
-webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;}

.customized-btn { display: block; width: 100%; line-height: 1.2; border-radius: 12vw; background: #b22c00; color: #fff !important; font-size:1rem; text-align: center;transition: all 0.4s ease-out 0s; padding: 10px 8px;}
.customized-btn:hover { transform: scale(0.9);}

.customized-note { font-size: 0.85rem; line-height: 1.2; padding-top: 8px; background: #fcf1de; color: #cc9856; padding: 5px 10px; border-radius: 5px;}

/* AJAX Loading Indicator Styles */
#ajax-loading-indicator {
    display: none; /* 預設隱藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    z-index: 9999; /* 確保在最上層 */
    justify-content: center;
    align-items: center;
}

#ajax-loading-indicator .spinner {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#ajax-loading-indicator .loading-text {
    color: white;
    margin-left: 15px;
    font-size: 1.2em;
}

/* Existing loading screen styles (for context, adjust as needed) */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5em;
}

#loading-screen .spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

#ar-loading-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999; /* Above other content, below main loading screen */
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5em;
}

.ar-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

.ar-spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.ar-loading-message {
    color: white;
    font-size: 1em;
}

@media only screen and (max-width: 980px) {
    .customized-section-1 {
        flex-direction: column;
        height: calc(100vh - 110px);
    }
	.customized-section-1 > div:nth-of-type(1) { width: calc(100% - 0px); padding-right: 0;}
	.customized-section-1 > div:nth-of-type(2) { width: 100%; height:70% !important;border-left: 0px solid #DEDEDE;  }
	
	.customized-choice { height: 280px;}
}

@media only screen and (max-width: 414px) {
	.customized-accories > div { width: calc(50% - 10px);}
}














