/**
 * CSPG Plugin Sales Frontend Styles
 * 
 * @package CSPGPluginSales
 * @since 1.0.0
 */

/* ===== PLUGIN CARD STRUCTURE FOR ELEMENTOR ===== */
.cspg-plugin-list-container {
    margin: 0;
    padding: 0;
}

.cspg-plugin-cards {
    display: grid;
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* Grid columns responsive */
.cspg-plugin-cards.cspg-columns-1 {
    grid-template-columns: 1fr;
}

.cspg-plugin-cards.cspg-columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cspg-plugin-cards.cspg-columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cspg-plugin-cards.cspg-columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Individual Plugin Card */
.cspg-plugin-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.cspg-plugin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Featured Image */
.cspg-plugin-featured-image {
    position: relative;
    width: 100%;
    flex: 0 0 60%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.cspg-plugin-image-link {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.cspg-plugin-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
}

.cspg-plugin-card:hover .cspg-plugin-image {
    transform: scale(1.05);
}

/* Plugin Content */
.cspg-plugin-content {
    padding: 16px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 12px;
}

/* Plugin Title */
.cspg-plugin-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    flex-shrink: 0;
}

.cspg-plugin-title-link {
    color: #1e1e1e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cspg-plugin-title-link:hover {
    color: #0073aa;
}

/* Short Excerpt */
.cspg-plugin-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: flex-start;
}

/* Pricing */
.cspg-plugin-pricing {
    margin: 0;
    font-weight: 600;
    flex-shrink: 0;
}

.cspg-plugin-pricing .price-monthly {
    color: #0073aa;
    font-size: 18px;
}

.cspg-plugin-pricing .price-yearly {
    color: #46b450;
    font-size: 14px;
    margin-left: 8px;
}

.cspg-plugin-pricing .price-free {
    color: #46b450;
    font-size: 18px;
}

/* Buy Now Button */
.cspg-plugin-actions {
    margin: 0;
    flex-shrink: 0;
    align-self: stretch;
}

.cspg-buy-now-button {
    display: block;
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

.cspg-buy-now-button:hover {
    background: linear-gradient(135deg, #005177 0%, #003c56 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cspg-plugin-cards {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .cspg-plugin-card {
        min-height: 350px;
    }
    
    .cspg-plugin-content {
        padding: 12px 16px 16px 16px;
        gap: 10px;
    }
    
    .cspg-plugin-featured-image {
        flex: 0 0 55%;
    }
    
    .cspg-plugin-title {
        font-size: 18px;
    }
    
    .cspg-buy-now-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cspg-plugin-card {
        min-height: 320px;
    }
    
    .cspg-plugin-content {
        padding: 10px 14px 14px 14px;
        gap: 8px;
    }
    
    .cspg-plugin-featured-image {
        flex: 0 0 50%;
    }
}

/* No plugins message */
.cspg-no-plugins {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-style: italic;
    border: 2px dashed #ddd;
    border-radius: 12px;
    background: #f9f9f9;
}

/* ===== GENERAL STYLES ===== */
.cspg-error {
    color: #d63638;
    font-weight: 600;
    background: #fff2f2;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 4px solid #d63638;
    display: inline-block;
}

.cspg-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

/* ===== PLUGIN LIST STYLES ===== */
.cspg-plugin-list {
    margin: 20px 0;
}

.cspg-plugin-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.cspg-plugin-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cspg-plugin-title {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    color: #333;
}

.cspg-plugin-title a {
    color: #2271b1;
    text-decoration: none;
}

.cspg-plugin-title a:hover {
    text-decoration: underline;
}

.cspg-plugin-description {
    margin: 10px 0;
    color: #666;
    line-height: 1.6;
}

.cspg-plugin-pricing {
    margin: 15px 0;
}

.cspg-plugin-meta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #888;
}

.cspg-plugin-meta .version,
.cspg-plugin-meta .category {
    margin-right: 15px;
}

/* ===== PLUGIN CARD STYLES ===== */
.cspg-plugin-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cspg-plugin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cspg-plugin-card .cspg-plugin-title {
    margin: 0;
    font-size: 2em;
    color: #333;
}

.cspg-plugin-card .cspg-plugin-description {
    margin: 20px 0;
    font-size: 1.1em;
    line-height: 1.7;
}

.cspg-plugin-card .cspg-plugin-meta {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: none;
}

.cspg-plugin-meta .meta-item {
    margin-bottom: 8px;
}

.cspg-plugin-meta .meta-item:last-child {
    margin-bottom: 0;
}

