/* =========================================================
   GUADESK — minimalistyczna strona zamówienia
   ========================================================= */

body.woocommerce-checkout,
body.woocommerce-checkout main {
    background: #111217 !important;
}

.guadesk-checkout-minimal {
    padding: 54px 0 84px;
}

.guadesk-checkout-minimal__container {
    width: min(calc(100% - 40px), 980px);
    margin: 0 auto;
}

.guadesk-checkout-minimal__header {
    margin-bottom: 30px;
    text-align: center;
}

.guadesk-checkout-minimal__header > span {
    display: block;
    margin-bottom: 9px;
    color: #ff8a1f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.guadesk-checkout-minimal__header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -.045em;
}

.guadesk-checkout-minimal__form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px;
}

.guadesk-checkout-minimal__section {
    overflow: hidden;
    border: 1px solid #2b2d31;
    border-radius: 18px;
    background: #18191b;
}

.guadesk-checkout-minimal__section-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 21px 24px;
    border-bottom: 1px solid #2b2d31;
    background: #151618;
}

.guadesk-checkout-minimal__number {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 30px;
    border: 1px solid rgba(255,138,31,.28);
    border-radius: 8px;
    background: rgba(255,138,31,.07);
    color: #ff8a1f;
    font-size: 12px;
    font-weight: 800;
}

.guadesk-checkout-minimal__section-head h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.3;
}

.guadesk-checkout-minimal__section-head p {
    margin: 5px 0 0;
    color: #94979f;
    font-size: 12px;
    line-height: 1.55;
}

.guadesk-checkout-minimal__section-body {
    padding: 24px;
}

.guadesk-checkout-fields__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.guadesk-checkout-fields__grid .form-row {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.guadesk-checkout-fields__grid #billing_address_1_field,
.guadesk-checkout-fields__grid #billing_address_2_field {
    grid-column: span 1;
}

.woocommerce-checkout .form-row label {
    display: block;
    margin: 0 0 7px;
    color: #d0d3d9;
    font-size: 12px;
    font-weight: 650;
}

.woocommerce-checkout .form-row .required {
    color: #ff8a1f;
}

.woocommerce-checkout .form-row input.input-text {
    width: 100% !important;
    min-height: 50px;
    padding: 0 14px !important;
    border: 1px solid #343945 !important;
    border-radius: 11px !important;
    background: #111214 !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 14px;
}

.woocommerce-checkout .form-row input.input-text:focus {
    border-color: rgba(255,138,31,.72) !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255,138,31,.08) !important;
}

.woocommerce-checkout .form-row input::placeholder {
    color: #666b74;
}

/* ---------------------------------------------------------
   Płatności
   --------------------------------------------------------- */

.guadesk-checkout-minimal__payment {
    padding-top: 18px;
}

.guadesk-checkout-minimal__hidden-review {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

.guadesk-checkout-minimal__payment > #payment,
.guadesk-checkout-minimal__payment .woocommerce-checkout-payment {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    display: grid;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods > li {
    margin: 0 !important;
    padding: 15px 16px !important;
    border: 1px solid #343945;
    border-radius: 12px;
    background: #111214;
    color: #fff;
}

.woocommerce-checkout #payment ul.payment_methods > li > input {
    accent-color: #ff8a1f;
}

.woocommerce-checkout #payment ul.payment_methods > li > label {
    margin-left: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.woocommerce-checkout #payment div.payment_box {
    margin: 12px 0 0 !important;
    padding: 12px 14px !important;
    border-radius: 9px !important;
    background: #18191b !important;
    color: #b9bdc5 !important;
    font-size: 12px;
    line-height: 1.6;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}

.woocommerce-checkout #payment .place-order {
    margin: 20px 0 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 14px;
    color: #94979f;
    font-size: 11px;
    line-height: 1.6;
}

.woocommerce-checkout .woocommerce-privacy-policy-text a,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
    color: #ff8a1f;
}

.woocommerce-checkout #place_order {
    width: 100% !important;
    min-height: 54px;
    padding: 0 22px !important;
    border: 1px solid #ff8a1f !important;
    border-radius: 12px !important;
    background: #ff8a1f !important;
    color: #111217 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 850 !important;
}

.woocommerce-checkout #place_order:hover {
    filter: brightness(1.08);
}

/* Ukrywamy elementy starego checkoutu / order review */
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .woocommerce-checkout-review-order-table,
.woocommerce-checkout .shop_table,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
    display: none !important;
}

@media (max-width: 700px) {
    .guadesk-checkout-minimal {
        padding: 34px 0 58px;
    }

    .guadesk-checkout-minimal__container {
        width: calc(100% - 24px);
    }

    .guadesk-checkout-minimal__section {
        border-radius: 14px;
    }

    .guadesk-checkout-minimal__section-head,
    .guadesk-checkout-minimal__section-body {
        padding: 18px;
    }

    .guadesk-checkout-fields__grid {
        grid-template-columns: 1fr;
    }
}
