/* =============================================================
   APF Akademia Pani Fryzjer – frontend styles
   Minimalistyczny styl: białe tło, lekki niebieski cień, zaokrąglone rogi
   ============================================================= */

/* ---------------------------------------------------------------
   Plan selector box
   ------------------------------------------------------------- */
.apf-plan-selector {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.10);
    padding: 28px 24px 24px;
    margin-bottom: 24px;
    font-family: inherit;
}

.apf-plan-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------
   Plan option (radio label)
   ------------------------------------------------------------- */
.apf-plan-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: border-color 0.18s ease, background 0.18s ease;
    position: relative;
}

.apf-plan-option:last-of-type {
    margin-bottom: 20px;
}

.apf-plan-option input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #3b82f6;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.apf-plan-option:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
}

.apf-plan-option--selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

/* ---------------------------------------------------------------
   Plan option inner content
   ------------------------------------------------------------- */
.apf-plan-option__inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}

.apf-plan-option__name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
}

.apf-plan-option__price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1d4ed8;
}

.apf-plan-option__desc {
    font-size: 0.82rem;
    color: #6b7280;
    margin-top: 2px;
}

/* ---------------------------------------------------------------
   Checkout button
   ------------------------------------------------------------- */
.apf-btn-checkout {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #2563eb;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
    letter-spacing: 0.01em;
}

.apf-btn-checkout:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.30);
}

.apf-btn-checkout:disabled {
    background: #93c5fd;
    cursor: not-allowed;
    box-shadow: none;
}

.apf-active-access-note {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    line-height: 1.45;
    font-size: 0.92rem;
}

.apf-repurchase-info {
    margin-top: 14px;
}

/* ---------------------------------------------------------------
   Tutor dashboard - karta statusu dostępu
   ------------------------------------------------------------- */
.apf-dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.10);
    padding: 20px;
    margin: 0 0 20px;
}

.apf-dashboard-card--top {
    margin: 0 0 24px;
}

.apf-dashboard-card__title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    line-height: 1.3;
    color: #111827;
}

.apf-dashboard-card__status {
    margin: 0 0 6px;
    font-weight: 700;
    color: #1d4ed8;
}

.apf-dashboard-card__message {
    margin: 0;
    line-height: 1.5;
    color: #374151;
}

.apf-dashboard-card__actions {
    margin-top: 14px;
}

.apf-dashboard-card__hint {
    margin: 10px 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #6b7280;
}

.apf-dashboard-card__hint a {
    color: #1d4ed8;
    text-decoration: underline;
}

.apf-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.apf-btn--primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
}

.apf-btn--primary:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.apf-btn--danger {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.apf-btn--danger:hover {
    background: #ffe4e6;
    color: #9f1239;
}

/* ---------------------------------------------------------------
   Tutor login modal – ukrycie (blokada przez JS, ale CSS jako backup)
   ------------------------------------------------------------- */
.tutor-login-modal.tutor-is-active {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ---------------------------------------------------------------
   Ukrycie domyślnego boxa zakupu Tutora (kurs ID 1091)
   ------------------------------------------------------------- */
body.postid-1091 .tutor-course-enroll-box,
body.postid-1091 .tutor-single-course-entry-box,
body.postid-1091 .tutor-course-details-widget,
body.postid-1091 .tutor-price-preview-box,
body.postid-1091 .tutor-course-price,
body.postid-1091 .tutor-course-purchase-btn,
body.postid-1091 .tutor-add-to-cart-button,
body.postid-1091 .tutor-course-enroll-btn,
body.postid-1091 .tutor-add-to-cart,
body.postid-1091 .tutor-price-and-enroll {
    display: none !important;
}
