/*
Theme Name: aptimes
Theme URI: https://arrowpont.com/
Author: ARROWPONT
Author URI: https://arrowpont.com
Description: Theme used exclusively within the Arrowpont company
Version: 3.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aptimes
*/

/*basic-style-start*/
a {
    text-decoration: none;
}
html {
    font-size: 16px;
}
html, body {
  overscroll-behavior: none; /* 禁用滾動到邊界時的拖拽回彈效果 */
}
html, body {
  overflow-x: hidden; /* 禁用水平滾動 */
  max-width: 100vw;   /* 限制寬度在視口內 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #002557;
}
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #002557;
}
select{
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: #4a4a4a #e0e0e0;
}

select::-webkit-scrollbar {
  width: 4px;
}

select::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 2px;
}

select::-webkit-scrollbar-thumb {
  background-color: #4a4a4a;
  border-radius: 2px;
}

select::-webkit-scrollbar-thumb:hover {
  background-color: #2a2a2a;
}

/*basic-style-end*/

/* Webkit-based browsers (Chrome, Safari) */
::-webkit-scrollbar {
    width: 12px; /* Scrollbar width */
    height: 12px; /* Scrollbar height */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* Scrollbar track color */
    border-radius: 10px; /* Scrollbar track corner radius */
}

::-webkit-scrollbar-thumb {
    background: #888; /* Scrollbar thumb color */
    border-radius: 10px; /* Scrollbar thumb corner radius */
}

::-webkit-scrollbar-thumb:hover {
    background: #555; /* Scrollbar thumb hover color */
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #d9d9d9 #f1f1f1;
}
/* Edge, IE */
* {
    -ms-overflow-style: -ms-autohiding-scrollbar; /* Edge and IE specific scrollbar styles */
}
.no-breadcrumbs .main-content {
    padding-top: 0;
    padding-bottom: 0;
}
.token-cost {
    background-color: #13227a;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    position: relative;
    display: inline-block;
}
.token-cost::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid #13227a;
}
.user-avatar {
    border-radius: 50%;
    overflow: hidden;
    max-width: 41px;
    box-shadow: 0px 0px 8px #737373;
    border: 1px solid #fff;
}
.user-name {
    margin-left: 15px;
    color: #fff;
}
div#user-info {
    display: flex;
    align-items: center;
    margin: 0px -20px 15px -20px;
    padding: 10px 20px;
}
div#user-info a {
    color: #fff;
}
p.token-cost {
    display: none;
}
span.user-token-info {
    font-size: 12px;
    margin-left: 15px;
}
#document-upload-container {
    background: linear-gradient(7deg, #ce00ff, #0d6efd);
    color: #fff;
}

#document-upload-form input[type="submit"],#en-document-upload-form input[type="submit"],#nv-document-upload-form input[type="submit"],#pr-document-upload-form input[type="submit"],#nev-document-upload-form input[type="submit"],#questioning-system-form input[type="submit"] {
    border: 2px solid #ffffff96;
    width: 100px;
    background: white;
    transition: .2s;
    border-radius: 6px;
    color: #3F51B5;
    font-weight: 700;
    line-height: 35px;
}

#document-upload-form input[type="submit"]:hover,#en-document-upload-form input[type="submit"]:hover,#nv-document-upload-form input[type="submit"]:hover,#pr-document-upload-form input[type="submit"]:hover,#nev-document-upload-form input[type="submit"]:hover,#questioning-system-form input[type="submit"]:hover {
    background: linear-gradient(45deg, transparent, #2196F3);
    border-color: #ffffff;
    color: #ffffff;
}

    /*  */
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /*  */
    .loading-icon {
        border: 8px solid #f3f3f3; /*  */
        border-top: 8px solid #060b27; /*  */
        border-radius: 50%; /*  */
        width: 50px;
        height: 50px;
        animation: spin 2s linear infinite; /*  */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /*  */
    }
    .loading-iconv2 {
        border: 8px solid #f3f3f3; /*  */
        border-top: 8px solid #1E87DF; /*  */
        border-radius: 50%; /*  */
        width: 50px;
        height: 50px;
        animation: spin 2s linear infinite; /*  */
        position: absolute;
        top: 50%;
        left: calc(50% - 20px);
        transform: translate(-50%, -50%); /*  */
    }
    .loading-iconv3 {
        border: 3px solid #f3f3f3; /*  */
        border-top: 3px solid #1E87DF; /*  */
        border-radius: 50%; /*  */
        width: 15px;
        height: 15px;
        animation: spin 2s linear infinite; /*  */
        position: absolute;
        top: 22px;
        /*left: 50%;*/
        /*transform: translate(-50%, -50%);   */
    }
    .loading-iconv4 {
        width: 70px;
        height: 70px;
        position: absolute;
        top: calc(50% + 20px);
        left: 50%;
        transform: translate(-50%, -50%); /*  */
    }
    .loading-iconv5 {
        width: 70px;
        height: 70px;
        margin: auto;
    }
    
    @media(min-width:1024px){
        .loading-iconv4 {
            width: 250px;
            height: 250px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -70%); /*  */
        }
        .loading-iconv5 {
            width: 250px;
            height: 250px;
            margin: auto;
        }
        .loading-iconv4 video,.loading-iconv5 video {
            width: 250px;
            height: 250px;
        }
    }
    @media(max-width:767px){
        .loading-iconv4 {
            transform: translate(-50%, -25%); /*  */
        }
    }
    /* loading */
    .loading-container {
        position: relative;
        height: 100%; /*  */
        width: 100%;
        align-content: center;
    }
    svg.loadingsvg {
        max-width: 200px;
        display: block;
        margin: 0 auto;
    }

    /*  */
    .hidden {
        display: none;
    }
    
 /*  */
    #exam-form {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        background-color: #f9f9f9;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /*  */
    #exam-form input[type="text"], 
    #exam-form textarea {
        width: calc(25% - 10px); /* input */
        margin: 0 10px 20px 0;
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }

    /* textarea */
    #exam-form textarea {
        width: 100%; /* input */
        min-height: 150px;
        resize: vertical; /*  */
    }

    /*  */
    #exam-form button[type="button"], 
    #exam-form button[type="submit"] {
        background-color: #0073aa;
        color: #fff;
        padding: 12px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
    }

    #exam-form button[type="button"]:hover, 
    #exam-form button[type="submit"]:hover {
        background-color: #005a87;
    }

    /*  */
    #exam-form .form-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    /*  */
    #exam-form .form-group input[type="text"] {
        flex: 1;
        min-width: 120px;
        margin-right: 10px;
    }

    #exam-form .form-group textarea {
        flex-basis: 100%;
    }

    /*  */
    #exam-form .form-group button {
        width: 100%;
        margin-top: 20px;
    }
    
.footer-wrapper {
    display: none;
}

body.single.single-writing_exam .container {
    width: 100% !important;
    max-width: 100%;
}
@media(min-width:920px){
#exam-form .form-group textarea {
    height: calc(100vh - 280px);
}
body.single.single-writing_exam .page-content {
    width: 50%;
    overflow: scroll;
    max-height: 100vh;
    height: 100vh;
}
.custom-exam-form-container {
    width: 50%;
    max-height: 100vh; 
    height: 100vh; 
}
body.single.single-writing_exam article.post-52.writing_exam.type-writing_exam.status-publish.hentry {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    flex-direction: row;
}
}
div#startExamModal p {
    text-align: center;
    font-size: 20px;
    color: #000;
    font-weight: 600;
}
/*body.single.single-writing_exam .page-content {*/
/*    padding: 15px 0;*/
/*}*/
@media(max-width:919px){
body.single.single-writing_exam .page-content {
    height:auto;
    min-height: auto;
}
}

/*menu*/
.aptimes-bg-light {
    box-shadow: 0px 3px 3px #00000014;
    margin-bottom: 0px;
    padding-bottom: 0px;
}
.navbar-nav li:hover > .sub-menu {
    display: block;
}

