@import url('mona-alert.css');

.monaSubmitButton.monaDisabled,
.monaFieldNotAllow {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.sign-form-mona {
    display: none;
}

.sign-form-mona.open {
    display: block;
}

.forgot-form-mona:not(.open) {
    display: none;
}

.monaFieldItem.monaRequiredBorder .input-border {
    border-color: #bb0000 !important;
}

.exams.real-exam.has-audio .exams-bdy .exams-inner {
    overflow-y: auto !important;
}

ul.wc-item-meta li,
.mncart-meta dl {
    display: flex;
    gap: 4px;
    font-size: 12px;
}

ul.wc-item-meta li .wc-item-meta-label,
.mncart-meta dl dt {
    font-weight: 600;
}

.updating-wrapper {
    text-align: center;
    padding: 50px 20px;
    max-width: 800px;
    margin: 0 auto;
}
.updating-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}
.updating-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.progress-wrapper {
    width: 100%;
    background: #f0f0f0;
    border-radius: 10px;
    padding: 3px;
}

.od-coin-status {
    padding: .4rem .8rem;
    border: 0.1rem solid var(--border);
    color: var(--color-text);
    background-color: var(--color-bg);
    border-radius: 6px;
    text-align: center;
    --f-sz: 1.2rem;
    font-size: var(--f-sz);
    font-weight: bold;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

.od-coin-status-txt {
    padding: .4rem .8rem;
    color: var(--color-text);
    --f-sz: 1.4rem;
    font-size: var(--f-sz);
    font-weight: 600;
    max-width: 100%;
}

.note-link {
    color: var(--color-text);
    --f-sz: 1.2rem;
    font-size: var(--f-sz);
    font-weight: 600;
    max-width: 100%;
    text-decoration: underline;
}

.history-newin {
    display: none;
}

.history-newin.open {
    display: block;
}

History Guides Styles */
.history-guides {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.history-guides-list {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    min-height: 0;
    max-height: calc(100% - 120px);
}

.history-guides-item {
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    overflow-y: auto;
    height: 100%;
}

.history-guides-item.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.history-guides-inner {
    width: 100%;
    max-width: 100%;
}

.history-guides-controls {
    padding: 25px 30px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    min-height: 80px;
}

.history-guides-controls-inner {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    width: 100%;
}

.history-guides-next {
    margin-left: auto;
}

.history-guides-prev,
.history-guides-next,
.history-guides-start {
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.history-guides-prev.show,
.history-guides-next.show,
.history-guides-start.show {
    display: flex;
    opacity: 1;
}

.history-guides-start.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.history-guides-prev.hide,
.history-guides-next.hide,
.history-guides-start.hide {
    display: none !important;
    opacity: 0;
}

/* Responsive */
/* Tablet */
@media (max-width: 1024px) {
    .history-guides {
        width: 90vw;
        max-width: 900px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .history-guides {
        width: 95vw;
        height: 80vh;
        max-height: 80vh;
    }
    
    .history-guides-list {
        min-height: 0;
        max-height: calc(100% - 100px);
        padding: 20px;
    }
    
    .history-guides-controls {
        padding: 20px;
        gap: 10px;
        min-height: 60px;
    }
    
    .history-guides-controls-inner {
        width: 100%;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .history-guides {
        width: 98vw;
        height: 85vh;
        max-height: 85vh;
    }
    
    .history-guides-list {
        min-height: 0;
        max-height: calc(100% - 80px);
        padding: 15px;
    }
    
    .history-guides-controls {
        padding: 15px;
        min-height: 50px;
    }
}

.authRemember {
    display: none !important;
}

/* Login Steps Wizard Styles */
.login-steps-wizard {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.login-steps-header {
    background: linear-gradient(135deg, var(--color-pri), var(--color-pri-in));
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.login-steps-header h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
}

.login-steps-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 25%;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    min-width: 40px;
}

.login-steps-body {
    padding: 30px;
    height: 400px;
    overflow-y: auto;
}

.login-step {
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    overflow-y: auto;
}

.login-step.active {
    display: block;
    opacity: 1;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.login-step h4 {
    color: var(--color-text);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.login-step p {
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 20px 0;
    opacity: 0.8;
    text-align:  center;
    word-wrap: break-word;
    hyphens: auto;
}

.step-example,
.step-danger,
.step-tip {
    background: rgba(248, 191, 14, 0.1);
    border-left: 4px solid var(--color-pri-in);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: left;
    line-height: 1.6;
    word-wrap: break-word;
}

.step-danger {
    border-left-color: var(--color-second);
    background: rgba(109, 41, 20, 0.1);
}

.step-tip {
    border-left-color: var(--color-pri);
    background: rgba(226, 163, 41, 0.1);
}

.step-example strong,
.step-danger strong,
.step-tip strong {
    color: var(--color-text);
    font-weight: 600;
}

.login-steps-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.login-steps-footer.step-first {
    justify-content: flex-end;
}

.login-steps-footer.step-last {
    justify-content: flex-start;
}

.btn-steps-prev,
.btn-steps-next,
.btn-steps-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 44px;
    width: max-content;
}

.btn-steps-prev {
    background: var(--color-second);
    color: white;
}

.btn-steps-prev:hover {
    background: var(--color-text);
    transform: translateY(-1px);
}

.btn-steps-next {
    background: var(--color-pri);
    color: white;
}

.btn-steps-next:hover {
    background: var(--color-pri-in);
    transform: translateY(-1px);
}

.btn-steps-confirm {
    background: var(--color-pri);
    color: white;
}

.btn-steps-confirm:hover {
    background: var(--color-pri-in);
    transform: translateY(-1px);
}

.login-form-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.btn-back-to-warnings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid var(--color-second);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 44px;
    width: max-content;
    background: transparent;
    color: var(--color-second);
}

.btn-back-to-warnings:hover {
    background: var(--color-second);
    color: white;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .login-steps-header {
        padding: 20px;
    }
    
    .login-steps-header h3 {
        font-size: 18px;
    }
    
    .login-steps-body {
        padding: 20px;
        min-height: 250px;
    }
    
    .step-icon {
        font-size: 40px;
    }
    
    .login-step h4 {
        font-size: 16px;
    }
    
    .login-step p {
        font-size: 14px;
    }
    
    .login-steps-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-steps-prev,
    .btn-steps-next,
    .btn-steps-confirm {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .login-steps-header h3 {
        font-size: 16px;
    }
    
    .step-icon {
        font-size: 36px;
    }
    
    .login-step h4 {
        font-size: 15px;
    }
    
    .login-step p {
        font-size: 13px;
    }
}

/* Session Expired Popup */
.session-expired-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.session-expired-popup.show {
    opacity: 1;
    visibility: visible;
}

.session-expired-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.session-expired-popup.show .session-expired-content {
    transform: scale(1);
}

.session-expired-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.session-expired-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 15px;
}

.session-expired-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.session-expired-message strong {
    font-weight: 600;
}

.session-expired-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-session-expired {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 250px;
    text-align: center;
}

.btn-session-expired.primary {
    background: var(--color-pri);
    color: white;
}

.btn-session-expired.primary:hover {
    background: var(--color-pri-in);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 163, 41, 0.3);
}

/* Session Expired Responsive */
@media (max-width: 480px) {
    .session-expired-content {
        padding: 20px;
        margin: 20px;
    }
    
    .session-expired-title {
        font-size: 18px;
    }
    
    .session-expired-message {
        font-size: 14px;
    }
    
    .btn-session-expired {
        min-width: 200px;
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* ========================================
   HISTORY WARNING NOTICE STYLES
   ======================================== */

.history-warning-notice {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 0 0 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.warning-content {
    width: 100%;
}

.warning-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-pri);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.warning-text {
    font-size: 14px;
    color: #666666;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.warning-text strong {
    color: #333333;
    font-weight: 700;
}

.warning-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #e0e0e0;
}

.tip-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.tip-text {
    font-size: 13px;
    color: #666666;
    font-weight: 500;
    line-height: 1.4;
}

/* Exam Table of Contents */
.exam-toc {
    position: fixed;
    left: -300px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    max-height: 80vh; /* Giới hạn chiều cao tổng thể */
    background: #fff;
    border-radius: 0 12px 12px 0;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    visibility: visible;
    display: flex;
    flex-direction: column; /* Để content có thể scroll */
}

.exam-toc.show {
    left: 0;
}

/* Floating Toggle Button */
.exam-toc-toggle-btn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg, #F8BF0E 0%, #E2A329 100%);
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 0 15px rgba(248, 191, 14, 0.3);
    z-index: 100;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.exam-toc-toggle-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 2px 0 20px rgba(248, 191, 14, 0.4);
}

.exam-toc-toggle-btn .exam-toc-toggle-icon {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.exam-toc-toggle-btn.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(-100%);
}

.exam-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
    background: linear-gradient(135deg, #F8BF0E 0%, #E2A329 100%);
    border-radius: 0 12px 0 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0; /* Không cho header shrink */
}

.exam-toc-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

.exam-toc-close {
    background: #fff;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
}

.exam-toc-close:hover {
    background: #f8f9fa;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.exam-toc-close-icon {
    color: #666;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.exam-toc-close:hover .exam-toc-close-icon {
    color: #333;
}

.exam-toc-content {
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
    max-height: 70vh; /* Giới hạn chiều cao để scroll dọc */
    flex: 1; /* Cho phép content grow và fill space còn lại */
}

.exam-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.exam-toc-item {
    border-bottom: 1px solid #f0f0f0;
}

.exam-toc-item:last-child {
    border-bottom: none;
}

.exam-toc-link {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.exam-toc-link:hover {
    font-weight: bold;
    color: #E2A329;
}

.exam-toc-link.active {
    background-color: #fff8e1;
    color: #E2A329;
    font-weight: 500;
}

.exam-toc-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #F8BF0E;
}

/* Tablet Portrait - Full screen overlay */
@media (max-width: 1200px) and (orientation: portrait) {
    .exam-toc {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        transform: none !important;
        border-radius: 0;
        z-index: 9999;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .exam-toc.show {
        left: 0;
    }
    
    .exam-toc-header {
        padding: 20px;
        border-radius: 0;
        position: sticky;
        top: 0;
        z-index: 10000;
        flex-shrink: 0;
    }
    
    .exam-toc-content {
        height: calc(100vh - 80px) !important;
        max-height: calc(100vh - 80px) !important;
        min-height: calc(100vh - 80px) !important;
        overflow-y: auto;
        padding: 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .exam-toc-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .exam-toc-item {
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .exam-toc-link {
        padding: 16px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    .exam-toc-toggle-btn {
        width: 45px;
        height: 45px;
    }
    
    .exam-toc-toggle-btn .exam-toc-toggle-icon {
        font-size: 20px;
    }
    
    .exam-toc-close {
        z-index: 10001;
    }
}

/* Tablet Landscape - PC-like behavior */
@media (max-width: 1200px) and (orientation: landscape) {
    .exam-toc {
        position: fixed !important;
        left: -300px !important;
        top: 50%;
        transform: translateY(-50%) !important;
        width: 300px !important;
        max-height: 80vh !important;
        height: auto !important;
        border-radius: 0 12px 12px 0;
        z-index: 1000;
        background: #fff;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
        backdrop-filter: none;
        display: flex;
        flex-direction: column;
    }
    
    .exam-toc.show {
        left: 0 !important;
    }
    
    .exam-toc-header {
        padding: 16px 20px;
        border-radius: 0 12px 0 0;
        background: linear-gradient(135deg, #F8BF0E 0%, #E2A329 100%);
        flex-shrink: 0;
    }
    
    .exam-toc-content {
        max-height: 60vh;
        overflow-y: auto;
        flex: 1;
    }
    
    .exam-toc-list {
        display: block;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .exam-toc-item {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .exam-toc-item:last-child {
        border-bottom: none;
    }
    
    .exam-toc-link {
        display: block;
        padding: 12px 20px;
        color: #555;
        text-decoration: none;
        font-size: 14px;
        line-height: 1.4;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .exam-toc-link:hover {
        font-weight: bold;
        color: #E2A329;
    }
    
    .exam-toc-link.active {
        background-color: #fff8e1;
        color: #E2A329;
        font-weight: 500;
    }
    
    .exam-toc-link.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background-color: #F8BF0E;
    }
}

@media (max-width: 992px) {
    .exam-toc {
        position: fixed !important;
        top: 0;
        left: -100% !important;
        right: 0;
        bottom: 0;
        width: 100% !important;
        height: 100vh;
        transform: none !important;
        border-radius: 0;
        z-index: 9999;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .exam-toc.show {
        left: 0 !important;
    }
    
    .exam-toc.collapsed {
        width: 100%;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }
    
    .exam-toc-header {
        padding: 20px;
        border-radius: 0;
        position: sticky;
        top: 0;
        z-index: 10000;
    }
    
    .exam-toc-content {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        padding: 20px;
    }
    
    .exam-toc-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .exam-toc-item {
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .exam-toc-link {
        padding: 16px;
        font-size: 15px;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .exam-toc-header {
        padding: 16px;
    }
    
    .exam-toc-title {
        font-size: 18px;
    }
    
    .exam-toc-content {
        padding: 16px;
    }
    
    .exam-toc-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .exam-toc-link {
        padding: 14px;
        font-size: 14px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .history-warning-notice {
        padding: 16px;
        margin: 16px 0;
    }
    
    .warning-title {
        font-size: 18px;
    }
    
    .warning-text {
        font-size: 13px;
    }
    
    .warning-tip {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .history-warning-notice {
        padding: 12px;
        margin: 12px 0;
        border-radius: 6px;
    }
    
    .warning-title {
        font-size: 16px;
    }
    
    .warning-text {
        font-size: 12px;
    }
    
    .tip-text {
        font-size: 12px;
    }
}

/* ========================================
   WRITING RESULT DISPLAY STYLES - LIGHT
   ======================================== */

.writing-result-display {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    width: 100%;
}

.writing-result-header {
    background: #f8f9fa;
    color: #333;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e5e5;
}

.writing-result-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.writing-result-body {
    padding: 16px;
    display: flex;
    gap: 16px;
}

.writing-overall-score {
    flex: 0 0 70px;
    text-align: center;
}

.writing-overall-score-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    border: 2px solid #ddd;
}

.writing-overall-score-number {
    font-size: 16px;
    font-weight: 600;
}

.writing-overall-score-label {
    font-size: 10px;
    color: #666;
    font-weight: 500;
}

.writing-criteria-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.writing-criteria-item {
    background: #fafafa;
    border-radius: 4px;
    padding: 10px 12px;
    border: 1px solid #f0f0f0;
}

.writing-criteria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.writing-criteria-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.writing-criteria-score {
    background: #e0e0e0;
    color: #333;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.writing-criteria-description {
    font-size: 10px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.writing-feedback-section {
    background: #fafafa;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 12px 16px;
    border: 1px solid #f0f0f0;
}

.writing-feedback-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
}

.writing-feedback-content {
    font-size: 11px;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

.writing-essay-content {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 12px 16px;
}

.writing-essay-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}

.writing-essay-text {
    font-size: 11px;
    color: #555;
    line-height: 1.5;
    margin: 0;
    text-align: left;
    white-space: pre-line;
    word-wrap: break-word;
}

.writing-word-count {
    background: #e0e0e0;
    color: #333;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
    margin-top: 6px;
}

/* Responsive Design for Writing Result */
@media (max-width: 768px) {
    .writing-result-body {
        flex-direction: column;
        gap: 12px;
    }
    
    .writing-overall-score {
        flex: none;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .writing-overall-score-circle {
        margin: 0;
        flex-shrink: 0;
    }
    
    .writing-criteria-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .writing-result-header {
        padding: 10px 12px;
    }
    
    .writing-result-title {
        font-size: 13px;
    }
    
    .writing-result-body {
        padding: 12px;
    }
    
    .writing-criteria-item {
        padding: 8px 10px;
    }
    
    .writing-feedback-section {
        padding: 10px 12px;
        margin: 10px 12px;
    }
    
    .writing-essay-content {
        padding: 6px 8px;
        margin: 10px 12px;
    }
    
    .writing-improvement-suggestions {
        margin: 10px 12px;
    }
}

/* Speaking Result Display Styles - Light */
.speaking-result-display {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    width: 100%;
}

.speaking-result-header {
    background: #f8f9fa;
    color: #333;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e5e5;
}

.speaking-result-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.speaking-result-body {
    padding: 16px;
    display: flex;
    gap: 16px;
}

.speaking-overall-score {
    flex: 0 0 70px;
    text-align: center;
}

.speaking-overall-score-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    border: 2px solid #ddd;
}

.speaking-overall-score-number {
    font-size: 16px;
    font-weight: 600;
}

.speaking-overall-score-label {
    font-size: 10px;
    color: #666;
    font-weight: 500;
}

.speaking-criteria-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.speaking-criteria-item {
    background: #fafafa;
    border-radius: 4px;
    padding: 10px 12px;
    border: 1px solid #f0f0f0;
}

.speaking-criteria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.speaking-criteria-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.speaking-criteria-score {
    background: #e0e0e0;
    color: #333;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.speaking-criteria-description {
    font-size: 10px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.speaking-audio-content {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 12px 16px;
}

.speaking-audio-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}

.speaking-audio-content audio {
    width: 100%;
    margin-top: 8px;
}

/* Responsive Design for Speaking Result */
@media (max-width: 768px) {
    .speaking-result-body {
        flex-direction: column;
        gap: 12px;
    }
    
    .speaking-overall-score {
        flex: none;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .speaking-overall-score-circle {
        margin: 0;
        flex-shrink: 0;
    }
    
    .speaking-criteria-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .speaking-result-header {
        padding: 10px 12px;
    }
    
    .speaking-result-title {
        font-size: 13px;
    }
    
    .speaking-result-body {
        padding: 12px;
    }
    
    .speaking-criteria-item {
        padding: 8px 10px;
    }
    
    .speaking-audio-content {
        padding: 6px 8px;
        margin: 10px 12px;
    }
}

#add_payment_method #payment ul.payment_methods li img,
.woocommerce-cart #payment ul.payment_methods li img,
.woocommerce-checkout #payment ul.payment_methods li img {
    width:100px;
    height:100px;
}

/* Entrance Info Popup */
.entrance-info-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    width: 100%;
    justify-content: space-between;
}

.entrance-info-actions .entrance-history-link-btn {
    order: 1;
}

.entrance-info-actions .entrance-action-btn {
    order: 2;
    margin-left: auto;
}

@media (max-width: 768px) {
    .popup.entrance-info-popup.aftering .entrance-info-popup-content {
        position: relative;
        max-height: calc(100vh - 120px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .popup.entrance-info-popup.aftering .entrance-info-content {
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .popup.entrance-info-popup.aftering .entrance-info-histories {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }
    
    .entrance-info-actions {
        flex-direction: column;
        padding: 15px 0 10px;
        margin-top: 20px;
        border-top: 1px solid #e5e5e5;
        flex-shrink: 0;
    }
    
    .entrance-info-actions .entrance-history-link-btn,
    .entrance-info-actions .entrance-action-btn {
        width: 100%;
        order: initial;
    }
}

.entrance-no-history {
    min-height: 8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup.entrance-info-popup.aftering .popup-over {
    overflow: unset;
    min-height: unset;
    max-height: unset;
}

.predic-product-detail section.related.products.sec-examrl {
    display: none; 
}