
.eshterakyar-featurebase-widget-frontend {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

#featurebase-widget-frontend {
    margin-top: 20px;
}

#featurebase-widget-frontend iframe {
    border-radius: 5px;
}

.eshterakyar-download-section {
    margin: 20px 0 !important;
    padding: 20px !important;
    background: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    clear: both !important;
}

.eshterakyar-subscription-actions {
    margin: 20px 0 !important;
    padding: 20px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    clear: both !important;
}

.eshterakyar-action-buttons {
    display: flex !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    margin-bottom: 15px !important;
}

.eshterakyar-buy-subscription-button {
    background: #10b981 !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: background 0.3s ease !important;
    line-height: 1.5 !important;
}

.eshterakyar-buy-subscription-button:hover {
    background: #059669 !important;
    color: #fff !important;
    text-decoration: none !important;
}


.eshterakyar-subscription-note {
    margin: 10px 0 0 0 !important;
    color: #6b7280 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.eshterakyar-subscription-status {
    background: #fff !important;
    padding: 20px !important;
    border-radius: 5px !important;
}

.eshterakyar-subscription-title {
    margin: 0 0 15px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #10b981 !important;
    line-height: 1.4 !important;
}

.eshterakyar-subscription-details {
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.eshterakyar-subscription-detail-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.eshterakyar-subscription-detail-item:last-child {
    border-bottom: none !important;
}

.eshterakyar-detail-label {
    font-size: 14px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

.eshterakyar-detail-value {
    font-size: 14px !important;
    color: #111827 !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

.eshterakyar-download-button-wrapper {
    margin-top: 15px !important;
}

.eshterakyar-download-button {
    background: #10b981 !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: background 0.3s ease !important;
    line-height: 1.5 !important;
}

.eshterakyar-download-button:hover {
    background: #059669 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.eshterakyar-downloaded-badge {
    background: #46b450 !important;
    color: #fff !important;
    padding: 10px 15px !important;
    border-radius: 4px !important;
    margin-bottom: 15px !important;
    display: inline-block !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.eshterakyar-downloaded-badge .dashicons {
    vertical-align: middle !important;
    margin-left: 5px !important;
}

.eshterakyar-subscription-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.eshterakyar-subscription-info p {
    margin: 5px 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .eshterakyar-action-buttons {
        flex-direction: column;
    }
    
    .eshterakyar-buy-subscription-button,
    .eshterakyar-free-download-button,
    .eshterakyar-download-button {
        width: 100%;
        text-align: center;
    }
    
    .eshterakyar-subscription-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

.eshterakyar-subscription-required,
.eshterakyar-download-error {
    padding: 15px !important;
    background: #fff3cd !important;
    border: 1px solid #ffc107 !important;
    border-radius: 4px !important;
    margin: 20px 0 !important;
}

.eshterakyar-alert {
    color: #856404 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.eshterakyar-renew-subscription-action {
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid #ffc107 !important;
}

.eshterakyar-renew-subscription-button {
    background: #10b981 !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: background 0.3s ease !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
}

.eshterakyar-renew-subscription-button:hover {
    background: #059669 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.eshterakyar-renew-note {
    margin: 10px 0 0 0 !important;
    color: #856404 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.eshterakyar-product-downloaded-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(70, 180, 80, 0.9);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-weight: bold;
    font-size: 14px;
}

.eshterakyar-product-downloaded-overlay[data-elementor-type="widget"] {
    position: absolute !important;
    z-index: 999 !important;
}

.woocommerce-product-gallery,
.elementor-widget-woocommerce-product-images,
.elementor-widget-image {
    position: relative;
}

.eshterakyar-previous-subscription-note {
    display: block;
    font-size: 12px;
    color: #fff;
    text-align: center;
    margin-top: 5px;
    font-style: italic;
}

.eshterakyar-redownload-button {
    margin-left: 10px;
}

.eshterakyar-user-subscriptions {
    margin: 20px 0;
}

.eshterakyar-subscriptions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.eshterakyar-subscription-item {
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.eshterakyar-subscription-item.status-active {
    border-left: 4px solid #46b450;
}

.eshterakyar-subscription-item.status-expired {
    border-left: 4px solid #dc3232;
}

.eshterakyar-subscription-item.status-cancelled {
    border-left: 4px solid #999;
}

.eshterakyar-subscription-item h3 {
    margin-top: 0;
    color: #333;
}

.subscription-details p {
    margin: 8px 0;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.status-badge.status-active {
    background: #46b450;
    color: #fff;
}

.status-badge.status-expired {
    background: #dc3232;
    color: #fff;
}

.status-badge.status-cancelled {
    background: #999;
    color: #fff;
}

.eshterakyar-user-downloads {
    margin: 20px 0;
}

.eshterakyar-downloads-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.eshterakyar-subscription-downloads {
    border-right: 4px solid #10b981;
}

.eshterakyar-other-downloads {
    border-right: 4px solid #6b7280;
}

.eshterakyar-downloads-section-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.eshterakyar-downloads-section-header h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.eshterakyar-section-description {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.eshterakyar-downloads-list {
    margin-top: 15px;
}

.eshterakyar-downloads-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.eshterakyar-downloads-table th,
.eshterakyar-downloads-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

.eshterakyar-downloads-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.eshterakyar-shortcode-subscriptions,
.eshterakyar-shortcode-downloads {
    margin: 20px 0;
}

.eshterakyar-subscriptions-shortcode-list,
.eshterakyar-downloads-shortcode-list {
    list-style: none;
    padding: 0;
}

.eshterakyar-subscription-shortcode-item,
.eshterakyar-download-shortcode-item {
    padding: 10px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-right: 3px solid #0073aa;
}

.eshterakyar-days-left {
    float: left;
    color: #666;
    font-size: 12px;
}

.eshterakyar-days-left {
    color: #46b450;
    font-weight: bold;
}

.eshterakyar-no-subscription {
    color: #dc3232;
}

.eshterakyar-expired {
    color: #dc3232;
}

.eshterakyar-expired-message {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    margin: 20px 0;
}

.eshterakyar-no-subscription-alert {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}
.eshterakyar-no-subscription-alert p{
    margin-bottom: 15px;
}
.eshterakyar-subscription-info-box {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 20px 0;
}

.eshterakyar-subscription-info-box .info-item {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.eshterakyar-subscription-info-box .info-item:last-child {
    border-bottom: none;
}

.eshterakyar-subscription-info-box .info-item strong {
    color: #333;
    margin-left: 10px;
}

.eshterakyar-retention-notice {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.eshterakyar-retention-notice .description {
    margin: 0;
    color: #0066cc;
    font-size: 13px;
}

.eshterakyar-auto-subscription-info {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}


.eshterakyar-downloads-table .eshterakyar-redownload-button {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.eshterakyar-downloads-table .eshterakyar-redownload-button:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.4);
    color: #ffffff;
}

.eshterakyar-downloads-table .eshterakyar-redownload-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.3);
}

.eshterakyar-downloads-table .button:not(.eshterakyar-redownload-button) {
    background: #ffffff;
    color: #111827;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.eshterakyar-downloads-table .button:not(.eshterakyar-redownload-button):hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
    transform: translateY(-1px);
}


.eshterakyar-user-subscriptions,
.eshterakyar-user-downloads {
    margin: 24px 0;
    padding: 24px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}

.eshterakyar-user-subscriptions > h2,
.eshterakyar-user-downloads > h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
}

.eshterakyar-subscription-item h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.eshterakyar-renew-subscription-inline {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 768px) {
    .eshterakyar-user-subscriptions,
    .eshterakyar-user-downloads {
        padding: 16px 14px;
        box-shadow: none;
        border-radius: 8px;
    }
}

/* استایل ۲: دکمه تاشو */
.eshterakyar-style-2 .eshterakyar-subscription-toggle-button {
    background: #10b981;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
    line-height: 1.5;
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.eshterakyar-style-2 .eshterakyar-subscription-toggle-button::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ffffff;
    transition: transform 0.3s ease;
}

.eshterakyar-style-2 .eshterakyar-subscription-toggle-button:hover {
    background: #059669 !important;
    color: #fff !important;
}

.eshterakyar-style-2 .eshterakyar-subscription-toggle-button:active {
    background: #059669 !important;
}

.eshterakyar-style-2 .eshterakyar-subscription-toggle-button.active::before {
    transform: translateY(-50%) rotate(180deg);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استایل ۲: فقط دکمه برای کاربران لاگین نشده یا بدون اشتراک */
.eshterakyar-style-2 .eshterakyar-download-button-wrapper {
    margin: 0 !important;
}

.eshterakyar-style-2 .eshterakyar-buy-subscription-button {
    background: #10b981 !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: background 0.3s ease !important;
    line-height: 1.5 !important;
    width: 100% !important;
    text-align: center !important;
}

.eshterakyar-style-2 .eshterakyar-buy-subscription-button:hover {
    background: #059669 !important;
    color: #fff !important;
    text-decoration: none !important;
}