.navbar-nav .sub-menu {
    display: none;
    padding: 0;
    margin-top: 0px;
    background-color: transparent;
    list-style: none;
    border: none;
    z-index: 99999;
}
li.menu-item-has-children>a:after {
    content: '\e313';
    font-family: 'Material Icons Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}
.navbar-nav .sub-menu li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #007bff;
}
nav.navbar ul.navbar-nav li.current_page_item>a {
    color: #0043ee;
}
@media (min-width: 992px) {
    .navbar-nav .sub-menu {
        position: absolute;
        background: #fff;
        min-width: 280px;
    }
    nav.navbar ul.navbar-nav li:hover>a {
        color: #0043ee;
    }
}
/**/

/* 側邊菜單樣式 */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    text-align: center;
    background-image: linear-gradient(148deg, #f0f9ff 6.72%, #fff 46.43%, #f7f5fd 98.63%);
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
}

/* 侧边栏内容样式 */
.sidenav a {
    padding: 8px;
    text-decoration: none;
    font-size: 16px;
    color: #0d1d4d;
    display: flex;
    transition: 0.3s;
    text-transform: capitalize;
}
.sidenav li a {
    border-bottom: 1px solid #fff;
}
/* 鼠标悬停侧边栏链接时样式 */
.sidenav a:hover {
    color: #f1f1f1;
}


/* 用于关闭侧边栏的 "X" 按钮 */
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 5px;
    font-size: 20px;
}

/* 侧边栏的背景遮罩 */
.sidenav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999; /* 要低于侧边栏，但要高于内容 */
    display: none; /* 初始隐藏 */
    transition: 0.5s;
}
nav.navbar ul.navbar-nav li a {
    text-transform: capitalize;
    padding: 15px;
    color: #000;
    display: flex;
    position: relative;
}



nav.navbar ul.navbar-nav li a i, .sidenav a i {
    margin-right: 2px;
    width: fit-content;
    max-width: 24px;
    font-size: 15px;
    line-height: 28px;
}

h1.page-title {
    font-size: 18px;
    line-height: 40px;
    text-align: center;
    text-transform: uppercase;
}
button#download-feedback, button#download-en-feedback, button#download-nv-feedback, button#download-nev-feedback, button#download-pr-feedback {
    position: fixed;
    bottom: 10px;
    right: 25px;
    border-radius: 5px;
    color: #ffffff;
    line-height: 30px;
    font-size: 14px;
    border: 1px solid #000;
    background: linear-gradient(45deg, #7277FF, #2196F3);
    border-color: #cb9292;
}
.marking-qs-feedback {
    position: relative;
}
button#download-qs-feedback, button#download-qsa-feedback {
    position: relative;
    margin-top: 15px;
    float: right;
    border-radius: 5px;
    color: #ffffff;
    line-height: 30px;
    font-size: 14px;
    border: 1px solid #000;
    background: linear-gradient(45deg, #7277FF, #2196F3);
    border-color: #cb9292;
}
button#download-feedback:hover,button#download-en-feedback:hover,button#download-nv-feedback:hover,button#download-nev-feedback:hover,button#download-pr-feedback:hover,button#download-qs-feedback:hover,button#download-qsa-feedback:hover {
    color: #1f90eb;
    background: #fff;
    box-shadow: 0 0 2px #ccc;
    border-color: #1f90eb;
}
button#download-feedback:hover:after,button#download-en-feedback:hover:after,button#download-nv-feedback:hover:after,button#download-nev-feedback:hover:after,button#download-pr-feedback:hover:after,button#download-qs-feedback:hover:after,button#download-qsa-feedback:hover:after {
    content: '';
    background: #eba41f;
    width: 8px;
    height: 8px;
    display: inline-block;
    position: absolute;
    right: 3px;
    top: 3px;
    border-radius: 50%;
}
button#download-feedback i,button#download-en-feedback i,button#download-nv-feedback i,button#download-nev-feedback i ,button#download-pr-feedback i,button#download-qs-feedback i,button#download-qsa-feedback i {
    line-height: 35px;
    float: left;
}
button#download-feedback span,button#download-en-feedback span,button#download-nv-feedback span,button#download-nev-feedback span,button#download-pr-feedback span,button#download-qs-feedback span,button#download-qsa-feedback span {
    line-height: 35px;
}
.extracted-nv-text label,.extracted-nev-text label,.extracted-pr-text label, .qs-instant-quiz label {
    width: 100%;
}

textarea#extracted_nv_text, textarea#extracted_nev_text, textarea#extracted_pr_text,textarea#question-answer {
    width: 100%;
    height: calc(100% - 80px);
    border-radius: 8px;
    box-shadow: 0 8px 20px 0 #575757;
    padding: 15px;
    margin-top: 15px;
    border: solid #3d9cf1;
}
textarea#extracted_nv_text:focus-visible, textarea#extracted_nev_text:focus-visible, textarea#extracted_pr_text:focus-visible,textarea#question-answer:focus-visible {
    outline: 2px solid #3d9cf1;
}
.tooltips {
    display: none;
}
span.tooltips {
    background: #2e2e2e;
    color: #fff;
    position: absolute;
    width: 56px;
    left: 50px;
    top: 12px;
    border: 1px solid #6f6f6f;
    border-radius: 0 10px 10px 10px;
    font-size: 12px;
    line-height: 26px;
    text-align: center;
}
span.tooltips.tooltipsright {
    left: initial;
    right: 40px;
    border-radius: 10px 0 10px 10px;
    top: 5px;
    line-height: 26px !important;
}

@media(min-width:1240px){
.exammarker .col-lg-12 {
    display: flex;
    padding: 0;
}
}
.user-avatar img {
    width: 100%;
    height: auto;
}
#document-upload-form textarea,#en-document-upload-form textarea,#nv-document-upload-form textarea,#pr-document-upload-form textarea,#nev-document-upload-form textarea, #pr-document-upload-form textarea, #questioning-system-form textarea {
    border-radius: 15px;
    background: #fff;
    padding: 10px;
}
#document-upload-form input[type="submit"]:disabled,#en-document-upload-form input[type="submit"]:disabled,#nv-document-upload-form input[type="submit"]:disabled,#pr-document-upload-form input[type="submit"]:disabled,#nev-document-upload-form input[type="submit"]:disabled,#pr-document-upload-form input[type="submit"]:disabled, #questioning-system-form input[type="submit"]:disabled, #quick-question-answering-system input[type="submit"]:disabled {
    background: linear-gradient(45deg, #aedbff, #c7c9ff);
    cursor: not-allowed;
}
.sidemenu {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: #f7f7f7;
    padding: 0 5px;
}

