/* Wszystkie reguły zaczepione o #steppedCheckout: globalne style przycisków
   Elementora mają wyższą specyficzność niż pojedyncza klasa i je nadpisywały. */

#steppedCheckout {
    max-width: 480px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(226, 90, 140, 0.16);
    padding: 28px 24px;
    box-sizing: border-box;
}

#steppedCheckout .hidden {
    display: none;
}

/* Neutralise checkout.css's @media(min-width:768px) 2-column grid — this
   widget is a narrow card. */
#steppedCheckout .checkout {
    display: block;
    padding-left: 0;
    padding-right: 0;
}

/* --- Krok 1 --- */

#steppedCheckout .stepped-checkout__tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #f6dbe4;
    margin-bottom: 20px;
}

#steppedCheckout .stepped-checkout__tab {
    flex: 0 0 auto;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: none;
    padding: 4px 0 12px;
    font-family: 'Saira', sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
    color: #9a6b7c;
    cursor: pointer;
    transition: color ease-in-out 0.2s, border-color ease-in-out 0.2s;
}

#steppedCheckout .stepped-checkout__tab--active {
    color: #B23A6B;
    border-bottom-color: #E85D8F;
}

/* 15/30/50: wąskie, prawie okrągłe; „Inna kwota” zajmuje resztę rzędu. */
#steppedCheckout .stepped-checkout__amounts {
    display: grid;
    grid-template-columns: repeat(3, auto) minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    #steppedCheckout .stepped-checkout__amounts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #steppedCheckout .stepped-checkout__amount--custom {
        grid-column: 1 / -1;
    }
}

#steppedCheckout .stepped-checkout__amount {
    min-width: 52px;
    padding: 14px 12px;
    font-family: 'Saira', sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.2;
    text-align: center;
    border: 2px solid #F3C6D6;
    border-radius: 999px;
    background: #ffffff;
    color: #B23A6B;
    cursor: pointer;
    transition: all ease-in-out 0.2s;
    box-sizing: border-box;
}

#steppedCheckout .stepped-checkout__amount--active {
    background: #E85D8F;
    border-color: #E85D8F;
    color: #ffffff;
}

#steppedCheckout .stepped-checkout__amount--custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 14px 12px;
}

#steppedCheckout .stepped-checkout__amount--custom input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    color: #B23A6B;
}

#steppedCheckout .stepped-checkout__amount--custom input::placeholder {
    color: #c9a3b2;
    opacity: 1;
}

#steppedCheckout .stepped-checkout__amount--custom span {
    flex-shrink: 0;
    margin-right: 5px;
    font-weight: 700;
    font-size: 15px;
    color: #B23A6B;
}

#steppedCheckout .stepped-checkout__error {
    color: #a00;
    font-size: 18px;
    margin-bottom: 16px;
}

#steppedCheckout .stepped-checkout__cta {
    display: block;
    width: 100%;
    padding: 17px 0;
    font-family: 'Saira', sans-serif;
    font-weight: 800;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #E85D8F, #B23A6B);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(178, 58, 107, 0.35);
    cursor: pointer;
    transition: filter ease-in-out 0.2s;
}

#steppedCheckout .stepped-checkout__cta:hover {
    filter: brightness(0.94);
}

/* --- Krok 2 --- */

#steppedCheckout .stepped-checkout__step2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

#steppedCheckout .stepped-checkout__back {
    background: none;
    border: 0;
    padding: 0;
    color: #B23A6B;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    cursor: pointer;
}

#steppedCheckout .stepped-checkout__summary {
    margin: 0;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.3;
    color: #28326F;
}

#steppedCheckout .checkout__label:not(.checkout__label--inline) {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #28326F;
    margin-bottom: 16px;
}

#steppedCheckout .checkout__group {
    column-gap: 10px;
}

#steppedCheckout .checkout__label:not(.checkout__label--inline) .checkout__input {
    display: block;
    margin-top: 6px;
    padding: 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #28326F;
    border: 1px solid #f6dbe4;
    border-radius: 10px;
}

#steppedCheckout .checkout__input::placeholder {
    color: #c9a3b2;
    opacity: 1;
}

#steppedCheckout .checkout__input:focus {
    border-color: #E85D8F;
}

#steppedCheckout .required {
    color: #cc1818;
    margin-left: 1px;
}

#steppedCheckout .checkout__link {
    color: #B23A6B;
    text-decoration: underline;
}

#steppedCheckout .checkout__consents {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 4px 0 16px;
}

#steppedCheckout .checkout__consents-heading {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #28326F;
}

#steppedCheckout .checkout__consents .checkout__label--inline {
    gap: 8px;
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    color: #444;
}

#steppedCheckout .checkout__consents .checkout__checkbox {
    margin: 0;
    accent-color: #E85D8F;
}

#steppedCheckout .checkout__consents-info {
    margin: 4px 0;
    font-size: 15px;
    line-height: 1.4;
    color: #a97e8c;
}

/* Kontener pól PayU (klasy wspólne ze starym checkoutem — tylko wygląd,
   iframe'y SDK renderują się wewnątrz .payu-card-form bez zmian). */
#steppedCheckout .card-container {
    max-width: none;
    margin: 0 0 16px;
    padding: 14px;
    border-radius: 14px;
    background: #B23A6B;
}

#steppedCheckout .card-container aside {
    padding-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

#steppedCheckout .payu-card-form {
    border-radius: 8px;
}

#steppedCheckout .card-details {
    gap: 10px;
}

/* checkout.css shrinks .checkout__submit to auto width + right-aligns it
   at >=768px viewport — this card stays full-width regardless. */
#steppedCheckout .checkout__submit {
    display: block;
    width: 100%;
    margin: 0;
    padding: 15px 0;
    font-family: 'Saira', sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    border: 0;
    border-radius: 999px;
    background: #B23A6B;
    color: #ffffff;
    cursor: pointer;
    transition: background ease-in-out 0.2s;
}

#steppedCheckout .checkout__submit:hover {
    background: #9c2f5c;
}

#steppedCheckout .checkout__submit:disabled {
    opacity: 0.6;
    cursor: default;
}
