.yeekit-subscriptions-options-wrapper {
    margin-bottom: 25px;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Tab Headers */
.yeekit-subscriptions-purchase-tabs {
    display: flex;
    background: #f1f1f1;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.ys-recurring-totals .wc-block-components-totals-wrapper {
    border: none !important;
    padding: 0 !important;
}

.yeekit-subscriptions-tab-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    outline: none !important;
    box-shadow: none !important;
}

.yeekit-subscriptions-tab-btn.active {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

/* Tab Contents */
.yeekit-subscriptions-tab-content {
    display: none;
    animation: ysFadeIn 0.3s ease;
}

.yeekit-subscriptions-tab-content.active {
    display: block;
}

@keyframes ysFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Option Label - Two Column Layout ===== */
.yeekit-subscriptions-option-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 2px solid #eee;
    background: #fafafa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 15px;
}

.yeekit-subscriptions-option-label:last-child {
    margin-bottom: 0;
}

.yeekit-subscriptions-option-label:hover {
    border-color: #ccc;
    background: #fff;
}

.yeekit-subscriptions-option-label:has(input:checked) {
    border-color: #000;
    background: #fff;
    box-shadow: 0 0 0 1px #000;
}

.yeekit-subscriptions-option-label input[type="radio"] {
    margin-right: 12px;
    accent-color: #000;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Left Side - Info */
.yeekit-subscriptions-option-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.yeekit-subscriptions-option-name {
    font-weight: 700;
    font-size: 14px;
    color: #111;
    margin-bottom: 2px;
}

.yeekit-subscriptions-option-price {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.yeekit-subscriptions-option-period {
    font-weight: 400;
    color: #777;
    font-size: 13px;
}

.ys-option-trial {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: #fff;
    background: #27ae60;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Right Side - Due Today */
.yeekit-subscriptions-option-due {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    text-align: right;
}

.yeekit-subscriptions-due-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 600;
    margin-bottom: 2px;
}

.yeekit-subscriptions-due-amount {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

/* Price decorations */
.yeekit-subscriptions-option-label del {
    color: #999;
    font-size: 0.9em;
    margin-right: 4px;
}

.yeekit-subscriptions-option-label ins {
    text-decoration: none;
    font-weight: 600;
    color: #000;
}

/* WooCommerce price area overrides */
.ys-price-period {
    font-size: 0.85em;
    color: #666;
    font-weight: 400;
}

.ys-price-trial {
    color: #27ae60;
    font-size: 0.85em;
    display: block;
    margin-top: 2px;
}

/* Classic Cart Meta Styling */
.shop_table .wc-item-meta {
    margin-top: 5px;
    padding-left: 0;
    list-style: none;
}

.shop_table .wc-item-meta li {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 2px;
}

.shop_table .wc-item-meta li strong {
    color: #333;
    font-weight: 600;
}

/* ===== Recurring Totals Panel (Block Cart/Checkout) ===== */
.ys-recurring-totals {}

.ys-recurring-schedule {
    margin-bottom: 12px;
}

.ys-recurring-schedule:last-child {
    margin-bottom: 0;
}

.ys-recurring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.ys-recurring-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.ys-recurring-amount {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.ys-recurring-next-date {
    font-size: 13px;
    color: #757575;
    margin-bottom: 6px;
}

.ys-recurring-details-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    padding: 4px 0;
    user-select: none;
}

.ys-recurring-details-toggle:hover {
    color: #000;
}

.ys-toggle-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.ys-recurring-details-content {
    margin-top: 8px;
    padding-top: 12px;

}

.ys-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

.ys-detail-row.ys-detail-total {

    padding-top: 10px;
    margin-top: 4px;
    font-weight: 700;
    color: #111;
}

/* Coupon */
.ys-detail-coupon {
    padding: 8px 0;
}

.ys-add-coupon-link {
    font-size: 13px;
    color: #7f54b3;
    text-decoration: none;
    cursor: pointer;
}

.ys-add-coupon-link:hover {
    text-decoration: underline;
    color: #6b45a1;
}

.ys-coupon-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ys-coupon-input {
    flex: 1;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

.ys-coupon-input:focus {
    border-color: #7f54b3;
}

.ys-coupon-apply-btn {
    padding: 6px 14px;
    font-size: 13px;
    background: #7f54b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.ys-coupon-apply-btn:hover {
    background: #6b45a1;
}

/* Related Subscriptions Table (Thank You Page) */
.ys-related-subscriptions {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.ys-related-subscriptions h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.ys-subscriptions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.ys-subscriptions-table th {
    text-align: left;
    padding: 12px 15px;
    background: #f9f9f9;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.ys-subscriptions-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
}

.ys-subscriptions-table tr:last-child td {
    border-bottom: none;
}

.ys-subscriptions-table .button.view {
    padding: 8px 20px;
    background: #f3f3f3;
    color: #333;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.ys-subscriptions-table .button.view:hover {
    background: #e0e0e0;
    color: #000;
    transform: translateY(-1px);
}

/* ===== My Account Single Subscription Details Card ===== */
.ys-sub-details {
    margin: 20px 0;
}

.ys-header-actions {
    margin-bottom: 20px;
}

.ys-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b !important;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ys-back-btn:hover {
    color: #0f172a !important;
}

.ys-back-btn svg {
    transition: transform 0.2s ease;
}

.ys-back-btn:hover svg {
    transform: translateX(-4px);
}

.ys-details-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
}

.ys-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.ys-grid-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ys-grid-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.ys-grid-val {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
}

/* Badge statuses */
.ys-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: fit-content;
    text-align: center;
}

.ys-status-active,
.ys-status-completed {
    background: #ecfdf5;
    color: #059669;
}

.ys-status-on-hold {
    background: #fffbeb;
    color: #d97706;
}

.ys-status-cancelled,
.ys-status-expired,
.ys-status-failed,
.ys-status-refunded {
    background: #fef2f2;
    color: #dc2626;
}

.ys-status-processing {
    background: #eff6ff;
    color: #2563eb;
}

.ys-status-pending {
    background: #f3f4f6;
    color: #4b5563;
}

/* Actions inside the details card footer */
.ys-details-card .subscription-actions {
    border-top: 1px solid #e2e8f0;
    margin-top: 24px;
    padding-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .ys-details-card .subscription-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .ys-details-card .subscription-actions .woocommerce-button {
        width: 100%;
        text-align: center;
    }
}