.sidemenu-item a {
    display: block;
    color: #3759d7;
    border-radius: 50%;
    position: relative;
    width: 46px;
    height: 46px;
}
.sidemenu-item a i {
    font-size: 24px;
    line-height: 46px;
}
.sidemenu-item a svg {
    height: 46px;
}
.sidemenu-item {
    width: auto;
    text-align: center;
    margin-bottom: 10px;
}
.sidemenu-item a:hover {
    color: #1f90eb;
    background: #fff;
    box-shadow: 0 0 2px #ccc;
}
.sidemenu-item a:hover:after {
    content: '';
    background: #eba41f;
    width: 8px;
    height: 8px;
    display: inline-block;
    position: absolute;
    right: 8px;
    top: 8px;
    border-radius: 50%;
}
@media(max-width:1239px){
.sidemenu {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .sidemenu-item {
        margin-bottom: 0px;
        margin-left: 10px;
    }
    span.tooltips {
        left: initial;
        right: 48px;
        border-radius: 10px 0 10px 10px;
        top: 10px;
        line-height: 26px !important;
    }
}
.navbar-brand img {
    max-height: 40px;
    max-height: var(--wpt-logo-height);
    height: auto;
    width: auto;
}
.error404 .container.text-center {
    padding: 100px 15px;
    height: calc(100vh - 206px);
}

.error404 .container.text-center h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.error404 .btn.btn-primary {
    text-transform: uppercase;
}
.page-template-client-login>.container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.page-template-client-login>.container h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* 提示文字样式 */
.page-template-client-login .container p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

/* 输入框样式 */
.page-template-client-login input[type="text"],
.page-template-client-login input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 按钮样式 */
.page-template-client-login input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #2aadff, #8f61ff);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-template-client-login input[type="submit"]:hover {
    background: linear-gradient(215deg, #2aadff, #8f61ff);
}

/* 记住我复选框样式 */
.page-template-client-login .container label[for="rememberme"] {
    font-size: 14px;
    color: #666;
}

.fullheight-head {
    min-height: calc(100vh - 110px);
}
@media(max-width:768px){
    .fullheight-head {
        min-height: 300px;
    }
}
.main-linear-gradient {
    text-align: center;
    background-image: linear-gradient(227.53deg, #adddffcc 6.72%, #fff 46.43%, #fff 71.41%, #ede8ffc4 98.63%), url(https://amarker.ai/wp-content/uploads/2024/08/banner-amaker-aibg.png);
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
}
.amarker-bg-light {
    box-shadow: 0px 0px 2px #00000014;
    margin-bottom: 2px;
}
button.navbar-toggler.nobd {
    border: none;
}
.design-font-01 h1 {
    background: linear-gradient(45deg, #2aadff, #8f61ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bolder;
    display: inline-block;
}
.design-font-02 h1 {
    background: linear-gradient(45deg, #2aadff, #8f61ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bolder;
    display: inline-block;
}
.design-font-02 h1 {
    font-size: 3.2rem;
}
@media(min-width:1240px){
    .design-font-02 h1 {
        font-size: 6.2rem;
    }
}
@media(min-width:1024px) and (max-width:1239px){
    .design-font-02 h1 {
        font-size: 4.2rem;
    }
}
.amarker-post-grid .col-md-4 {
    margin-bottom: 15px;
    margin-top: 15px;
}
.amarker-post-grid .col-md-4 a {
    border: 1px solid #ccc;
    border-radius: 15px;
    box-shadow: 0 0 2px #0d70fd;
    padding: 15px;
    display: block;
    color: #264573;
}
.amarker-post-grid .col-md-4 a i {
    font-size: 17px;
    line-height: 26px;
}
.amarkerposticonhead {
    float: left;
    margin-right: 5px;
}
.amarkerposticonfoot {
    float: right;
}
.amarker-post-grid .col-md-4 a:hover {
    box-shadow: 0 0 5px #0d70fd;
}
.amarkerbtn {
    border: 2px solid #3658d6;
    width: 170px;
    background: #fff;
    transition: .2s;
    border-radius: 6px;
    color: #3658d6;
    line-height: 35px;
    display: block;
    text-align: center;
    cursor: pointer;
}
.amarkerbtn i {
    float: left;
    line-height: 35px;
    margin-left: 4px;
}
.amarkerbtn:hover {
    background: linear-gradient(45deg, #7277FF, #2196F3);
    border-color: #cb9292;
    color: #fff;
}
a.amarkerbtn.amarkerbtn-mini {
    width: 125px;
}
.ocrform {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    margin: 15px auto;
}
.ocrform label {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    display: block;
}
textarea#ocr-result-textarea {
    height: calc(100vh - 500px);
}
.ocrform input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 15px;
    background-color: #fafafa;
}

.ocrform input[type="submit"] {
    background-color: #007bff;
    background: linear-gradient(45deg, #2196F3, #7277FF);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.ocrform input[type="submit"]:hover {
    background-color: #0056b3;
    background: linear-gradient(45deg, #7277FF, #2196F3);
    box-shadow: 0px 0px 0px 2px #ff000052;
}
@media(min-width:1024px){
form.ocrform {
    max-width: 100%;
}
.ocrform label,.ocrform input {
    display: inline-block;
    width: auto !important;
    line-height: 24px;
    padding: 5px 20px !important;
    margin-bottom: 0 !important;
}
.ocrform input[type="file"] {
    padding: 2px 0px!important;
}
}

.view-history {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    margin: 15px auto;
}
.view-history label {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    display: block;
}
.view-history input[type="date"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 15px;
    background-color: #fafafa;
}

.view-history input[type="submit"] {
    background-color: #007bff;
    background: linear-gradient(45deg, #2196F3, #7277FF);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.view-history input[type="submit"]:hover {
    background-color: #0056b3;
    background: linear-gradient(45deg, #7277FF, #2196F3);
    box-shadow: 0px 0px 0px 2px #ff000052;
}
@media(min-width:1024px){
form.view-history {
    max-width: 100%;
}
.view-history label,.view-history input {
    display: inline-block;
    width: auto !important;
    line-height: 24px;
    padding: 5px 20px !important;
    margin-bottom: 0 !important;
}
}
@media(max-width:1023px){
.view-history input[type="submit"] {
    margin-bottom: 7px;
}
}
span.user-times-info, span.user-improvement-info {
    display: block;
}

/*WooCommerce*/


.flex-viewport {
    border-radius: 15px;
    margin-bottom:15px;
}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    border-radius: 15px;
    overflow: hidden;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #f2f2f2;
    margin: 4px;
    width: calc(25% - 8px);
    transition: .3s;
}

.woocommerce div.product div.images .flex-control-thumbs li:hover {
    box-shadow: 0 0 3px #7474747d;
    transform: scale(1.05);
    border-color: #77aeff;
}

body.product-template-default.single h1.page-title {
    display: none;
}

@media(min-width:768px){
.woocommerce .single-product .product {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.woocommerce div.product div.images {
    width: 40%;
    padding-right:15px;
}
.woocommerce div.product div.summary {
    width: 60%;
    padding-left:15px;
}
    section.related.products {
        width: 100%;
    }
}
.woocommerce div.product form.cart .button:hover {
    background: linear-gradient(45deg, #7277FF, #2196F3);
    border: 2px solid #fddcc5;
}

.woocommerce div.product form.cart .button {
    background: linear-gradient(45deg, #2196F3, #7277FF);
    border: 2px solid #2aadff;
}

.woocommerce .quantity .qty {
    height: 40px;
    border: 1px solid #897e7e;
    border-radius: 5px;
}

.related.products ul.products li.product {
    justify-content: center;
}
/* 調整產品圖片的大小 */
.single-product .woocommerce-product-gallery img {
    width: 100%;
    /*max-width: 500px;*/
    height: auto;
    margin: 0 auto;
    display: block;
}

/* 調整產品標題樣式 */
.single-product h1.product_title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
}

/* 調整價格顯示樣式 */
.single-product .woocommerce-Price-amount {
    font-size: 1.5rem;
    color: #5f85ff;
    font-weight: bold;
}

/* 自定義Add to Cart按鈕樣式 */
.single-product .single_add_to_cart_button {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    text-align: center;
    display: block;
    margin: 20px auto;
    border-radius: 5px;
}

.single-product .single_add_to_cart_button:hover {
    background-color: #005f8a;
}

/* 調整相關產品區塊 */
.related.products {
    margin-top: 50px;
}

.related.products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.related.products ul.products li.product {
    text-align: center;
    margin: 0 auto;
}


.container-fluid .page-content {
    padding: 0 !important;
}
.highlight {
    background-color: #87ebff;
    font-weight: bold;
}
.highlightv2 {
    background: #ffff00;
    font-weight: bold;
}
.highlightv3 {
    background: #ff4786;
    font-weight: bold;
    color: #fff;
    padding: 2px 10px;
}
span.agree_terms a {
    color: #ffc107;
}
span.agree_terms {
    margin-top: 15px;
    display: block;
}
.amarker-settings.historybox {
    width: inherit;
}
span.agree_terms input {
    display: inline-block !important;
}
span#get-improved-article {
    margin-top: 35px;
}
.improvearticlecontent {
    margin-bottom: 35px;
}
h3.extracted_nv_title,h3.extracted_nev_title,h3.extracted_pr_title {
    color: #419dff;
    background: linear-gradient(45deg, #2196F3, #7277FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.marking-nv-feedback, .marking-pr-feedback, .marking-nev-feedback,.marking-feedback,.marking-en-feedback, .marking-qs-feedback {
    padding-bottom: 55px;
}

.endoccontainer {
    background: linear-gradient(182deg, #f329b9, #0008ff) !important;
}
.alternatives-plan {
    margin-top: 20px;
    background: #fbfbfb;
    border-radius: 15px;
    padding: 15px;
    border: 1px dashed #efefef;
}
.alternatives-plan p {
    margin-bottom: 10px;
}
.alternatives-plan a {
    border: 2px solid #3658d6;
    width: 128px;
    background: linear-gradient(45deg, #f7f7f7, #fdfdfd, #f7f7f7);
    transition: .2s;
    border-radius: 6px;
    color: #000000;
    line-height: 28px;
    font-size: 14px;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    margin-right: 15px;
}
.alternatives-plan a:hover {
    background: linear-gradient(45deg, #7277FF, #2196F3);
    border-color: #cb9292;
    color: #fff;
}

.registrationform,.loginform {
    max-width: 400px;
    margin: 10px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.registrationform p,.loginform p {
    margin-bottom: 20px;
}

.registrationform label,.loginform label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.registrationform input[type="text"],
.registrationform input[type="email"],
.registrationform input[type="password"],
.loginform input[type="text"],
.loginform input[type="email"],
.loginform input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.registrationform input[type="submit"] ,.loginform input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #2aadff, #8f61ff);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.registrationform input[type="submit"]:hover ,.loginform input[type="submit"]:hover {
    background: linear-gradient(215deg, #2aadff, #8f61ff);
}
.vc_tta-color-sky.vc_tta-style-flat .vc_tta-tab.vc_active>a {
    background: linear-gradient(45deg, #2196F3, #7277FF) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    padding: 5px 15px !important;
}

.vc_tta-color-sky.vc_tta-style-flat .vc_tta-tab>a {
    background: linear-gradient(45deg, #2196F3, #7277FF) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.vc_tta-color-sky.vc_tta-style-flat .vc_tta-tab.vc_active {
    background: #fbfbfb !important;
}

.vc_tta-color-sky.vc_tta-style-flat .vc_tta-tab:hover {
    background: #fbfbfb !important;
}
.error-message.loginnotice a.amarkerbtn.amarkerbtn-mini {
    display: inline-block;
    max-width: 108px;
}
.error-message.loginnotice p {
    margin-bottom: 5px;
}
p.warning-message {
    text-align: center;
    background: #f2f2f2;
    display: block;
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
    border-radius: 5px;
    line-height: 35px;
    font-size: 15px;
}
.feedback-notice {
    background: #dbdbdb;
    margin-top: 20px;
    padding: 15px;
    border-radius: 15px;
     font-size: 15px;
}
.firloadingword {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 78px;
    font-size: 25px;
    width: 100%;
    text-align: center;
}
@media(max-width:767px){
.firloadingword {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 78px;
    font-size: 15px;
    width: 100%;
    text-align: center;
}
}

/*batch-ocr-and-review*/
div#result-container {
    background: linear-gradient(180deg, #f1f1f1, #f9f9f9, #f1f1f1);
    border-radius: 15px;
    margin-top: 15px;
}

div#result-container p {
    margin-bottom: 0;
    padding: 15px;
}

form.batch-ocr-form input[type="submit"], .batch-ocr-result a.download-btn,.amarkerbtnwithdl,.amarkerbtnv2 {
    border: 2px solid #ffffff96;
    width: 186px;
    background: linear-gradient(45deg, #2196F3, #7277FF);
    transition: .2s;
    border-radius: 6px;
    color: #fff;
    line-height: 35px;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    margin: 5px;
}
.batch-ocr-result a.download-btn {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-left: 15px;
    padding-right: 15px;
}
form.batch-ocr-form input[type="submit"]:hover, .batch-ocr-result a.download-btn:hover, .amarkerbtnwithdl:hover, .amarkerbtnv2:hover {
    background: linear-gradient(45deg, #2196F3, #8825ff);
    border-color: #cb9292;
}
.batch-ocr-result a.download-btn:before {
    content: '\f090';
    font-family: 'Material Icons Outlined';
    display: inline-block;
}
.amarkerbtnwithdl:before {
    content: '\e2c0';
    font-family: 'Material Icons Outlined';
    display: inline-block;
}
button.amarkerbtnv2:disabled {
    opacity:0.8;
}
form.batch-ocr-form {
    margin-top: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    margin: 15px auto;
}
@media (min-width: 1024px) {
    form.batch-ocr-form {
        max-width: 100%;
    }
}
ul#file-list {
    max-height: 200px;
    overflow-y: scroll;
}
#file-upload-wrapper textarea, #file-upload-wrapper input, #file-upload-wrapper select {
    display: block;
    width: 100%;
    margin-bottom: 25px;
    margin-top: 5px;
    border-radius: 8px;
    border: solid 2px #7abbff;
}
#file-upload-wrapper label {
    display: block;
    width: 100%;
    font-size: 17px;
    font-weight: 600;
}
@media(min-width:1240px){
#file-upload-wrapper textarea, #file-upload-wrapper input, #file-upload-wrapper select {
    width: 30%;
}
}
button.amarkerbtnwithdl {
    display: block;
}
.batch-marking div#user-info {
    border: 1px solid #ffffff96;
    width: fit-content;
    background: linear-gradient(45deg, #2196F3, #8825ff);
    transition: .2s;
    border-radius: 15px;
    color: #fff;
    line-height: 20px;
    display: flex
;
    text-align: center;
    cursor: pointer;
    margin: 0 0 15px 0;
    padding: 5px 14px 5px 5px;
    font-size: 14px;
}
.batch-marking div#user-info .user-name {
    text-align: left;
}

.pleaseloginbox {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    height: calc(100vh - 62px);
    align-items: center;
    justify-content: center;
    max-width: 400px;
}
.noticelabel {
    font-size: 25px;
}
span.sentence-quote {
    background: #ffc107;
}
body:not(.logged-in) form#nv-document-upload-form,body:not(.logged-in) .extracted-nv-text,body:not(.logged-in) form#nev-document-upload-form,body:not(.logged-in) .extracted-nev-text,body:not(.logged-in) form#pr-document-upload-form,body:not(.logged-in) .extracted-pr-text, body:not(.logged-in) .qs-instant-quiz, body:not(.logged-in) form#questioning-system-form {
    pointer-events: none;
    opacity: .2;
}
body:not(.logged-in) .file-upload-container,body:not(.logged-in) #file-upload-wrapper textarea, body:not(.logged-in) #file-upload-wrapper input,body:not(.logged-in) button#start-ocr,body:not(.logged-in) #file-upload-wrapper label,body:not(.logged-in) div#user-info  {
    pointer-events: none;
    opacity: 0.5;
}
p.bat_agree_terms {
    margin-bottom: 0;
}

p.bat_agree_terms input#agree_terms_of_use {width: auto;}
input#customized_topic,input#customized_solution,div#customizedTopicContainer label,div#customizedSolutionContainer label,input#customized_solution_checkbox,#customizedSolutionCheckbox label,#customizedSolutionCheckboxContainer label,#customized_solution_container label{
    display: inline-block;
    width: auto;
}
div#document-upload-container select {
    max-width: 100%;
}
div#document-upload-container select, div#document-upload-container input {
    border-radius: 5px;
    padding: 7px;
    border-style: solid;
}
@media(min-width:1240px){
form#nv-document-upload-form,form#pr-document-upload-form {
    max-width: 226px;
}
}
/* 为提示框设置样式 */
.copy-success-tooltip {
  position: relative;
  display: inline-block;
  
  /* 如果不想要鼠标悬停时的提示效果，可以去掉这行 */
  cursor: pointer;
}
.copy-success-tooltip .tooltiptext {
  visibility: hidden;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 3px;
  font-size: 12px;
  margin-left: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.copy-success-tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #555 transparent;
}
.copy-success-tooltip:hover.tooltiptext {
  visibility: visible;
  opacity: 1;
}
.copy-success-tooltip.show-tooltip .tooltiptext{
    visibility: visible;
    opacity: 1;
}
div#customized_topic_container label {
    display: inline-block;
}
div#customized_topic_container input[type="radio"] {
    display: inline-block;
}
label.blockline {
    display: block !important;
}
div#customizedTopicContainer input {
    width: auto;
    display: inline;
}
div#customizedTopicContainer label {
    margin-right: 15px;
}
.marking-nv-feedback table td, .marking-pr-feedback table td, .marking-qs-feedback table td, .marking-qsa-feedback table td {
    border: 1px solid #ffffff;
    vertical-align: text-top;
    padding-left: 5px;
    padding-top: 15px;
    font-size: 15px;
    padding-bottom: 15px;
}
.marking-nv-feedback table tr td:first-child,.marking-pr-feedback table tr td:first-child, .marking-qs-feedback table tr td:first-child, .marking-qsa-feedback table tr td:first-child {
    min-width: 118px;
}
.history-record.submitted {
    color: #717171;
}
a.downloadfile {
    background: #2196F3;
    background: linear-gradient(45deg, #2196F3, #7277FF);
    color: #fff;
    padding: 2px 8px;
    display: inline-block;
    border-radius: 5px;
}
a.downloadfile i {
    font-size: 13px;
    display: inline-block;
}
span.highlightv4 {
    background: #3658d6;
    font-weight: bold;
    border: 1px solid #3658d6;
    border-radius: 10px;
    padding: 4px 5px;
    color: #fff;
}
.historybox .tabs-container .tab {
    background: linear-gradient(45deg, #f7f7f7, #fdfdfd, #f7f7f7);
    line-height: 28px;
    display: inline-block;
    text-align: center;
    margin-right: 15px;
    color: #000000;
    border: 1px solid #bdbdbd96;
    border-radius: 4px;
    padding: 12px;
    width: 120px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.historybox .tabs-container .tab.active,.historybox .tabs-container .tab:hover{
    background-color: #007bff;
    background: linear-gradient(45deg, #2196F3, #7277FF);
    color: white;
    border-color: #cb9292;
}
.historybox .tabs-container .tab h3 {
    font-size: 15px;
    line-height: 15px;
    margin-bottom: 0;
    text-align: center;
}

.historybox .tabs-container .user-operation-history {
    display: none;
    padding: 10px;
    border-top: none;
    background: #fbfbfb;
    margin-top: 15px;
    border-radius: 4px;
}

.historybox .tabs-container .user-operation-history.active {
    display: block;
}
p.qsblock {
    border: 2px solid #ccc;
    background: linear-gradient(45deg, #fdfdfd, transparent, #fdfdfd);
    border-radius: 10px;
    padding: 8px;
    transition: .3s;
    cursor: pointer;
    position: relative;
}
p.qsblock:hover {
    border: 2px solid #3d9cf1;
    box-shadow: 0 0 10px #797979;
    outline: 2px solid #3d9cf1;
}
.answer_now {
    display: inline-block;
    padding: 5px 10px;
    background:linear-gradient(45deg, #7277FF, #2196F3);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    right: 0;
    bottom: 0;
    border: 1px solid #cb9292;
}
.answer_now:hover {
    background: linear-gradient(45deg, #2196F3, #7277FF);
    box-shadow: 0 0 2px #ccc;
    border-color: #1f90eb;
}
p.qsblock.qs_selected, p.qsblock.qs_selected:hover {
    background: #c3dde6;
    border: 1px solid #c3e6cb;
}

p.qsblock.qs_not_selected,p.qsblock.qs_not_selected:hover {
    background-color: #ffffff;
    border: 1px solid #ffffff;
    opacity:.2;
    outline:0;
    box-shadow:none;
    pointer-events:none;
}

form#quick-question-answering-system {
    height: 100%;
}
.qs-instant-quiz, .wait-for-review {
    opacity: .2;
    pointer-events: none;
}
form#quick-question-answering-system input[type="submit"] {
    border: 2px solid #ffffff96;
    width: 90px;
    background: linear-gradient(45deg, #2196F3, #7277FF);
    transition: .2s;
    border-radius: 6px;
    color: #fff;
    line-height: 35px;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    margin: 5px;
}
form#quick-question-answering-system input[type="submit"]:hover {
    background: linear-gradient(45deg, #2196F3, #8825ff);
    border-color: #cb9292;
}
.qs-instant-quiz.active-qs-form {
    opacity: 1;
    pointer-events: auto;
}
div#result-container {
    background: linear-gradient(45deg, #2196F3, #8825ff);
    color: #fff;
    width: fit-content;
}
form#quick-question-answering-system, textarea#question-answer {
    max-height: 600px;
}
.marking-qsa-feedback {
    padding-bottom: 50px;
}
@media(max-width:767px){
    p.qsblock.qs_not_selected {
        display: none;
    }
}
.wait-for-review input[type="submit"] {
    display: none !important;
}
.wait-for-review textarea#question-answer {
    border: none;
}
div#genqstitle {
    margin-bottom: 15px;
    font-size: 18px;
}
.loading-iconv4,.loading-iconv5,.loading-iconv4:hover,.loading-iconv5:hover,.loading-iconv4:active,.loading-iconv5:active,.loading-iconv4:focus,.loading-iconv5:focus,.loading-iconv4:focus-visible,.loading-iconv5:focus-visible,.loading-iconv4:focus-within,.loading-iconv5:focus-within.loading-iconv4:not(:focus),.loading-iconv5:not(:focus){
    overflow: hidden !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background:#fff !important;
}
.loading-iconv4 video,
.loading-iconv5 video,
.loading-iconv4:hover video,
.loading-iconv5:hover video,
.loading-iconv4:active video,
.loading-iconv5:active video,
.loading-iconv4:focus video,
.loading-iconv5:focus video,
.loading-iconv4:focus-visible video,
.loading-iconv5:focus-visible video,
.loading-iconv4:focus-within video,
.loading-iconv5:focus-within video,
.loading-iconv4:target video,
.loading-iconv5:focus-target video,
.loading-iconv4:not(:focus) video,
.loading-iconv5:not(:focus) video{
    overflow: hidden !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background:#fff !important;
    -webkit-appearance: none; /* 移除 WebKit 預設樣式 */
    appearance: none; /* 適用於其他支持的瀏覽器 */
    clip-path: inset(2px);
}
.loading-iconv4 video:hover,
.loading-iconv5 video:hover,
.loading-iconv4 video:active,
.loading-iconv5 video:active,
.loading-iconv4 video:focus,
.loading-iconv5 video:focus,
.loading-iconv4 video:focus-visible,
.loading-iconv5 video:focus-visible,
.loading-iconv4 video:focus-within,
.loading-iconv5 video:focus-within,
.loading-iconv4 video:target,
.loading-iconv5 video:focus-target,
.loading-iconv4 video:not(:focus),
.loading-iconv5 video:not(:focus){
    overflow: hidden !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background:#fff !important;
    -webkit-appearance: none; /* 移除 WebKit 預設樣式 */
    appearance: none; /* 適用於其他支持的瀏覽器 */
    clip-path: inset(2px);
}

tr#solvinginfo div {
    white-space: normal !important;
}
tr#solvinginfo ol {
    padding-left: 17px;
}


button#translate-nev-feedback {
    position: fixed;
    bottom: 54px;
    right: 25px;
    border-radius: 5px;
    color: #ffffff;
    line-height: inherit;
    width: 101px;
    height: 40px;
    font-size: 15px;
    padding: 0;
    border: 1px solid #000;
    background: linear-gradient(45deg, #7277FF, #2196F3);
    border-color: #cb9292;
}

button#translate-nev-feedback i {
    line-height: inherit;
    font-size: inherit;
}

