/* Clubynho — frontend styles */

.subscription-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #e9e9e9;
    color: #333;
}

.subscription-status-active { background: #c8e6c9; color: #1b5e20; }
.subscription-status-paused { background: #ffe0b2; color: #e65100; }
.subscription-status-cancelled,
.subscription-status-expired,
.subscription-status-failed { background: #ffcdd2; color: #b71c1c; }
.subscription-status-on-hold { background: #fff9c4; color: #f57f17; }
.subscription-status-pending { background: #e0e0e0; color: #424242; }

.clubynho-subscriptions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clubynho-subscriptions-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.clubynho-subscribe-wrapper {
    display: inline-block;
    text-align: center;
}

.clubynho-subscribe-price {
    font-size: 1.05em;
    margin-bottom: 8px;
    font-weight: 600;
}

.clubynho-pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.clubynho-pricing-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}

.clubynho-pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.clubynho-pricing-card.is-highlight {
    border-color: #ff7043;
    border-width: 2px;
    position: relative;
}

.clubynho-pricing-card.is-highlight::before {
    content: "★";
    position: absolute;
    top: -12px;
    right: 16px;
    background: #ff7043;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    line-height: 24px;
}

.clubynho-pricing-name {
    margin: 0 0 12px;
    font-size: 1.25em;
}

.clubynho-pricing-price {
    font-size: 1.5em;
    font-weight: 700;
    margin: 12px 0;
}

.clubynho-pricing-desc {
    font-size: .9em;
    color: #555;
    margin-bottom: 16px;
}

.clubynho-pricing-cta {
    display: inline-block;
}

/* === Resumo de assinatura no carrinho/checkout === */
.clbynh-cycle-suffix {
    color: #6b7280;
    font-size: 0.85em;
    font-weight: 400;
    margin-left: 4px;
}

.clbynh-recurring-summary th,
.clbynh-recurring-summary td {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-top: 2px solid #ff7043 !important;
    padding: 14px 12px !important;
}

.clbynh-recurring-summary th {
    color: #c2410c;
    font-weight: 700;
    font-size: 14px;
}

.clbynh-recurring-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    color: #1f2937;
    font-size: 14px;
}

.clbynh-recurring-list li {
    padding: 2px 0;
}

.clbynh-recurring-list strong {
    color: #c2410c;
    font-size: 16px;
    font-weight: 700;
}

.clbynh-recurring-note {
    display: block;
    color: #57534e;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 6px;
    font-style: normal;
}

/* === Pagina /minha-conta/conteudo/ === */
.clbynh-content-empty {
    text-align: center;
    padding: 32px 16px;
    background: #fafafa;
    border-radius: 8px;
}

.clbynh-content-intro {
    font-size: 15px;
    color: #4b5563;
    margin: 0 0 20px;
}

.clbynh-content-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: all 0.18s ease;
}

.clbynh-content-card:hover {
    border-color: #fed7aa;
    box-shadow: 0 4px 12px -2px rgba(244, 81, 30, 0.10);
}

.clbynh-content-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.clbynh-content-card-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.clbynh-content-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.clbynh-content-badge--active {
    background: #dcfce7;
    color: #166534;
}

.clbynh-content-files {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clbynh-content-files li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #f3f4f6;
}

.clbynh-content-files li:last-child {
    border-bottom: 0;
}

.clbynh-content-file-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.clbynh-content-file-name {
    flex: 1;
    color: #1f2937;
    font-size: 14px;
}

.clbynh-content-file-btn {
    background: linear-gradient(135deg, #ff7043 0%, #f4511e 100%) !important;
    border: 0 !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(244, 81, 30, 0.25);
    transition: all 0.15s ease;
}

.clbynh-content-file-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(244, 81, 30, 0.35);
    color: #fff !important;
}

.clbynh-content-empty-files {
    color: #6b7280;
    font-size: 13px;
    font-style: italic;
    margin: 8px 0 0;
}

/* === Box de acesso na single page do produto === */
.clbynh-singlepage-access {
    margin: 24px 0;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    border-radius: 8px;
}

.clbynh-singlepage-access-title {
    margin: 0 0 12px;
    color: #14532d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.clbynh-singlepage-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #22c55e;
    color: #fff;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 6px rgba(22, 197, 94, 0.3);
}

.clbynh-singlepage-badge::before {
    content: "✓";
    font-size: 14px;
}

.clbynh-singlepage-source {
    color: #166534;
    font-weight: 500;
    font-size: 13px;
}

.clbynh-singlepage-no-files {
    color: #166534;
    font-size: 13px;
    margin: 8px 0 12px;
    font-style: italic;
}

.clbynh-singlepage-no-files-cta {
    margin: 0;
}

.clbynh-singlepage-no-files-cta .button {
    background: #fff !important;
    border: 1px solid #22c55e !important;
    color: #166534 !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.clbynh-singlepage-no-files-cta .button:hover {
    background: #f0fdf4 !important;
    color: #14532d !important;
}

.clbynh-singlepage-access-files {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clbynh-singlepage-access-files li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px dashed rgba(22, 101, 52, 0.18);
}

.clbynh-singlepage-access-files li:first-child {
    border-top: 0;
}

.clbynh-singlepage-file-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.clbynh-singlepage-file-name {
    flex: 1;
    color: #14532d;
    font-size: 14px;
}

.clbynh-singlepage-file-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border: 0 !important;
    color: #fff !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(22, 197, 94, 0.25);
    transition: all 0.15s ease;
}

.clbynh-singlepage-file-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(22, 197, 94, 0.35);
    color: #fff !important;
}

.clbynh-content-subgroup {
    margin: 16px 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    padding-bottom: 4px;
    border-bottom: 1px dashed #f3f4f6;
}

.clbynh-content-subgroup a {
    color: #c2410c;
    text-decoration: none;
}

.clbynh-content-subgroup a:hover {
    text-decoration: underline;
}