.cspg-plugin-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* ===== PLUGIN GRID STYLES ===== */
.cspg-plugin-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.cspg-columns-1 { grid-template-columns: 1fr; }
.cspg-columns-2 { grid-template-columns: repeat(2, 1fr); }
.cspg-columns-3 { grid-template-columns: repeat(3, 1fr); }
.cspg-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .cspg-plugin-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .cspg-columns-3,
    .cspg-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cspg-plugin-grid-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cspg-plugin-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.cspg-plugin-card-mini {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cspg-plugin-card-mini .cspg-plugin-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.cspg-plugin-card-mini .cspg-plugin-description {
    flex-grow: 1;
    margin-bottom: 15px;
}

.cspg-plugin-card-mini .cspg-plugin-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* ===== PRICING STYLES ===== */
.cspg-price-free {
    background: #00a32a;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.cspg-price {
    color: #2271b1;
    font-weight: 600;
    font-size: 1.1em;
}

.cspg-pricing-detailed {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cspg-pricing-detailed .price-option {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    color: #495057;
}

.cspg-pricing-detailed .price-option.monthly {
    color: #28a745;
}

.cspg-pricing-detailed .price-option.yearly {
    color: #007bff;
}

/* ===== BUTTON STYLES ===== */
.cspg-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.cspg-btn-small {
    padding: 6px 12px;
    font-size: 0.85em;
}

.cspg-btn-medium {
    padding: 10px 20px;
    font-size: 1em;
}

.cspg-btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.cspg-btn-free {
    background: #00a32a;
    color: white;
}

.cspg-btn-free:hover {
    background: #008a20;
    color: white;
}

.cspg-btn-monthly {
    background: #28a745;
    color: white;
}

.cspg-btn-monthly:hover {
    background: #218838;
    color: white;
}

.cspg-btn-yearly {
    background: #007bff;
    color: white;
}

.cspg-btn-yearly:hover {
    background: #0056b3;
    color: white;
}

.cspg-buy-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cspg-buy-buttons.cspg-size-small .cspg-btn {
    padding: 6px 12px;
    font-size: 0.85em;
}

.cspg-buy-buttons.cspg-size-large .cspg-btn {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* ===== SEARCH STYLES ===== */
.cspg-plugin-search {
    margin: 20px 0;
}

.cspg-search-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.cspg-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
}

.cspg-search-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.cspg-search-button {
    padding: 10px 20px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cspg-search-button:hover {
    background: #1e5a8a;
}

.cspg-search-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cspg-search-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9em;
}

.cspg-search-filters select:focus {
    outline: none;
    border-color: #2271b1;
}

.cspg-search-results {
    margin-top: 20px;
}

/* ===== FEATURED PLUGINS ===== */
.cspg-featured .cspg-plugin-item,
.cspg-featured .cspg-plugin-grid-item {
    position: relative;
}

.cspg-featured .cspg-plugin-item::before,
.cspg-featured .cspg-plugin-grid-item::before {
    content: "Featured";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f56e28;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .cspg-plugin-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .cspg-plugin-card {
        padding: 20px;
    }
    
    .cspg-plugin-card .cspg-plugin-title {
        font-size: 1.5em;
    }
    
    .search-input-wrapper {
        flex-direction: column;
    }
    
    .cspg-search-filters {
        flex-direction: column;
    }
    
    .cspg-search-filters select {
        width: 100%;
    }
    
    .cspg-buy-buttons {
        flex-direction: column;
    }
    
    .cspg-buy-buttons .cspg-btn {
        text-align: center;
        width: 100%;
        margin: 5px 0;
    }
}

/* ===== ACCESSIBILITY ===== */
.cspg-btn:focus,
.cspg-search-input:focus,
.cspg-search-button:focus,
.cspg-search-filters select:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.cspg-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.cspg-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: cspg-spin 1s linear infinite;
}

@keyframes cspg-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .cspg-plugin-item,
    .cspg-plugin-card,
    .cspg-plugin-grid-item {
        background: #2c3e50;
        border-color: #34495e;
        color: #ecf0f1;
    }
    
    .cspg-plugin-title,
    .cspg-plugin-card .cspg-plugin-title {
        color: #ecf0f1;
    }
    
    .cspg-plugin-title a {
        color: #3498db;
    }
    
    .cspg-plugin-description {
        color: #bdc3c7;
    }
    
    .cspg-plugin-meta {
        background: #34495e;
        color: #95a5a6;
    }
    
    .cspg-search-form {
        background: #34495e;
        border-color: #2c3e50;
    }
    
    .cspg-search-input,
    .cspg-search-filters select {
        background: #2c3e50;
        border-color: #34495e;
        color: #ecf0f1;
    }
}

/* ===== HERO-STYLE PLUGIN CARDS ===== */

/* Plugin Grid Layout */
.cspg-plugin-grid {
    display: grid;
    gap: 30px;
    margin: 20px 0;
}

.cspg-plugin-grid.cspg-columns-1 {
    grid-template-columns: 1fr;
}

.cspg-plugin-grid.cspg-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cspg-plugin-grid.cspg-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cspg-plugin-grid-item {
    display: flex;
    flex-direction: column;
}

/* Hero-Style Plugin Cards */
.plugin-hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.plugin-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-hero-left {
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-product-image {
    flex: 1;
}

.card-product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card-product-image a:hover img {
    transform: scale(1.02);
}

.card-featured-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b35;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(255,107,53,0.3);
}

.card-hero-discount-message {
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    animation: discount-pulse 2s ease-in-out infinite;
}

.card-hero-discount-message .discount-icon {
    font-size: 14px;
    margin-right: 6px;
}