button#translate-nev-feedback:hover {
    color: #1f90eb;
    background: #fff;
    box-shadow: 0 0 2px #ccc;
    border-color: #1f90eb;
}

button#translate-nev-feedback:hover:after {
    content: '';
    background: #eba41f;
    width: 8px;
    height: 8px;
    display: inline-block;
    position: absolute;
    right: 3px;
    top: 3px;
    border-radius: 50%;
}


/*Elementary school English*/
div#marking-rules-container {
    background: linear-gradient(182deg, #f329b9, #0008ff) !important;
    color: #fff;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    margin: 0 0 0 0;
    
    
}
form#marking-rules-form textarea {
    border-radius: 15px;
    background: #fff;
    padding: 10px;
    display: block;
    width: 100%;
    margin-bottom: 10px;
}
form#marking-rules-form select,form#marking-rules-form label,form#marking-rules-form textarea {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
}
@media(min-width:1240px){
div#marking-rules-container {
    height: calc(100vh - 62px);
    overflow-y: auto;
    overflow-x: clip;
    max-width: 300px;
    min-height: 700px;
    display: inline-block;
}
form#marking-rules-form textarea {
    min-height: 200px;
}
}
@media(min-width:1240px){
    div#marking-rules-container, div#document-upload-container {
        width:100%;
        max-width: 300px;
    }
}
form#marking-rules-form input[type="submit"] {
    border: 2px solid #ffffff96;
    width: 100px;
    background: white;
    transition: .2s;
    border-radius: 6px;
    color: #3F51B5;
    font-weight: 700;
    line-height: 35px;
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 3px;
}

