/**
 * Daode LK Plugin Styles
 */

.daode-lk {
    padding: 0 20px !important;
}

.daode-lk-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 700px;
}

.daode-lk-form {
    margin-bottom: 20px;
}

.daode-lk-form .form-row {
    margin-bottom: 15px;
}

.daode-lk-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.daode-lk-form input[type="text"],
.daode-lk-form input[type="email"],
.daode-lk-form input[type="password"],
.daode-lk-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Special styling for 5-digit token input */
.daode-lk-form input#daode_lk_token {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
    color: #0073aa;
    background-color: #f8f9fa;
    border: 2px solid #0073aa;
    border-radius: 8px;
    padding: 15px;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.daode-lk-form input#daode_lk_token:focus {
    outline: none;
    border-color: #005a87;
    box-shadow: 0 0 10px rgba(0, 115, 170, 0.3);
    background-color: #ffffff;
}

.daode-lk-form input#daode_lk_token::placeholder {
    color: #999;
    font-weight: normal;
}

/* Readonly email field styling */
.daode-lk-form input[readonly] {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    border-color: #ccc;
}

.daode-lk-form input[readonly]:focus {
    outline: none;
    box-shadow: none;
}

.daode-lk-form .description {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

.daode-lk-form .checkbox-row {
    display: flex;
    align-items: center;
}

.daode-lk-form .checkbox-row input[type="checkbox"] {
    margin-right: 10px;
}

.daode-lk-form .submit-button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.daode-lk-form .submit-button:hover {
    background-color: #005177;
}

.daode-lk-errors {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.daode-lk-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.daode-lk-welcome {
    text-align: center;
    padding: 20px;
}

.daode-lk-links {
    margin: 20px;
}

.daode-lk-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: right;
}

.daode-lk-links ul li {
    margin-bottom: 10px;
}

.daode-lk-links a {
    color: #000;
    text-decoration: none;
    font-size:20px;
}

.daode-lk-links a:hover {
    text-decoration: underline;
}

.daode-lk-payments-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.daode-lk-payments-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.daode-lk-payments-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    text-align: left;
}

.daode-lk-payments-table th,
.daode-lk-payments-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.daode-lk-payments-table th,
.daode-lk-payments-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.daode-lk-payments-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* Notices styles */
.daode-lk-notices {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    flex-grow: 2;
}

.daode-lk-notices h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #333;
}

.daode-lk-notice {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.daode-lk-notice:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.daode-lk-notice-title {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.2em;
    color: #0073aa;
}

.daode-lk-notice-date {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #6c757d;
    text-align: left;
}

.daode-lk-notice-content {
    line-height: 1.5;
    text-align: left;
}

.daode-lk-notice-content p:first-child {
    margin-top: 0;
}

.daode-lk-notice-content p:last-child {
    margin-bottom: 0;
}

#daode-checkout {
}

/* Course Zoom link styles */
.course-zoom-link {
    margin-top: 10px;
}

.course-zoom-link a.button.button--blue {
    display: inline-block;
    background-color: #2D8CFF;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.course-zoom-link a.button.button--blue:hover {
    background-color: #2681F2;
}

/* Links page styles */
.daode-lk-links-page {
    margin: 20px 0;
    max-width: 800px;
    margin: 0 auto;
}

.daode-lk-links-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.daode-lk-links-table th,
.daode-lk-links-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.daode-lk-links-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.daode-lk-zoom-link {
    display: inline-block;
    background-color: #2D8CFF;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.daode-lk-zoom-link:hover {
    background-color: #2681F2;
    color: white;
    text-decoration: none;
}

.daode-lk-back-link {
    margin-top: 20px;
    text-align: center;
}

.daode-lk-back-link a {
    color: #0073aa;
    text-decoration: none;
}

.daode-lk-back-link a:hover {
    text-decoration: underline;
}

.daode-lk .cart-view-item-text {
    text-align: left;
}

.daode-lk .cart-view-wrapper-action {
    display: flex;
    padding-top: 5px;
    flex-wrap: wrap;
    margin-top: auto;
    gap: 5px 20px;
    border-top: 1px solid rgb(224, 224, 224);
}

.daode-lk .cart-view-wrapper-paid {
    color: rgb(135, 135, 135);
}

.daode-lk .cart-view-wrapper-pay {
    color: rgb(196, 35, 32);
    text-decoration: none;
}

.cart-view-unit--disabled .cart-view-item, .cart-view-unit--disabled .cart-view-wrapper {
    opacity: 0.4;
}

.cart-view-item-delete i {
    font-size: 30px;
}


@media screen and (max-width: 767px) {
    #daode-checkout #PaymentWrapper .paymentTypesWrapper {
        display: none;
    }
    .course-view-cart .course-view-body {
        flex-direction: column;
    }
}

@media screen and (max-width: 767px) {
    .daode-lk {
        padding: 20px !important;
    }
    .cart-view-unit {
        width: 100% !important;
    }
}

/* Shortcode [daodelk_page] styles */
.daodelk-page-shortcode {
    max-width: 80%;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
}

.daodelk-page-shortcode .form-row {
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    gap: 20px;
}

.daodelk-page-shortcode label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    white-space: nowrap;
}

.daodelk-page-shortcode input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.daodelk-payment-button {
font-weight: bold;
    font-size: 16px;
    color: rgb(0, 0, 0);
    display: flex
;
    cursor: pointer;
    height: 32px;
    background-color: rgb(253, 248, 202);
    box-shadow: black -1.3px -1.3px 1px 0px inset, rgb(241, 227, 205) 0px 1.3px 1px 0px inset;
    text-align: center;
    align-items: center;
    justify-content: space-around;
    white-space: nowrap;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(220, 172, 133) transparent transparent rgb(220, 172, 133);
    border-image: initial;
    border-top: 1px solid rgb(220, 172, 133);
    border-left: 1px solid rgb(220, 172, 133);
    border-radius: 5px;
    padding: 0px 15px;
    text-decoration: none;

    color: rgb(0, 0, 0);
    font-weight: normal;
    box-shadow: gray -0.8px -0.8px 1px 0px inset, rgb(241, 227, 205) 0px 1.3px 1px 0px inset;
    /* background-image: linear-gradient(rgb(178 237 166) 0%, rgb(135 220 123) 80%) !important; */
    background-image: linear-gradient(rgb(150 218 136) 50%, rgb(116 210 103) 80%) !important;
    border-width: 0px;
    border-style: initial;
    border-color: initial;
    border-image: initial;
}

.daodelk-payment-button:hover {
    background-image: linear-gradient(rgb(159 228 145) 80%, rgb(123 233 107) 90%) !important;
    border-color: rgb(134, 200, 134);
}

.daodelk-page-shortcode.logged-in {
    padding: 30px;
}

.daodelk-page-shortcode.not-logged-in {
    /* border-color: #ff9800; */
    /* background-color: #fff8f0; */
}

.daodelk-auth-section {
    margin-bottom: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.daodelk-auth-section input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.daodelk-auth-section input[type="text"]#daodelk_magic_code {
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.daodelk-auth-section input[type="text"]#daodelk_name {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.daodelk-auth-section .description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

.submit-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #45a049;
}

.submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.submit-button.disabled {
    background-color: #cccccc !important;
    cursor: not-allowed !important;
}

/* Auth status messages */
.auth-status {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.auth-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-status.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Payment button disabled state in shortcode */
#paymentBtn.disabled {
    background-color: #cccccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}