/* PRAWNIKOM.PL — BUTTON SYSTEM V1 */

.pp-btn {
    --btn-bg: #ffffff;
    --btn-color: #243650;
    --btn-border: #cbd5e1;
    --btn-hover: #f1f5f9;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid var(--btn-border);
    border-radius: 8px;
    background: var(--btn-bg);
    color: var(--btn-color);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.pp-btn:hover {
    background: var(--btn-hover);
    text-decoration: none;
}

.pp-btn:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.pp-btn-primary {
    --btn-bg: #2563eb;
    --btn-color: #ffffff;
    --btn-border: #2563eb;
    --btn-hover: #1d4ed8;
}

.pp-btn-secondary {
    --btn-bg: #ffffff;
    --btn-color: #243650;
    --btn-border: #cbd5e1;
    --btn-hover: #f1f5f9;
}

.pp-btn-success {
    --btn-bg: #15803d;
    --btn-color: #ffffff;
    --btn-border: #15803d;
    --btn-hover: #166534;
}

.pp-btn-danger {
    --btn-bg: #dc2626;
    --btn-color: #ffffff;
    --btn-border: #dc2626;
    --btn-hover: #b91c1c;
}

.pp-btn-warning {
    --btn-bg: #fef3c7;
    --btn-color: #92400e;
    --btn-border: #fcd34d;
    --btn-hover: #fde68a;
}

.pp-btn-premium {
    --btn-bg: #142641;
    --btn-color: #eac780;
    --btn-border: #142641;
    --btn-hover: #243e60;
}

.pp-btn-ghost {
    --btn-bg: transparent;
    --btn-color: #475569;
    --btn-border: transparent;
    --btn-hover: #f1f5f9;
}

/* ROZMIARY */

.pp-btn-xs {
    min-height: 28px;
    padding: 4px 9px;
    font-size: 11px;
    border-radius: 5px;
}

.pp-btn-sm {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 12px;
}

.pp-btn-md {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 14px;
}

.pp-btn-lg {
    min-height: 50px;
    padding: 13px 24px;
    font-size: 16px;
}

.pp-btn-block {
    display: flex;
    width: 100%;
}

.pp-btn-icon {
    width: 42px;
    min-width: 42px;
    padding: 8px;
}

.pp-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pp-btn:disabled,
.pp-btn[aria-disabled="true"] {
    opacity: .45;
    cursor: not-allowed;
}

.pp-btn[aria-busy="true"] {
    opacity: .7;
    cursor: progress;
}

.pp-btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

@media (max-width: 600px) {
    .pp-btn {
        min-height: 44px;
        max-width: 100%;
    }

    .pp-btn-xs,
    .pp-btn-sm {
        min-height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-btn {
        transition: none;
    }
}
