/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-elementor-child
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.2
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* Main Container */
.elementor-widget-container .ywsbs-subscriptions-list {
    max-width: 896px !important;
    margin: 15px auto 0 !important;
    padding: 24px !important;
}

/* Page Title */
.elementor-widget-container .ywsbs-subscriptions-list h1 {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 24px !important;
}

/* Hide Table Headers */
.elementor-widget-container .ywsbs_subscription_table thead {
    display: none !important;
}

/* Table Container */
.elementor-widget-container .shop_table.ywsbs_subscription_table {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
}

/* Stack Table Rows */
.elementor-widget-container .ywsbs_subscription_table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* Card Layout for Each Row */
.elementor-widget-container .ywsbs_subscription_table tr {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    background: white !important;
    padding: 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e7eb !important;
}

/* Table Cells */
.elementor-widget-container .ywsbs_subscription_table td {
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px !important;
    border: none !important;
    font-size: 14px !important;
}

.elementor-widget-container .ywsbs_subscription_table td::before {
    width: 120px !important;
    flex-shrink: 0 !important;
}

/* Cell Labels */
.elementor-widget-container .ywsbs_subscription_table td::before {
    content: attr(data-title) !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
}

/* Subscription Title Row */
.elementor-widget-container .ywsbs_subscription_table .ywsbs-subscription {
    grid-template-columns: 1fr !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding-bottom: 16px !important;
    margin-bottom: 8px !important;
}

.elementor-widget-container .ywsbs_subscription_table .ywsbs-subscription::before {
    display: none !important;
}

/* Subscription Link */
.elementor-widget-container .subscription-link {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #009bf5 !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}

.elementor-widget-container .subscription-link:hover {
    color: #005bb5 !important;
}

/* Status Badge */
.elementor-widget-container .subscription-status {
    display: inline-flex !important;
    padding: 6px 12px !important;
    border-radius: 99px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: capitalize !important;
}

.elementor-widget-container .status-active {
    background: #ecfdf5 !important;
    color: #10b981 !important;
}

.elementor-widget-container .status-paused {
    background: #fef3c7 !important;
    color: #d97706 !important;
}

.elementor-widget-container .status-cancelled,
.elementor-widget-container .status-expired {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

/* Alternating Row Backgrounds */
.elementor-widget-container .ywsbs_subscription_table tr td:nth-child(even) {
    background: #f9fafb !important;
}

/* Empty Date Styling */
.elementor-widget-container .empty-date {
    color: #666 !important;
    font-style: italic !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .elementor-widget-container .ywsbs_subscription_table td {
        grid-template-columns: 100px 1fr !important;
        padding: 8px !important;
    }
    
    .elementor-widget-container .ywsbs-subscriptions-list {
        padding: 16px !important;
    }
}

.elementor-widget-container .woocommerce-MyAccount-content-wrapper {
  margin-top: 15px !important;
}