/* Odstąpienie od umowy – modal (niezależny od Bootstrap JS) */

.btn-odstap-footer {
    display: inline-block;
    background: #1e3a5f;
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-odstap-footer:hover,
.btn-odstap-footer:focus {
    background: #152a45;
    color: #fff;
    outline: none;
}

.odstap-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 30px 12px;
    box-sizing: border-box;
}

.odstap-overlay.is-open {
    display: block;
}

.odstap-dialog {
    width: 560px;
    max-width: 100%;
    margin: 20px auto;
    position: relative;
}

.odstap-content {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.odstap-header {
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 22px 12px;
    position: relative;
}

.odstap-title {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: #9a9a9a;
    font-family: Arial, Helvetica, sans-serif;
}

.odstap-close {
    position: absolute;
    right: 14px;
    top: 10px;
    font-size: 28px;
    font-weight: 300;
    color: #999;
    background: transparent;
    border: none;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}

.odstap-close:hover {
    color: #555;
}

.odstap-body {
    padding: 18px 28px 10px;
    font-family: Arial, Helvetica, sans-serif;
}

.odstap-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0 8px;
}

.odstap-step {
    display: flex;
    align-items: center;
    justify-content: center;
}

.odstap-step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #d0d0d0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.odstap-step.is-active .odstap-step-circle {
    background: #f5a623;
}

.odstap-step.is-done .odstap-step-circle {
    background: #4caf50;
    font-size: 16px;
}

.odstap-step-line {
    width: 48px;
    height: 2px;
    background: #d0d0d0;
    margin: 0 6px;
}

.odstap-step-label {
    text-align: center;
    color: #b0b0b0;
    font-size: 13px;
    margin: 0 0 18px;
}

.odstap-hint {
    color: #b0b0b0;
    font-size: 13px;
    margin: 0 0 16px;
}

.odstap-req {
    color: #e53935;
}

.odstap-field {
    margin-bottom: 16px;
}

.odstap-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #444;
    margin-bottom: 6px;
}

.odstap-field input,
.odstap-field select,
.odstap-field textarea {
    display: block;
    width: 100%;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    box-shadow: none;
    height: 38px;
    font-size: 14px;
    padding: 6px 10px;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    font-family: inherit;
}

.odstap-field textarea {
    height: auto;
    min-height: 90px;
    resize: vertical;
}

.odstap-field input:focus,
.odstap-field select:focus,
.odstap-field textarea:focus {
    border-color: #f5a623;
    outline: none;
    box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.35);
}

.odstap-help {
    margin: 6px 0 0;
    font-size: 12px;
    color: #b0b0b0;
}

.odstap-produkty-list {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 18px;
    max-height: 220px;
    overflow-y: auto;
}

.odstap-produkt-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

.odstap-produkt-item:last-child {
    border-bottom: none;
}

.odstap-produkt-item input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.odstap-produkt-nazwa {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.odstap-produkt-kod {
    color: #999;
    font-size: 13px;
}

.odstap-produkt-ilosc {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

.odstap-summary {
    margin-bottom: 16px;
}

.odstap-summary-row {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: #666;
}

.odstap-summary-row strong {
    color: #222;
    font-weight: 700;
    margin-right: 4px;
}

.odstap-uwaga {
    background: #fff3e0;
    border: 1px solid #f5a623;
    border-radius: 4px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.odstap-uwaga strong {
    color: #333;
}

.odstap-success {
    padding: 10px 0 20px;
}

.odstap-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #4caf50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.odstap-success h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #666;
}

.odstap-success p {
    margin: 0;
    font-size: 14px;
    color: #999;
    line-height: 1.5;
    max-width: 420px;
}

.odstap-alert {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 13px;
}

.odstap-alert.is-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #a94442;
}

.odstap-alert.is-ok {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.odstap-footer {
    border-top: 1px solid #e5e5e5;
    padding: 14px 22px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.odstap-btn-navy,
.odstap-btn-orange {
    border: none;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 3px;
    letter-spacing: 0.02em;
    cursor: pointer;
    font-family: inherit;
}

.odstap-btn-navy {
    background: #1e3a5f;
}

.odstap-btn-navy:hover {
    background: #152a45;
}

.odstap-btn-orange {
    background: #f5a623;
    margin-left: auto;
}

.odstap-btn-orange:hover {
    background: #e09410;
}

.odstap-btn-navy:disabled,
.odstap-btn-orange:disabled {
    opacity: 0.65;
    cursor: wait;
}

.odstap-arrow {
    margin-left: 2px;
}

body.odstap-open {
    overflow: hidden;
}

@media (max-width: 580px) {
    .odstap-dialog {
        width: auto;
        margin: 10px auto;
    }

    .odstap-body {
        padding: 14px 16px 8px;
    }

    .odstap-step-line {
        width: 28px;
    }

    .odstap-footer {
        flex-wrap: wrap;
    }

    .odstap-btn-orange {
        margin-left: 0;
    }
}
