:root {
    --wph-plms-primary-color: #47afd6;
    --wph-plms-low-opacity-primary-color: rgba(71, 175, 214, 0.35);
    --wph-plms-secondary-color: #d0ebf4;
    --wph-plms-yellow-color: #ebd244;
    --wph-plms-main-black-color: #232323;
    --wph-plms-secondary-black-color: #313131;
    --wph-plms-gray-color: rgba(170, 170, 170, 0.65);
    --wph-plms-secondary-gray-color: #757575;
    --wph-plms-green-color: #8fea58;
    --wph-plms-dark-green-color: #4ac64c;
    --wph-plms-red-color: #ea1f2d;

    /*font-size:62.5%;*/
}

* {
    box-sizing: border-box;
}

#plms-single-course-wrapper.plms-single-course-wrapper {
    display: flex;
}

#plms-single-course-main.plms-single-course-main {
    flex: 0 0 70%;
    max-width: 70%;
    padding: 1rem;
    min-height: 1px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 12px;
}

#plms-single-course-aside.plms-single-course-aside {
    flex: 0 0 30%;
    max-width: 30%;
    padding-left: 10px;
    padding-right: 10px;
    min-height: 1px;
}

.plms-single-course-aside-sticky-box {
    position: sticky;
    top: 1.5rem;
}

#plms-single-course-aside .plms-course-aside-box {
    background-color: #fff;
    padding: 1.35rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 1rem;
}

#plms-single-course-aside .plms-course-price-box {
    color: #777;
    font-size: 16px;
    display: flex;
    border: 1px dashed #ddd;
    background-color: #f9f9f9;
    padding: 0 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    line-height: 50px;
    position: relative;
    flex-direction: column;
}


#plms-single-course-aside .plms-course-price-box strong {
    border-bottom: 1px dashed #ddd;
    text-align: center;
}

#plms-single-course-aside .plms-course-price-box .plms-course-price {
    text-align: center;
}

#plms-single-course-aside .plms-course-price-box .plms-course-price-amount {
    font-weight: bold;
    color: black;
}

.plms-course-price-box .plms-course-price-currency {
    font-size: 12px;
}

#plms-single-course-aside .plms-course-single-course-meta {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px dashed #d6d6d6;
    gap: 1.5rem;
}

#plms-single-course-aside .plms-single-course-meta-value {
    color: #6f6f6f;
    font-size: 15px;
}

#plms-single-course-aside .plms-course-info-img {
    width: 20px;
    height: 20px;
    fill: #b5b5b5;
}

#plms-single-course-aside .plms-no-course-info-text {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.course-mobile-purchase-link-wrapper {
    display: none;
}