form#marking-rules-form input[type="submit"]:hover {
    background: linear-gradient(45deg, transparent, #2196F3);
    border-color: #ffffff;
    color: #fff;
}

/**/
/* English Workshop Image Upload Area Style */
.standard-marker-system-form .image-upload-container {
    position: relative;
    margin-bottom: 10px;
}

.standard-marker-system-form .image-upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.standard-marker-system-form .image-preview-container {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.standard-marker-system-form .image-preview-container.standard-marker-system-form .highlight {
    border-color: #3658d6;
    background-color: rgba(54, 88, 214, 0.05);
}

.standard-marker-system-form .image-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.standard-marker-system-form .image-upload-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    color: #ccc;
}

.standard-marker-system-form #image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
}

.standard-marker-system-form #remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

.standard-marker-system-form .hidden {
    display: none !important;
}

.standard-marker-system-form .form-hint {
    font-size: 12px;
    color: #fff;
    margin-top: 5px;
}
p.qsblock img {
    width: 100%;
    height: auto;
}
span.reference-only {
    display: block;
    text-align: center;
    font-size: 16px;
}
input#generate_image {
    display: inline-block;
}
img.generated_questions_with_image {
    max-width: 800px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 5px #ccc;
}

/* 改進表格樣式 */
.improvement-table,.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.improvement-table th, .analysis-table th {
    background-color: #f3f5f8;
    color: #000000;
    font-weight: bold;
    text-align: center;
    padding: 12px 15px;
    border: 1px solid #fff;
}

