#sdt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
}

#sdt-form-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: none;
}

#sdt-form-container h3 {
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

#sdt-form-container .form-group {
    margin-bottom: 20px;
}

#sdt-form-container label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

#sdt-form-container input[type="text"],
#sdt-form-container input[type="email"],
#sdt-form-container input[type="tel"],
#sdt-form-container textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#sdt-form-container input[type="text"]:focus,
#sdt-form-container input[type="email"]:focus,
#sdt-form-container input[type="tel"]:focus,
#sdt-form-container textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

#sdt-form-container textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

#sdt-form-container .btn-group {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

#sdt-form-container button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#sdt-form-container button[type="submit"] {
    background: #007cba;
    color: white;
}

#sdt-form-container button[type="submit"]:hover {
    background: #005a87;
    transform: translateY(-1px);
}

#sdt-form-container .btn-cancel {
    background: #f1f1f1;
    color: #666;
}

#sdt-form-container .btn-cancel:hover {
    background: #e1e1e1;
}

#sdt-form-container .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sdt-form-container .close-btn:hover {
    color: #666;
}

/* 響應式設計 */
@media (max-width: 480px) {
    #sdt-form-container {
        width: 95%;
        padding: 20px;
    }
    
    #sdt-form-container .btn-group {
        flex-direction: column;
    }
    
    #sdt-form-container button {
        width: 100%;
    }
}

/* 比較和批量下載按鈕樣式 */
.wpdt-c .download-zip-btn-wrapper {
    margin: 20px 0;
    text-align: center;
    clear: both;
}

.wpdt-c .download-zip-btn-wrapper button {
    padding: 6px 12px;
    color: #ffffff;
    background-color: #004294;
    margin-right: 5px;
}


/* wpDataTable checkbox 樣式 */
.checkbox-col {
    width: 40px;
    text-align: center;
}

.checkbox-col input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 確保按鈕在表格下方正確顯示 */
.dataTables_wrapper .download-zip-btn-wrapper {
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #e1e5e9;
}


.compare_con{
	max-width: 1260px;
	padding: 60px 15px 120px 15px;
	margin-left: auto;
	margin-right: auto;
}
.compare_frame{
	overflow-x: auto;
}
.compare_table{
	border-collapse: collapse;
	white-space: nowrap;
}
.compare_table th{
	padding: 8px 16px;
	color: #fff;
	background-color: #004294;
	border: 1px solid #fff;
	text-align: center;
}
.compare_table td{
	padding: 8px 16px;
	border: 1px solid #ccc;
	text-align: center;
}
.compare_table th:first-child, .compare_table td:first-child{
	position: sticky;
	left: 0;
	color: #fff;
	background-color: #004294;
	border-color: #fff;
	border-left: none;
	text-align: left;
    padding: 8px 16px;
	z-index: 2;
}
.compare_table th:first-child::after, .compare_table td:first-child::after{
	position: absolute;
	content: "";
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: #fff;
}
.compare_table th:last-child, .compare_table td:last-child{
    padding: 8px 16px;
}

@media (max-width: 600px){
	.compare_con{
		padding: 40px 15px 80px 15px;
	}
	.compare_table th:first-child, .compare_table td:first-child{
		padding: 8px;
	}
}


/* 響應式按鈕設計 */
@media (max-width: 768px) {
    .download-zip-btn-wrapper {
        text-align: center;
    }

}


.wpDataTable a{
    visibility: hidden;
}
.wpDataTable a.active{
    visibility: visible;
}