.card-hero-discount-message .discount-text {
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.card-hero-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-product-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.card-product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-product-name a:hover {
    color: #007cba;
}

.card-pricing-toggle-wrapper {
    margin: 8px 0;
}

.card-pricing-toggle {
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-toggle-option {
    background: transparent;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.card-toggle-option.active {
    background: #007cba;
    color: white;
    box-shadow: 0 1px 3px rgba(0,123,186,0.3);
}

.card-toggle-option:hover:not(.active) {
    background: #e9ecef;
    color: #333;
}

.card-product-pricing {
    margin: 8px 0;
}

.card-price-display {
    display: flex;
    align-items: baseline;
    gap: 6px;
    transition: all 0.3s ease;
}

.card-price-display.card-single-price {
    margin: 12px 0;
}

.card-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
    line-height: 1;
}

.card-price-period {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.card-product-description {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin: 0;
    flex: 1;
}

.card-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-more-details {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    color: #007cba;
    border: 2px solid #007cba;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    transition: all 0.2s;
    min-width: 0;
}

.btn-more-details:hover {
    background: #007cba;
    color: white;
    text-decoration: none;
}

.card-purchase-button {
    flex: 1;
    padding: 8px 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 0;
}

.card-purchase-button:hover {
    background: #1e7e34;
}

@keyframes discount-pulse {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2); 
    }
    50% { 
        box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4); 
    }
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .cspg-plugin-grid.cspg-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plugin-hero-card {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-hero-left {
        order: 1;
    }
    
    .card-hero-right {
        order: 2;
    }
}

@media (max-width: 768px) {
    .cspg-plugin-grid.cspg-columns-2,
    .cspg-plugin-grid.cspg-columns-3 {
        grid-template-columns: 1fr;
    }
    
    .card-action-buttons {
        flex-direction: column;
    }
    
    .card-pricing-toggle {
        width: 100%;
        justify-content: center;
    }
}

/* ===== CHECKOUT SHORTCODE STYLES ===== */
.cspg-checkout-shortcode {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.cspg-checkout-shortcode .plugin-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.cspg-checkout-shortcode .plugin-image {
    flex-shrink: 0;
}

.cspg-checkout-shortcode .plugin-image img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.cspg-checkout-shortcode .plugin-details {
    flex: 1;
}

.cspg-checkout-shortcode .plugin-details h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.cspg-checkout-shortcode .plugin-description {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.cspg-checkout-shortcode .plugin-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #888;
}

.cspg-checkout-shortcode .pricing-selection h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.cspg-checkout-shortcode .pricing-options {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.cspg-checkout-shortcode .pricing-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cspg-checkout-shortcode .pricing-option:hover {
    border-color: #0073aa;
    background-color: #f8f9fa;
}

.cspg-checkout-shortcode .pricing-option.selected {
    border-color: #0073aa;
    background-color: #e3f2fd;
}

.cspg-checkout-shortcode .pricing-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.cspg-checkout-shortcode .pricing-option label {
    cursor: pointer;
    display: block;
    margin: 0;
}

.cspg-checkout-shortcode .plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cspg-checkout-shortcode .plan-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.cspg-checkout-shortcode .plan-price {
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
}

.cspg-checkout-shortcode .plan-period {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

.cspg-checkout-shortcode .plan-description {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.cspg-checkout-shortcode .discount-badge {
    background: #4caf50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.cspg-checkout-shortcode .checkout-form h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.cspg-checkout-shortcode .form-group {
    margin-bottom: 20px;
}

.cspg-checkout-shortcode .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.cspg-checkout-shortcode .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.cspg-checkout-shortcode .form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Stripe Elements Styling */
.cspg-checkout-shortcode .stripe-element {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    transition: border-color 0.3s ease;
    min-height: 40px;
}

.cspg-checkout-shortcode .stripe-element:focus-within {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Form row for side-by-side fields */
.cspg-checkout-shortcode .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.cspg-checkout-shortcode .form-half {
    flex: 1;
    margin-bottom: 0;
}

/* Error messages */
.cspg-checkout-shortcode #card-errors {
    color: #9e2146;
    margin-top: 10px;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    display: none;
}

.cspg-checkout-shortcode #card-errors:not(:empty) {
    display: block;
}

.cspg-checkout-shortcode .order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cspg-checkout-shortcode .order-summary h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.cspg-checkout-shortcode .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.cspg-checkout-shortcode .summary-row.total {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.cspg-checkout-shortcode .checkout-button {
    width: 100%;
    background: #0073aa;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cspg-checkout-shortcode .checkout-button:hover {
    background: #005177;
}

.cspg-checkout-shortcode .checkout-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cspg-error {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #fcc;
    margin: 20px 0;
}

/* Responsive design for checkout */
@media (max-width: 768px) {
    .cspg-checkout-shortcode {
        margin: 10px;
        padding: 15px;
    }
    
    .cspg-checkout-shortcode .plugin-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .cspg-checkout-shortcode .plugin-image img {
        width: 100%;
        max-width: 200px;
        height: auto;
    }
    
    .cspg-checkout-shortcode .plugin-meta {
        flex-direction: column;
        gap: 5px;
    }
}