.improvement-table th[colspan="3"],.analysis-table th[colspan="3"] {
    /*background-color: #007fff;*/
    font-size: 1.1em;
    letter-spacing: 1px;
}

.improvement-table td,.analysis-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.improvement-table tr:nth-child(even),.analysis-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.improvement-table tr:nth-child(odd),.analysis-table tr:nth-child(odd) {
    background-color: #ffffff;
}

.improvement-table tr:hover,.analysis-table tr:hover {
    background-color: #f1f7ff;
}

/* 詞彙部分特殊樣式 */
.improvement-table tr:nth-child(n+3):nth-child(-n+12) td:first-child {
    font-weight: bold;
    color: #3a5795;
}

.improvement-table tr:nth-child(n+3):nth-child(-n+12) td:nth-child(2) {
    color: #555;
}

.improvement-table tr:nth-child(n+3):nth-child(-n+12) td:nth-child(3) {
    font-style: italic;
    color: #777;
}

/* 改進部分特殊樣式 */
.improvement-table tr:nth-child(n+14) td:first-child {
    font-weight: bold;
    color: #2c3e50;
    width: 25%;
}

.improvement-table tr:nth-child(n+14) td[colspan="2"] {
    line-height: 1.5;
}

.historybox table.improvement-table {
    max-width: 900px;
}

