/* GŁÓWNE PUDEŁKO Z TYTUŁEM CZASOPISMA I STATUSEM */
.rb-wc-sub-status-box {
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 16px 18px;
    margin-bottom: 20px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

/* Wewnętrzny header: tytuł + status + przycisk */
.rb-wc-sub-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.rb-wc-sub-status-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rb-wc-sub-status-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.rb-wc-sub-status-title {
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
}

/* STATUS – „CHIP” Z KÓŁKIEM (ŚWIATEŁKIEM) */
.rb-wc-sub-pill {
    padding: 6px 14px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    background: #f3f4f6;
    color: #374151;
    white-space: nowrap;
    position: relative;
}

/* Domyślne szare światełko */
.rb-wc-sub-pill::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 5px;
    background: #d1d5db;
    box-shadow: 0 0 0 3px rgba(209, 213, 219, 0.45);
}

/* AKTYWNA – ZIELONA */
.rb-status-active-pill {
    background: rgba(22, 163, 74, 0.08);
    color: #166534;
    border-color: rgba(22, 163, 74, 0.35);
}

.rb-status-active-pill::before {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.4);
}

/* OD NOWEGO NUMERU / PRZYSZŁA – NIEBIESKA */
.rb-status-future-pill {
    background: rgba(37, 99, 235, 0.06);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.35);
}

.rb-status-future-pill::before {
    background: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

/* BRAK / WYGASŁA – CZERWONA */
.rb-status-expired-pill,
.rb-status-inactive {
    background: rgba(220, 38, 38, 0.04);
    color: #b91c1c;
    border-color: rgba(248, 113, 113, 0.6);
}

.rb-status-expired-pill::before,
.rb-status-inactive::before {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.45);
}

/* DETAILS + TABELA – BEZ WIĘKSZYCH ZMIAN */
.rb-wc-sub-details {
    margin-top: 10px;
    margin-bottom: 20px;
}

.rb-wc-sub-details > summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 8px;
}

.rb-wc-sub-summary {
    border: 1px solid #e5e7eb;
    padding: 15px;
    margin-bottom: 20px;
    background: #f9fafb;
    border-radius: 5px;
}

.rb-wc-sub-summary h3 {
    margin-top: 0;
}

.rb-wc-sub-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}

.rb-wc-sub-table th,
.rb-wc-sub-table td {
    border: 1px solid #e5e7eb;
    padding: 8px;
    text-align: left;
}

.rb-wc-sub-table th {
    background: #f3f4f6;
    font-weight: 600;
}

/* STATUSY W TABELI */
.rb-status-active {
    color: #166534;
    font-weight: bold;
}

.rb-status-expired {
    color: #b91c1c;
    font-weight: bold;
}

.rb-status-unpaid {
    color: #b36b00;
    font-weight: bold;
}

.rb-status-future {
    color: #1d4ed8;
    font-weight: bold;
}

.rb-status-error {
    color: #b91c1c;
}

.rb-sub-warning {
    color: #b36b00;
    font-weight: bold;
}

/* PRZYCISK „ZAMÓW / PRZEDŁUŻ PRENUMERATĘ” – POMARAŃCZOWY JAK W SKLEPIE */
.rb-wc-sub-status-box a[href*="add-to-cart"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
	margin-top: 10px;
    border-radius: 5px;
    background: #ff9900;
    color: #111827;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    box-shadow: 0 6px 16px rgba(255, 153, 0, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    white-space: nowrap;
}

.rb-wc-sub-status-box a[href*="add-to-cart"]:hover {
    background: #ffad33;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 153, 0, 0.45);
}

.rb-wc-sub-status-box a[href*="add-to-cart"]:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* RESPONSYWNOŚĆ – NA WĄSKICH EKRANACH ELEMENTY W KOLUMNIE */
@media (max-width: 600px) {
    .rb-wc-sub-status-box {
        align-items: flex-start;
    }

    .rb-wc-sub-status-title,
    .rb-wc-sub-pill,
    .rb-wc-sub-status-box a[href*="add-to-cart"] {
        width: 100%;
    }

    .rb-wc-sub-status-box a[href*="add-to-cart"] {
        justify-content: center;
    }
}
