/* SpotPlayer WooCommerce Integration — frontend styles */

.spotplayer-wc-cart-form {
    margin-top: 18px;
}

.spotplayer-wc-options-title {
    font-size: 16px;
    margin: 0 0 12px;
    font-weight: 700;
}

.spotplayer-wc-options-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

/* @media (min-width: 600px) {
    .spotplayer-wc-options-list {
        grid-template-columns: repeat(2, 1fr);
    }
} */

.spotplayer-wc-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid #e2e2e2;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all .15s ease-in-out;
}

.spotplayer-wc-option:hover {
    border-color: #999;
}

.spotplayer-wc-option.is-selected {
    border-color: #2271b1;
    background: #f0f6fc;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, .15);
}

.spotplayer-wc-option input[type="radio"] {
    margin: 0;
    accent-color: #2271b1;
}

.spotplayer-wc-option-title {
    flex: 1;
    font-weight: 600;
}

.spotplayer-wc-option-price {
    font-weight: 700;
    color: #2271b1;
}

.spotplayer-wc-add-to-cart {
    padding: 10px 24px !important;
    font-size: 15px !important;
}

.spotplayer-wc-no-options {
    padding: 14px;
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 6px;
    color: #ad6800;
}

.spotplayer-wc-licenses {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

@media (min-width: 700px) {
    .spotplayer-wc-licenses {
        grid-template-columns: repeat(1, 1fr);
    }
}

.spotplayer-wc-license-card {
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
}

.spotplayer-wc-license-header {
    font-size: 15px;
    margin-bottom: 8px;
}

.spotplayer-wc-license-option {
    color: #666;
}

.spotplayer-wc-license-row {
    margin-top: 6px;
    word-break: break-all;
}

.spotplayer-wc-license-row span {
    margin-bottom: 8px;
    display: block;
}

.spotplayer-wc-license-row code {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    direction: ltr;
    display: inline-block;
    color: #000;
}

.spotplayer-wc-license-meta {
    margin-top: 8px;
    color: #777;
    font-size: 12px;
}

.spotplayer-wc-message {
    padding: 14px 16px;
    border-radius: 6px;
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    color: #1a4d80;
}

.spotplayer-wc-order-license {
    margin-top: 8px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
}

.spotplayer-wc-order-license code {
    background: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    direction: ltr;
    display: inline-block;
    word-break: break-all;
    color: #000;
}

.spotplayer-wc-free {
    color: #2a8a3a;
    font-weight: 700;
}

/* ---------------------------------------------------------- */
/* Single product (LearnDash-style integration)               */
/* ---------------------------------------------------------- */

.spotplayer-wc-info-box {
    padding: 22px 20px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .04);
    position: sticky;
    top: 24px;
}

.spotplayer-wc-info-box .course-price {
    background: #f0f6fc;
    color: #2271b1;
    padding: 14px 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.spotplayer-wc-info-box .course-price .ld-course-status-price {
    font-size: 22px;
    font-weight: 700;
}

.spotplayer-wc-info-box .reset_ul_ol {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.spotplayer-wc-info-box .reset_ul_ol li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.spotplayer-wc-info-box .reset_ul_ol li:last-child {
    border-bottom: none;
}

.spotplayer-wc-info-box .reset_ul_ol li i {
    margin-left: 6px;
}

.spotplayer-wc-options-heading {
    font-weight: 700;
    margin: 18px 0 10px;
}

.spotplayer-wc-add-to-cart.btn.btn-solid {
    width: 100%;
    margin-top: 14px;
    padding: 12px 20px;
    font-size: 15px;
}

.spotplayer-wc-archive-banner {
    padding: 60px 0 30px;
    margin-bottom: 20px;
}

/*
 * Note: We intentionally do NOT override `.post-inner`, `.post-media`,
 * `.post-content`, `.post-meta`, `.post-meta-sc` or related classes inside
 * the SpotPlayer archive — they come straight from the masterlife theme's
 * LearnDash courses CSS so that layout1 / layout3 / etc. styles apply
 * automatically to our cards.
 */

.spotplayer-wc-related .related-title {
    font-weight: 700;
    margin-bottom: 18px;
}

.spotplayer-wc-empty {
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.spotplayer-wc-archive-pagination {
    text-align: center;
    margin-top: 30px;
}

.spotplayer-wc-archive-pagination .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.spotplayer-wc-archive-pagination .page-numbers.current,
.spotplayer-wc-archive-pagination .page-numbers:hover {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

@media (max-width: 768px) {
    .spotplayer-wc-info-box {
        position: static;
        margin-top: 24px;
    }
}
