.choose-point-type {
    background-color: #FFF;
    max-width: 200px;
}
.learndash-error {
    color: red;
    font-weight: bold;
}
.learndash-success {
    color: green;
    font-weight: bold;
}
.swal-content a.point-purchase-link {
    background: #59adc7;
    color: #fff;
    padding: 10px 15px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}
.ld-mycred-checkout-button {
    min-width: 210px;
}
.retries_text{
    text-align: right;
}

.unlmt-bg{
            background: #074b79;
    border: 1px solid #074b79;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    border-radius: 5px;
    padding: 4px 10px;
    transition: .3s;
    margin-left: 10px;
    display: inline-block;
}
span.rtk-pnl{
        border: 1px solid #d7d7d7;
    padding: 30px;
    border-radius: 10px;
    background: #fbfbfb;
    font-size: 22px;
    font-weight: 100;
    margin: 24px 0;
}

.retaking_quiz_timer{
    color: #FF0000;
}

/* ===== QUIZ LIMIT ALERT STYLES ===== */

.quiz-limit-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: fit-content;
    max-width: 100%;
}

.quiz-limit-alert .alert-icon {
    width: 24px;
    height: 24px;
    fill: #856404;
    flex-shrink: 0;
}

.quiz-limit-alert .alert-content {
    flex: 1;
    /*display: flex;*/
    flex-direction: column;
    gap: 8px;
}

.woo_ldrq_back {
    text-decoration: none !important;
}

.quiz-limit-alert .alert-text {
    color: #856404;
    margin: 0;
    font-weight: 600;
    font-size: 14px;
}

.quiz-limit-alert .back-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.quiz-limit-alert .back-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.quiz-limit-alert .back-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===== QUIZ ALREADY COMPLETED STYLES ===== */
.ld-quiz-completed-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #155724;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    width: fit-content;
    max-width: 100%;
    
    /* Keep text in single line */
    white-space: nowrap;
}

/* Add checkmark icon before the completed message */
.ld-quiz-completed-message::before {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23155724'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Style the back link created by shortcode */
.ld-quiz-completed-message a,
.ld-rtq-back-link {
    color: #007cba !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    /*margin-left: 8px;*/
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.ld-quiz-completed-message a:hover,
.ld-rtq-back-link:hover {
    color: #005a87 !important;
    /*text-decoration: underline !important;*/
}

.ld-quiz-completed-message a:focus,
.ld-rtq-back-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Add arrow before back link */
.ld-quiz-completed-message a::before,
.ld-rtq-back-link::before {
    content: '←';
    margin-right: 4px;
}

/* ===== ALTERNATIVE WRAPPER STYLE FOR COMPLETED MESSAGE ===== */
.entry-content .ld-quiz-message-wrapper {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #155724;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.entry-content .ld-quiz-message-wrapper::before {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23155724'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .quiz-limit-alert,
    .ld-quiz-completed-message,
    .entry-content .ld-quiz-message-wrapper {
        padding: 12px;
        gap: 10px;
    }
    
    .quiz-limit-alert .alert-icon,
    .ld-quiz-completed-message::before,
    .entry-content .ld-quiz-message-wrapper::before {
        width: 20px;
        height: 20px;
    }
    
    .quiz-limit-alert .alert-content {
        gap: 6px;
    }
    
    .quiz-limit-alert .alert-text,
    .quiz-limit-alert .back-link,
    .ld-quiz-completed-message,
    .entry-content .ld-quiz-message-wrapper {
        font-size: 13px;
    }
}

/* ===== ALTERNATIVE COLOR THEMES ===== */

/* Error/Red Theme for Quiz Limit */
.quiz-limit-alert.error-style {
    background: #f8d7da;
    border-color: #f1aeb5;
    border-left-color: #dc3545;
}

.quiz-limit-alert.error-style .alert-icon {
    fill: #721c24;
}

.quiz-limit-alert.error-style .alert-text {
    color: #721c24;
}

/* Info/Blue Theme for Quiz Limit */
.quiz-limit-alert.info-style {
    background: #d1ecf1;
    border-color: #b6d4db;
    border-left-color: #17a2b8;
}

.quiz-limit-alert.info-style .alert-icon {
    fill: #0c5460;
}

.quiz-limit-alert.info-style .alert-text {
    color: #0c5460;
}

/* Info/Blue Theme for Completed Message */
.ld-quiz-completed-message.info-style,
.entry-content .ld-quiz-message-wrapper.info-style {
    background: #d1ecf1;
    border-color: #b6d4db;
    border-left-color: #17a2b8;
    color: #0c5460;
}

.ld-quiz-completed-message.info-style::before,
.entry-content .ld-quiz-message-wrapper.info-style::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230c5460'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}
/* Professional Quiz Timer Styles - Orange Theme (Recommended) */
.quiz-timer-notification {
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
    border: 1px solid #e0d4a3;
    border-left: 4px solid #ff8f00;
    border-radius: 6px;
    padding: 14px 21px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #8a6914;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    width: fit-content;
    max-width: 100%;
}

.timer-icon {
    width: 20px;
    height: 20px;
    background-color: #ff8f00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.timer-icon::before {
    content: '';
    width: 10px;
    height: 10px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    position: relative;
}

.timer-icon::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 4px;
    background-color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: bottom;
    animation: clockTick 2s linear infinite;
}

@keyframes clockTick {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.timer-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.timer-message {
    margin: 0;
    color: #8a6914;
}

.countdown-display {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
    font-weight: 600;
    font-size: 14px;
    color: #ff8f00;
    background-color: rgba(255, 143, 0, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 143, 0, 0.2);
    min-width: 60px;
    text-align: center;
    letter-spacing: 0.5px;
}

.back-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 0;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-size: 13px;
    text-decoration: none !important;
}

/*.back-link:hover {
    background-color: rgba(25, 118, 210, 0.08);
    border-color: rgba(25, 118, 210, 0.2);
    text-decoration: none;
}*/

.back-link::before {
    content: '←';
    margin-right: 4px;
    font-weight: normal;
}

/* Alternative Blue Theme */
.quiz-timer-notification.blue-theme {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border-color: #90caf9;
    border-left-color: #2196f3;
    color: #1565c0;
}

.quiz-timer-notification.blue-theme .timer-icon {
    background-color: #2196f3;
}

.quiz-timer-notification.blue-theme .countdown-display {
    color: #2196f3;
    background-color: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.2);
}

.quiz-timer-notification.blue-theme .timer-message {
    color: #1565c0;
}

/* Alternative Gray Theme */
.quiz-timer-notification.gray-theme {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    border-color: #d0d0d0;
    border-left-color: #757575;
    color: #424242;
}

.quiz-timer-notification.gray-theme .timer-icon {
    background-color: #757575;
}

.quiz-timer-notification.gray-theme .countdown-display {
    color: #757575;
    background-color: rgba(117, 117, 117, 0.1);
    border-color: rgba(117, 117, 117, 0.2);
}

.quiz-timer-notification.gray-theme .timer-message {
    color: #424242;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-timer-notification {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 12px 16px;
    }
    
    .timer-content {
        flex-direction: column;
        gap: 6px;
    }
    
    .countdown-display {
        min-width: 80px;
    }
}