.plms-course-info-box .plms-total-sales {
    color: #555;
    border: 2px dotted #eaeaea;
    padding: 15px;
    font-size: 16px;
    text-align: center;
    border-radius: 10px;
    margin: 7px 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.plms-course-info-box .plms-total-sales .plms-total-sales-icon svg {
    width: 25px;
}

/*upsell popup*/

.plms-course-popup-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.plms-course-popup-h2 {
    font-size: 20px;
}

.plms-course-popup-h3 {
    font-size: 18px;
}

.cart_product-item.added_to_cart_item {
    border: none;
    box-shadow: none;
    margin-top: 15px;
}

.plms-course-popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    /*width: 400px;*/
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.plms-course-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.plms-course-popup-btn {
    padding: 10px 20px;
    margin-top: 10px;
    background-color: var(--wph-plms-primary-color);
    color: white !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

a.plms-course-popup-link {
    padding: 10px 20px;
    margin-top: 10px;
    background-color: var(--wph-plms-primary-color);
    color: white !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none !important;
}

.plms-upsell-submit {
    width: 100%;
    height: 100%;
}


.plms-course-popup-btn a {
    text-decoration: none !important;
    color: white !important;
}

.plms-course-popup-btn:hover a {
    text-decoration: none !important;
    color: white !important;
}

.plms-course-popup-btn:hover a:hover {
    text-decoration: none !important;
    color: white !important;
}

.plms-course-popup-course-item {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}


.plms-course-popup-list {
    padding: 0;
    width: 100%;
}

.plms-course-popup-list-item {
    background-color: #f9f9f9;
    margin: 5px 0;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

div.cart_product-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 98%;
    border-bottom: 2px dashed #959595;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(112, 112, 112, 0.12);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 2%;
}

div.cart_product-item * {
    font-size: 90% !important;
}

.item_img {
    /*width: 40%;*/
    flex: 1.5;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5%;
}

.item_img .plms-cart-item-title {
    font-size: 15px;
    margin: 0 !important;
    text-align: right;
}

.plms-cart-item-caption {
    color: #5d5d5d;
}

.item_img a {
    text-decoration: none;
}

.plms-cart-item-inner-info {
    position: relative;
    display: flex;
    align-items: center;
}

.plms-cart-item-inner-info::before {
    content: '';
    display: inline-block;
    width: 2px;
    height: 30px;
    background-color: var(--wph-plms-primary-color);
    position: absolute;
    border-radius: 3px;
    margin-right: -7px;
}

.item_details {
    /*width: 30%;*/
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin: 7px;
}

.item_details li a.plms-cart-item-title-link {
    text-decoration: none;
}


.item_details li {
    margin-bottom: 0;
}

.item_details li:last-child {
    margin-top: auto;
}

.item_details li h5 {
    font-size: var(--font-size-mini);
}

.item_details li span.cart-item-title {
    font-size: 18px;
}

.item_details li p {
    font-size: 14px;
}

.item_details li p span {
    color: var(--wph-plms-red-color);
    font-weight: bold;
}

.item_features {
    /*width: 50%;*/
    flex: 0.5;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
}

.plms-cart-item-inner-info {
    position: relative;
    display: flex;
    align-items: center;
}

.item_features .item_number {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 35%;
    margin-bottom: 10px;
}

.item_features .item_number .number {
    border: 1px solid #c2c2c2;
    width: 70%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 25px;
    border-radius: 3px;
}

.item_img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    max-width: initial !important;
}

.plms-course-popup-total-btn .plms-course-popup-total-btn-price {
    color: var(--wph-plms-red-color);
    font-weight: bold;
}


@media screen and (max-width: 450px) {
    .item_details li span.cart-item-title {
        font-size: 14px;
    }

    .item_details li p {
        font-size: 10px;
    }
}

@media screen and (max-width: 900px) {
    .plms-cart-parts-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .cart_product-item {
        width: 100%;
    }
}

@media screen and (min-width: 500px) and (max-width: 900px) {
    div.plms-input-with-submit-wrapper {
        width: 50%;
    }
}

@media screen and (max-width: 400px) {
    .item_img .plms-cart-item-title {
        font-size: 12px;
    }

    .item_img img {
        display: none;
    }
}

/*end upsell popup*/


@media screen and (max-width: 900px) {
    .course-mobile-purchase-link-wrapper {
        display: block;
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        z-index: 900;
    }


    #plms-single-course-aside.plms-single-course-aside {
        display: none;
    }

    #plms-single-course-main.plms-single-course-main {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* Course Comments Styles */
.plms-course-comments {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.plms-course-comments .comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.plms-course-comments .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plms-course-comments .comment {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.plms-course-comments .comment:last-child {
    margin-bottom: 0;
}

.plms-course-comments .comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.plms-course-comments .comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.plms-course-comments .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.plms-course-comments .fn {
    font-weight: 600;
    color: #333;
    font-style: normal;
}

.plms-course-comments .comment-metadata {
    margin-right: auto;
    font-size: 0.875rem;
    color: #666;
}

.plms-course-comments .comment-metadata a {
    color: #666;
    text-decoration: none;
}

.plms-course-comments .comment-content {
    color: #444;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.plms-course-comments .reply {
    margin-top: 1rem;
}

.plms-course-comments .comment-reply-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.plms-course-comments .comment-reply-link:hover {
    background: #f0f0f0;
    color: #333;
}

/* Comment Form Styles */
.plms-course-comments .comment-respond {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.plms-course-comments .comment-reply-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    /* margin-bottom: 1.5rem; */
}

.plms-course-comments .comment-form {
    display: grid;
    gap: 1rem;
}

.plms-course-comments .comment-form-comment {
    grid-column: 1 / -1;
}

.plms-course-comments .comment-form-author,
.plms-course-comments .comment-form-email,
.plms-course-comments .comment-form-url {
    display: grid;
    gap: 0.5rem;
}

.plms-course-comments label {
    font-weight: 500;
    color: #444;
}

.plms-course-comments input[type="text"],
.plms-course-comments input[type="email"],
.plms-course-comments input[type="url"],
.plms-course-comments textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.plms-course-comments input[type="text"]:focus,
.plms-course-comments input[type="email"]:focus,
.plms-course-comments input[type="url"]:focus,
.plms-course-comments textarea:focus {
    border-color: #007bff;
    outline: none;
}

.plms-course-comments textarea {
    min-height: 120px;
    resize: vertical;
}

.plms-course-comments .submit {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.plms-course-comments .submit:hover {
    background: #0056b3;
}

/* Nested Comments */
.plms-course-comments .children {
    list-style: none;
    padding-right: 2rem;
    margin-top: 1.5rem;
}

.plms-course-comments .children .comment {
    background: #fff;
    border: 1px solid #eee;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .plms-course-comments .comment-form {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plms-course-comments .comment-form-url {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .plms-course-comments {
        padding: 1rem;
    }
    
    .plms-course-comments .comment {
        padding: 1rem;
    }
    
    .plms-course-comments .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .plms-course-comments .comment-metadata {
        margin-right: 0;
    }
    
    .plms-course-comments .children {
        padding-right: 1rem;
    }
}