.quick-buttons button {
    display: inline-block;
    width: auto !important;
    line-height: 24px;
    padding: 5px 20px !important;
    margin-bottom: 0 !important;
    background-color: #007bff;
    background: linear-gradient(45deg, #2196F3, #7277FF);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.quick-buttons button:hover {
    background-color: #0056b3;
    background: linear-gradient(45deg, #7277FF, #2196F3);
    box-shadow: 0px 0px 0px 2px #ff000052;
}
.quick-buttons {
    display: inline-block;
}


/* 詞匯建議表格樣式 */
table.vocab-suggestions {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 12pt;
}

table.vocab-suggestions th {
    background-color: #F5F7FA;
    color: #000000;
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

table.vocab-suggestions td {
    padding: 10px;
    border: 1px solid #ffffff;
    vertical-align: top;
}

/* 第一列樣式 */
table.vocab-suggestions td:first-child {
    font-weight: bold;
    color: #3a5795;
    width: 20%;
}

/* 第二列樣式 */
table.vocab-suggestions td:nth-child(2) {
    width: 30%;
    background-color: #f8f9fa;
}

/* 第三列樣式 */
table.vocab-suggestions td:nth-child(3) {
    width: 50%;
    background-color: #ffffff;
}

/* 行交替顏色 */
table.vocab-suggestions tr:nth-child(even) td:nth-child(2) {
    background-color: #e9ecef;
}

table.vocab-suggestions tr:nth-child(even) td:nth-child(3) {
    background-color: #f8f9fa;
}

/* 段落樣式 */
table.vocab-suggestions td p {
    margin: 5px 0;
    line-height: 1.5;
}

/* 移除多余的換行 */
table.vocab-suggestions br {
    display: none;
}


/*woocommerce*/

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    border: 1px solid #f1f1f1;
    background:#fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 3px #cccccc73;
    text-align: center;
    padding-bottom: 15px;
    transition: .3s;
}

.woocommerce ul.products li.product:hover, .woocommerce-page ul.products li.product:hover {
    box-shadow: 0 0 6px #abababb3;
    transform: translateY(-10px);
}

.woocommerce span.onsale {
    height: 3.236em;
    width: 3.236em;
    padding: .202em;
    font-size: .9em;
    font-weight: 700;
    background-color: var(--wpt-primary-color);
}

@media (min-width: 769px) {
    .woocommerce ul.products li {
        margin: 0 3.8% 2.992em 0 !important;
    }
	.woocommerce ul.products li.last, .woocommerce-page ul.products li.last {
        margin-right: 0 !important;
    }
}
/* 側邊欄整體樣式 - 更簡潔現代 */
#secondary.widget-area {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}

/* 小工具間距 */
.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

/* 小工具標題 - 更精緻 */
.widget-title {
    color: #333;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.widget-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--wpt-primary-color), var(--wpt-secondary-color));
    border-radius: 3px;
}
.woocommerce .widget_price_filter .ui-slider-horizontal {
    height: .25em;
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-range{
    background-color: var(--wpt-primary-color);
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: .5em;
    height: .5em;
    background-color: var(--wpt-secondary-color);
    border-radius: 1em;
    cursor: ew-resize;
    outline: 0;
    top: -.15em;
    margin-left: -.5em;
}

/* 搜索表單 - 完整設計 */
.woocommerce-product-search {
    position: relative;
    display: flex;
	flex-wrap: wrap;
}

.search-field {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-field:focus {
    border-color: #FF7EEE;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 76, 143, 0.1);
}

/* 搜索按鈕 - 重點設計 */
.woocommerce-product-search button {
    background: var(--wpt-secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s ;
}

.woocommerce-product-search button:hover {
    background: var(--wpt-secondary-color);
    transform: translateY(-10px);
    box-shadow: -1px 5px 2px #ccccccad;
}

/* 產品分類列表 - 現代設計 */
.product-categories {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.product-categories li {
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.product-categories li a {
    display: block;
    color: #555;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.product-categories li a:hover {
    background: linear-gradient(90deg, rgba(255,76,143,0.1), rgba(255,126,238,0.1));
    color: var(--wpt-primary-color);
    padding-left: 20px;
    transform: none;
}

.product-categories li a:before {
    content: '→';
    color: #FF7EEE;
    position: absolute;
    left: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-categories li a:hover:before {
    opacity: 1;
    left: 5px;
}

/* 標籤雲 - 泡泡設計 */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-link {
    display: inline-block;
    background-color: #f5f5f5;
    color: #666;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px !important;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.tag-cloud-link:hover {
    background: linear-gradient(135deg, #0d6efd, #FF7EEE);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 76, 143, 0.2);
    transform: translateY(-2px);
}

/* 響應式設計 */
@media (max-width: 768px) {
    #secondary.widget-area {
        padding: 20px;
    }
    
    .widget-title {
        font-size: 1rem;
    }
    
    .product-categories li a {
        padding: 10px 15px;
    }
}
/* 结果计数和排序容器整体布局 */
.woocommerce-result-count,
.woocommerce-ordering {
    display: inline-block;
    margin: 0 10px 20px 0;
    vertical-align: middle;
}

/* 结果计数文字样式 */
.woocommerce-result-count {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin-right: 15px;
}

/* 排序表单容器 */
.woocommerce-ordering {
    position: relative;
}

/* 下拉选择框 - 现代设计 */
.orderby {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    color: #555;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 40px 10px 15px;
    min-width: 200px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.orderby:focus {
    outline: none;
    border-color: #FF7EEE;
    box-shadow: 0 0 0 3px rgba(255, 126, 238, 0.2);
}

/* 自定义下拉箭头 */
.woocommerce-ordering:after {
    content: "▼";
    color: var(--wpt-primary-color);
    font-size: 10px;
    pointer-events: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
}

.orderby:hover + .woocommerce-ordering:after {
    color: #FF7EEE;
}

/* 下拉选项样式 */
.orderby option {
    padding: 8px 12px;
    background: white;
    color: #333;
}

.orderby option:hover {
    background-color: #0d6efd !important;
    color: white !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .woocommerce-result-count,
    .woocommerce-ordering {
        display: block;
        width: 100%;
        margin: 0 0 15px 0;
    }
    
    .orderby {
        width: 100%;
    }
}

/* 悬停效果增强 */
.orderby:hover {
    border-color: #ddd;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
}

/* 选中项特殊样式 */
.orderby option:checked {
    background-color: rgba(255, 76, 143, 0.1);
    font-weight: 600;
    color: var(--wpt-primary-color);
}

@media (max-width: 767px) {
	  .revdiv {
		display: flex;
		flex-direction: column-reverse;
	  }
	  .iconboxv01 .wpb_column.vc_column_container.vc_col-sm-3 {
		width: 25%;
		display: inline-block;
	  }
	.aptheme-icon-info-box {
		padding: 5px;
	}
	.aptheme-icon-info-box .icon img {
		max-width: 28px;
	}
	.aptheme-icon-info-box .content h3 {
		margin: 0 0 10px;
		font-size: 10px;
		font-weight: bold;
	}
}
.woocommerce ul.products li.product .button,.woocommerce div.product form.cart .button {
    text-transform: uppercase;
    background-color: var(--wpt-primary-color);
    color: #fff;
    transition: 0.3s;
    font-size: .9em;
	border: 0;
}
.woocommerce ul.products li.product .button:hover,.woocommerce div.product form.cart .button:hover {
    background: var(--wpt-secondary-color);
    transform: translateY(-10px);
    box-shadow: -1px 5px 2px #ccccccad;
}
.woocommerce ul.products li.product .price {
    color: #000;
}
.woocommerce div.product .product_title {
    font-size: 1.6em;
    text-align: left;
}
.woocommerce div.product form.cart .button {
    padding: .9em;
}
.container.woo-container {
    margin-top: 25px;
    min-height: calc(100vh - 110px);
}
.single-product .woocommerce-Price-amount {
    font-size: 1.5rem;
    color: var(--wpt-primary-color);
    font-weight: bold;
}



a.added_to_cart.wc-forward {
    display: none;
}
.woocommerce-cart table.cart td a {
    color: #222;
}
.woocommerce-error, .woocommerce-info, .woocommerce-message {
    border-top-color: var(--wpt-primary-color);
}
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order {
    text-transform: uppercase;
    background-color: var(--wpt-primary-color);
    color: #fff;
    transition: 0.3s;
    font-size: .9em;
    border: 0;
    padding: 10px 15px;
}

.woocommerce #payment #place_order:hover, .woocommerce-page #payment #place_order:hover {
    background: var(--wpt-primary-color);
    transform: translateY(-10px);
    box-shadow: -1px 5px 2px #ccccccad;
}

.woocommerce #payment #place_order:before, .woocommerce-page #payment #place_order:before {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z'/%3E%3Cpath d='M4 6h16v2H4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 30px !important;
}

.woocommerce-error::before, .woocommerce-info::before, .woocommerce-message::before{
    color: var(--wpt-primary-color);
}
.woocommerce-error a, .woocommerce-info a, .woocommerce-message a {
    color: var(--wpt-primary-color);
}
body.single.single-product.woocommerce span.onsale {
    display: none;
}
ul.woocommerce-widget-layered-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

ul.woocommerce-widget-layered-nav-list li {
    display: inline-block;
    background-color: #f5f5f5;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px !important;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    padding: 3px 7px !important;
}

ul.woocommerce-widget-layered-nav-list li a {
    color: #666;
    display: inline-block;
}
.woocommerce div.product form.cart .variations select {
    text-transform: capitalize;
    padding: 0 15px;
    border-radius: 5px;
}

h2.woocommerce-loop-product__title {
    color: #002557;
}

.woocommerce ul.products li.product a img {
    margin-bottom: 0;
}
@media(min-width:769px){
.woocommerce ul.products li {
    margin: 15px !important;
}
}
.woocommerce div.product div.summary a {
    color: #292929;
}

.woocommerce div.product div.summary a:hover {
    color: #91645a;
}


/*checkout*/
/* 標題樣式 - 覆蓋主題可能設置的樣式 */
.checkout.woocommerce-checkout h3 {
  font-size: 1.5rem !important;
  font-weight: 500 !important;
  color: var(--wpt-primary-color) !important;
  margin: 24px 0 16px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #e0e0e0 !important;
  line-height: 1.2 !important;
}


/* 輸入框標籤 - 覆蓋可能的主題樣式 */
.checkout.woocommerce-checkout .form-row label {
  display: block !important;
  margin-bottom: 8px !important;
  font-size: 0.875rem !important;
  color: #616161 !important;
  transform-origin: left top;
  transition: color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms,
              transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

/* 輸入框樣式 - 重置 WooCommerce 默認樣式 */
.checkout.woocommerce-checkout .input-text {
  width: 100% !important;
  padding: 12px !important;
  font-size: 1rem !important;
  border: 1px solid #bdbdbd !important;
  border-radius: 4px !important;
  transition: border-color 0.3s ease !important;
  background-color: transparent !important;
  box-sizing: border-box !important;
  height: auto !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.checkout.woocommerce-checkout .input-text:focus {
  outline: none !important;
  border-color: var(--wpt-primary-color) !important;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2) !important;
}

/* 文本區域樣式 */
.checkout.woocommerce-checkout textarea.input-text {
  min-height: 80px !important;
  resize: vertical;
  line-height: 1.5 !important;
}

/* 必填標記 */
.checkout.woocommerce-checkout .required {
  color: #d32f2f !important;
  text-decoration: none !important;
}

/* 訂單表格樣式 - 完全重置 */
.checkout.woocommerce-checkout #order_review table.shop_table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 24px 0 !important;
  box-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2),
              0px 1px 1px 0px rgba(0,0,0,0.14),
              0px 1px 3px 0px rgba(0,0,0,0.12) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  border: none !important;
}

.checkout.woocommerce-checkout #order_review table.shop_table th,
.checkout.woocommerce-checkout #order_review table.shop_table td {
  padding: 16px !important;
  text-align: left !important;
  border-bottom: 1px solid #e0e0e0 !important;
  vertical-align: middle !important;
}

.checkout.woocommerce-checkout #order_review table.shop_table th {
  background-color: #f5f5f5 !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}


.checkout.woocommerce-checkout #order_review table.shop_table tfoot th {
  font-weight: 500 !important;
}

.checkout.woocommerce-checkout #order_review table.shop_table .order-total th,
.checkout.woocommerce-checkout #order_review table.shop_table .order-total td {
  font-weight: 500 !important;
  font-size: 1.1rem !important;
  color: var(--wpt-primary-color) !important;
}

body.single.single-product.woocommerce span.onsale {
    display: none;
}
ul.woocommerce-widget-layered-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

ul.woocommerce-widget-layered-nav-list li {
    display: inline-block;
    background-color: #f5f5f5;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px !important;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    padding: 3px 7px !important;
}

ul.woocommerce-widget-layered-nav-list li a {
    color: #666;
    display: inline-block;
}
.woocommerce div.product form.cart .variations select {
    text-transform: capitalize;
    padding: 0 15px;
    border-radius: 5px;
}
.wp-chatbot-ball {
    width: 45px;
    height: 45px;
}
@media(max-width:991px){
.header-right-widgets {
    display: none;
}
}

/* 購物車表格核心樣式 */
.woocommerce-cart-form__contents {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.woocommerce-cart-form__contents thead th {
  background-color: #2c3e50;
  color: white;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
}

.woocommerce-cart-form__contents tbody td {
  padding: 15px;
  border-bottom: 1px solid #ecf0f1;
  vertical-align: middle;
}

/* 產品縮略圖 */
.product-thumbnail img {
  width: 80px;
  height: auto;
  border-radius: 4px;
}

/* 移除按鈕 */
.product-remove a {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  color: #e74c3c !important;
  font-size: 1.5em;
  font-weight: bold;
  transition: all 0.3s;
}

.product-remove a:hover {
  transform: scale(1.2);
}

/* 數量輸入框 */
.quantity .qty {
  width: 70px;
  padding: 8px;
  border: 2px solid #bdc3c7;
  border-radius: 4px;
  text-align: center;
  transition: border 0.3s;
}

.quantity .qty:focus {
  border-color: #3498db;
  outline: none;
}

/* 按鈕樣式 - 基礎 */
.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

/* 更新購物車按鈕 */
.button[name="update_cart"] {
  background-color: #95a5a6;
  color: white;
}

.button[name="update_cart"]:hover {
  background-color: #7f8c8d;
}

/* 優惠券按鈕 */
.button[name="apply_coupon"] {
  background-color: #f39c12;
  color: white;
}

.button[name="apply_coupon"]:hover {
  background-color: #e67e22;
}

/* 結賬按鈕 */
a.checkout-button.button.alt.wc-forward {
  background-color: var(--wpt-primary-color);
  font-size:1em;
  color: white;
  display: block;
  text-align: center;
  margin-top: 1rem;
}

a.checkout-button.button.alt.wc-forward:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background: var(--wpt-secondary-color);
  transform: translateY(-10px);
  box-shadow: -1px 5px 2px #ccccccad;
}

/* 購物車總計區域 */
.cart_totals {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin-top: 2rem;
}

.cart_totals h2 {
  color: #2c3e50;
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #ecf0f1;
}

.cart_totals table {
  width: 100%;
}

.cart_totals th {
  text-align: left;
  padding: 8px 0;
  color: #7f8c8d;
}

.cart_totals td {
  text-align: right;
  padding: 8px 0;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
  font-size: 1.2em;
  color: #2c3e50;
  font-weight: bold;
}

/* 響應式設計 - 移動端 (≤767px) */
@media (max-width: 767px) {
  /* 表格轉為垂直布局 */
  .woocommerce-cart-form__contents,
  .woocommerce-cart-form__contents tbody,
  .woocommerce-cart-form__contents tr,
  .woocommerce-cart-form__contents td {
    display: block;
  }
  
  .woocommerce-cart-form__contents thead {
    display: none;
  }
  
  .woocommerce-cart-form__cart-item {
    position: relative;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
  }
  
  .woocommerce-cart-form__cart-item td {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
  }
  
  .woocommerce-cart-form__cart-item td::before {
    content: attr(data-title);
    font-weight: 600;
    color: #7f8c8d;
    margin-right: 15px;
  }
  
  /* 特殊單元格處理 */
  .product-remove {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  .product-thumbnail {
    text-align: center;
    margin-bottom: 15px;
  }
  
  .product-thumbnail img {
    width: 120px;
    margin: 0 auto;
  }
  
  /* 按鈕調整 */
  .coupon {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .button {
    width: 100%;
  }
  
  /* 購物車總計調整 */
  .cart_totals {
    padding: 20px;
  }
}
p.return-to-shop {
    display: none;
}

.refresh-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.refresh-button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}
.refresh-button:hover {
    background: #e5e5e5;
}



/*小學英文評閱-圖片上載*/
img#preview-image {
    border-radius: 15px;
    border: 2px solid #fff;
    overflow: hidden;
}

button#remove-image {
    border: 2px solid #3658d6;
    width: 135px;
    font-size: 12px;
    background: #fff;
    transition: .2s;
    border-radius: 6px;
    color: #3658d6;
    line-height: 20px;
    display: block;
    text-align: center;
    cursor: pointer;
}

button#remove-image i {
    line-height: 20px;
    font-size: 16px;
}

button#remove-image:hover {
    background: linear-gradient(45deg, #7277FF, #2196F3);
    border-color: #cb9292;
    color: #fff;
}
.image-hint {
    font-size: 12px;
}
.primary-school-english-ques textarea#elementary_english_article_requirements {
    min-height: 75px;
}
.custom-file-upload {
    margin: 10px 0;
}
.upload-btn {
    padding: 8px 10px !important;
    font-size: 14px;
    background: #ffffff;
    color: #3658d6;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    border: 2px solid #3658d6;
}
@media(min-width: 1240px){
    #batForm .upload-btn {
        width: 30%;
    }
}
.upload-btn:hover {
    background: #0d6efd;
    background: linear-gradient(45deg, #7277FF, #2196F3);
    border-color: #cb9292;
    color: #fff;
}

.upload-btn i {
    vertical-align: middle;
    margin-right: 8px;
}
img.history-question-image {
    max-width: 100%;
    max-height: 320px;
    outline: 2px solid #fff;
    border-radius: 15px;
    margin-top: 8px;
    display: block;
    transition: .3s;
}

img.history-question-image:hover {
    outline: 2px solid #7277ff;
    transform: translateY(-5px);
}
.history-record table {
    width: 100%;
    max-width: 800px;
    overflow: scroll;
}

.history-record table td {
    border: 1px solid #7b7b7b;
    padding: 10px;
}
.history-record table tr td:last-child {
    word-break: break-word;
}

/* 基础样式 */
.loading-iconv4 video,
.loading-iconv5 video {
    border: none;
    outline: none;
}

/* 各种状态下的样式 */
.loading-iconv4 video:active,
.loading-iconv4 video:hover,
.loading-iconv4 video:focus,
.loading-iconv4 video:focus-within,
.loading-iconv4 video:focus-visible,
.loading-iconv4 video:target,
.loading-iconv5 video:active,
.loading-iconv5 video:hover,
.loading-iconv5 video:focus,
.loading-iconv5 video:focus-within,
.loading-iconv5 video:focus-visible,
.loading-iconv5 video:target {
    border: none;
    outline: none;
}



.file-downloading {
    pointer-events: none !important; /* 防止重复点击 */
}

.file-downloading::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 基礎樣式 - 產品促銷卡片 */
.marker-product-promo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    font-size: 15px;
    line-height: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    max-width: 320px;
    margin: 0 auto 15px;
    overflow: hidden;
    transition: .3s;
}

