@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.wcs-pricing-section {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 60px 20px;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.wcs-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.wcs-pricing-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.wcs-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

/* Recommended plan styling */
.wcs-pricing-card.wcs-recommended-card {
    border: 2px solid #4f46e5;
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.1), 0 10px 10px -5px rgba(79, 70, 229, 0.04);
}

.wcs-pricing-card.wcs-recommended-card:hover {
    box-shadow: 0 25px 30px -5px rgba(79, 70, 229, 0.15), 0 15px 15px -5px rgba(79, 70, 229, 0.06);
}

.wcs-badge-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.wcs-badge {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: 9999px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    text-transform: uppercase;
}

/* Card Header */
.wcs-card-header {
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.wcs-plan-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 15px 0;
}

.wcs-price-container {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 5px;
}

.wcs-currency {
    font-size: 1.25rem;
    font-weight: 500;
    color: #475569;
    align-self: flex-start;
    margin-top: 5px;
}

.wcs-price {
    font-size: 3rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.wcs-period {
    font-size: 0.875rem;
    color: #64748b;
    margin-left: 4px;
}

.wcs-plan-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Card Body */
.wcs-card-body {
    flex-grow: 1;
}

.wcs-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.wcs-feature-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 0.925rem;
}

.wcs-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
}

.wcs-icon-check {
    color: #10b981;
    width: 16px;
    height: 16px;
}

.wcs-icon-cross {
    color: #ef4444;
    width: 14px;
    height: 14px;
}

.wcs-feature-active {
    color: #334155;
}

.wcs-feature-inactive {
    color: #94a3b8;
}

/* Hide empty feature items */
.wcs-feature-item:has(.wcs-feature-text:empty) {
    display: none !important;
}

/* Card Footer & Button */
.wcs-card-footer {
    margin-top: auto;
}

.wcs-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
    box-sizing: border-box;
    background: #334155;
    color: #ffffff;
}

.wcs-btn:hover {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15);
}

.wcs-btn.wcs-btn-recommended {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
}

.wcs-btn.wcs-btn-recommended:hover {
    background: linear-gradient(135deg, #3730a3, #4f46e5);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.wcs-btn.wcs-btn-disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    pointer-events: none;
}

/* Spinner */
.wcs-btn-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 8px;
}

.wcs-spinner {
    animation: rotate 2s linear infinite;
    width: 20px;
    height: 20px;
}

.wcs-spinner .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Custom AJAX Success Popup */
.wcs-ajax-notice {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 99999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 400px;
    font-family: 'Outfit', sans-serif;
}

.wcs-ajax-notice.wcs-show {
    transform: translateY(0);
    opacity: 1;
}

.wcs-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #d1fae5;
    color: #059669;
    border-radius: 50%;
    flex-shrink: 0;
}

.wcs-notice-content {
    flex-grow: 1;
}

.wcs-notice-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
    margin: 0;
}

.wcs-notice-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.wcs-notice-link {
    font-size: 0.85rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.wcs-notice-link:hover {
    text-decoration: underline;
}

.wcs-notice-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.wcs-notice-close:hover {
    background-color: #f1f5f9;
    color: #475569;
}

/* Media Queries */
@media (max-width: 1024px) {
    .wcs-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 640px) {
    .wcs-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .wcs-pricing-section {
        padding: 40px 15px;
    }
    .wcs-pricing-card {
        padding: 30px 20px;
    }
}
