.checkout-page{
    padding:70px 0 100px;
    background:#fff;
}

.checkout-heading{
    margin-bottom:38px;
}

.checkout-heading h1{
    margin:6px 0 10px;

    color:var(--navy);

    font-size:42px;
    line-height:1.1;
}

.checkout-heading p{
    margin:0;
    color:#7d848d;
}

.checkout-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 390px;
    gap:40px;

    align-items:start;
}

.checkout-content{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.checkout-box{
    padding:28px;

    border:1px solid var(--line);
    border-radius:20px;

    background:#fff;
}

.checkout-box-heading{
    display:flex;
    align-items:center;
    gap:15px;

    margin-bottom:25px;
}

.checkout-number{
    width:38px;
    height:38px;

    display:grid;
    place-items:center;

    flex-shrink:0;

    border-radius:12px;

    background:#fff1f6;
    color:var(--pink);

    font-weight:800;
}

.checkout-box-heading h2{
    margin:0 0 3px;

    color:var(--navy);

    font-size:20px;
}

.checkout-box-heading p{
    margin:0;

    color:#969ca4;

    font-size:11px;
}

.checkout-fields{
    display:grid;
    gap:18px;
}

.checkout-fields-2{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.checkout-fields-small{
    grid-template-columns:160px minmax(0,1fr);
}

.checkout-field label{
    display:block;

    margin-bottom:7px;

    color:var(--navy);

    font-size:12px;
    font-weight:700;
}

.checkout-field input{
    width:100%;
    height:49px;

    padding:0 15px;

    border:1px solid var(--line);
    border-radius:11px;

    background:#fff;

    font:inherit;

    outline:none;

    transition:.2s ease;
}

.checkout-field input:focus{
    border-color:var(--pink);

    box-shadow:
        0 0 0 3px rgba(229,24,115,.07);
}


/* CHECKBOX */

.checkout-checkbox{
    display:flex;
    align-items:flex-start;
    gap:11px;

    color:#676e77;

    cursor:pointer;

    font-size:12px;
    line-height:1.6;
}

.checkout-checkbox + .checkout-checkbox{
    margin-top:16px;
}

.checkout-checkbox input{
    width:18px;
    height:18px;

    margin-top:1px;

    flex-shrink:0;

    accent-color:var(--pink);
}

.checkout-digital{
    padding:15px;

    border:1px solid #f1d2df;
    border-radius:12px;

    background:#fff9fb;
}


/* PODSUMOWANIE */

.checkout-summary{
    position:sticky;
    top:25px;

    padding:28px;

    border:1px solid var(--line);
    border-radius:22px;

    background:#fff;

    box-shadow:
        0 18px 50px rgba(42,64,95,.07);
}

.checkout-summary h2{
    margin:0 0 24px;

    color:var(--navy);

    font-size:24px;
}

.checkout-products{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.checkout-product{
    display:flex;
    justify-content:space-between;
    gap:20px;

    color:#777e87;

    font-size:12px;
}

.checkout-product > div{
    min-width:0;
}

.checkout-product > div strong{
    display:inline;

    color:var(--navy);
}

.checkout-product span{
    margin-left:4px;
    color:#9ba0a7;
}

.checkout-product > strong{
    flex-shrink:0;

    color:var(--navy);
}

.checkout-line{
    height:1px;

    margin:20px 0;

    background:var(--line);
}

.checkout-summary-row{
    display:flex;
    justify-content:space-between;
    gap:20px;

    padding:7px 0;

    color:#7c838c;

    font-size:12px;
}

.checkout-summary-row strong{
    color:var(--navy);
    text-align:right;
}

.checkout-total{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:20px;

    margin-top:20px;
    padding-top:20px;

    border-top:1px solid var(--line);
}

.checkout-total span{
    display:block;

    color:var(--navy);

    font-size:15px;
    font-weight:700;
}

.checkout-total small{
    color:#969ca4;

    font-size:10px;
}

.checkout-total > strong{
    color:var(--pink);

    font-size:28px;

    white-space:nowrap;
}


/* PRZYCISK */

.checkout-submit{
    width:100%;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;

    margin-top:26px;

    padding:16px 18px;

    border:0;
    border-radius:13px;

    background:var(--pink);
    color:#fff;

    font:inherit;
    font-size:14px;
    font-weight:700;

    cursor:pointer;

    transition:.2s ease;
}

.checkout-submit:hover{
    background:var(--navy);
}

.checkout-security{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:6px;

    margin-top:12px;

    color:#a0a5ac;

    font-size:10px;
}


/* RESPONSIVE */

@media(max-width:980px){

    .checkout-layout{
        grid-template-columns:1fr;
    }

    .checkout-summary{
        position:static;
    }

}

@media(max-width:600px){

    .checkout-page{
        padding:45px 0 70px;
    }

    .checkout-fields-2,
    .checkout-fields-small{
        grid-template-columns:1fr;
    }

    .checkout-box{
        padding:20px;
    }

}

.checkout-login-box{
    display:flex;
    align-items:center;
    gap:15px;

    margin-bottom:28px;
    padding:18px 20px;

    border:1px solid var(--line);
    border-radius:16px;

    background:#fafbfc;
}

.checkout-login-icon{
    width:42px;
    height:42px;

    display:grid;
    place-items:center;

    flex-shrink:0;

    border-radius:12px;

    background:#fff1f6;
    color:var(--pink);
}

.checkout-login-content{
    min-width:0;
    flex:1;
}

.checkout-login-content strong{
    display:block;

    margin-bottom:2px;

    color:var(--navy);

    font-size:14px;
}

.checkout-login-content span{
    display:block;

    color:#8a9098;

    font-size:11px;
}

.checkout-login-link{
    display:inline-flex;
    align-items:center;
    gap:7px;

    flex-shrink:0;

    color:var(--pink);

    font-size:12px;
    font-weight:700;

    text-decoration:none;
}

.checkout-login-link:hover{
    color:var(--navy);
}

@media(max-width:600px){

    .checkout-login-box{
        align-items:flex-start;
        flex-wrap:wrap;
    }

    .checkout-login-link{
        width:100%;
        margin-left:57px;
    }

}

.checkout-customer-type{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin-bottom:18px;
}

.checkout-type-option{
    position:relative;
    cursor:pointer;
}

.checkout-type-option input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.checkout-type-option > span{
    display:flex;
    align-items:center;
    gap:12px;

    min-height:70px;
    padding:15px;

    border:1px solid var(--line);
    border-radius:14px;

    transition:.2s ease;
}

.checkout-type-option > span > i{
    width:36px;
    height:36px;

    display:grid;
    place-items:center;

    flex-shrink:0;

    border-radius:10px;

    background:#f6f7f9;
    color:var(--navy);
}

.checkout-type-option strong{
    display:block;

    color:var(--navy);

    font-size:13px;
}

.checkout-type-option small{
    display:block;

    margin-top:2px;

    color:#979da5;

    font-size:10px;
}

.checkout-type-option input:checked + span{
    border-color:var(--pink);
    background:#fff9fb;
}

.checkout-type-option input:checked + span > i{
    background:#fff1f6;
    color:var(--pink);
}

.checkout-company-fields{
    margin-top:20px;
}

@media(max-width:600px){

    .checkout-customer-type{
        grid-template-columns:1fr;
    }

}

.inpost-map{
    margin-top:18px;

    overflow:hidden;

    border:1px solid var(--line);
    border-radius:16px;
}

inpost-geowidget{
    display:block;

    width:100%;
    height:520px;
}

.inpost-selected-point{
    display:flex;
    align-items:flex-start;
    gap:13px;

    margin-bottom:18px;
    padding:15px 17px;

    border:1px solid #d7e8de;
    border-radius:13px;

    background:#f6fbf8;
}

.inpost-selected-point > i{
    margin-top:2px;

    color:#38a268;
}

.inpost-selected-point span{
    display:block;

    margin-bottom:2px;

    color:#8a9299;

    font-size:10px;
}

.inpost-selected-point strong{
    display:block;

    color:var(--navy);

    font-size:13px;
}

.inpost-selected-point small{
    display:block;

    margin-top:2px;

    color:#777f87;

    font-size:11px;
}

@media(max-width:600px){

    inpost-geowidget{
        height:500px;
    }

}

.checkout-invoice-checkbox{
    margin-top:22px;

    padding:14px 16px;

    border:1px solid var(--line);
    border-radius:12px;

    background:#fafbfc;
}

.checkout-invoice-checkbox input{
    margin-top:2px;
}

.checkout-invoice-checkbox span{
    color:var(--navy);
    font-size:12px;
    font-weight:600;
}

.checkout-invoice-fields{
    margin-top:18px;

    padding-top:0;

    border-top:0;
}

.checkout-invoice-info{
    display:flex;
    align-items:flex-start;
    gap:10px;

    margin-bottom:22px;
    padding:14px 16px;

    border:1px solid #f1d7e2;
    border-radius:12px;

    background:#fff8fb;

    color:#666d76;

    font-size:12px;
    line-height:1.6;
}

.checkout-invoice-info i{
    margin-top:2px;

    color:var(--pink);
    font-size:15px;
}

.checkout-invoice-address{
    margin-top:0;
    padding-top:22px;

    border-top:1px solid var(--line);
}

.checkout-invoice-address h3{
    margin:0 0 18px;

    color:var(--navy);

    font-size:16px;
    font-weight:700;
}

/*
|--------------------------------------------------------------------------
| WIDOCZNOŚĆ I ODSTĘPY FAKTURY
|--------------------------------------------------------------------------
*/

.checkout-invoice-fields[hidden],
.checkout-company-fields[hidden],
.checkout-invoice-info[hidden] {
    display: none !important;
}

.checkout-company-fields {
    margin-top: 20px;
    margin-bottom: 30px;
}

.checkout-company-fields .checkout-fields {
    margin-bottom: 0;
}

.checkout-invoice-address {
    clear: both;
}

.checkout-company-fields:not([hidden])
    + .checkout-invoice-address {
    margin-top: 4px;
}

@media (max-width: 600px) {

    .checkout-company-fields {
        margin-bottom: 24px;
    }
}