.marker-product-promo:hover {
    box-shadow: 0 2px 3px 0 rgb(0 0 0 / 42%);
}


.marker-product-promo-head {
    width: 100%;
}

.marker-product-promo-inner {
    padding: 1rem;
    width: 100%;
}

/* 標題樣式 */
.marker-product-promo-title {
    font-size: 1.125rem;
    line-height: 2rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--wpt-primary-color);
    margin-bottom: 0;
    width: 100%;
}

/* 價格樣式 */
.marker-product-promo-price {
    font-size: 1.275rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: #fff;
    background: #4f46e5;
    padding: .2rem;
    margin: 0;
    width: 100%;
}
/* 按鈕樣式 */
.marker-product-promo-button {
  padding: 0.5rem 1rem;
  background-color: var(--wpt-primary-color);
  color: white;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: background-color 200ms;
  border: none;
  cursor: pointer;
  width: 80%;
  max-width: 200px;
}

.marker-product-promo-button:hover {
  background-color: var(--wpt-secondary-color);
}

/* 響應式調整 */
@media (max-width: 640px) {
  .marker-product-promo-title {
    font-size: 1rem;
  }
  
  .marker-product-promo-price {
    font-size: 1.5rem;
  }
  
  .marker-product-promo-button {
    width: 90%; /* 在小屏幕上按鈕更寬 */
    padding: 0.4rem 0.8rem;
  }
}


.proceeding-to-payment {
    pointer-events: none !important; /* 防止重复点击 */
}

.proceeding-to-payment::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.checked-list ul{
  list-style: none;
  padding-left: 0;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

.checked-list ul li {
  position: relative;
  margin-bottom: 10px;
}

.checked-list li:before {
  content: "";
  display: inline-block;
  margin-right: 5px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
.role-card .universal-card-container {
    max-width: 400px;
    display: inline-block;
}

.role-card .wpb_wrapper {
    text-align: center;
}

