/* Checkout Librería Woody - retiro/despacho */

.woody-checkout-page {
    padding: 42px 0 76px;
    min-height: 72vh;
    background:
        radial-gradient(circle at 88% 8%, rgba(242, 105, 56, .12), transparent 26%),
        linear-gradient(180deg, #fff8ea 0%, #fffdf7 58%, #f8f1e5 100%);
}

.checkout-hero,
.checkout-card,
.checkout-success,
.checkout-empty {
    background: #fff;
    border: 1px solid #eadfc8;
    box-shadow: 0 20px 48px rgba(31, 78, 121, .09);
}

.checkout-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 34px;
    border-radius: 30px;
    margin-bottom: 26px;
    background:
        radial-gradient(circle at top right, rgba(242, 105, 56, .14), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fff8ea 100%);
}

.checkout-kicker {
    display: inline-flex;
    width: max-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff0de;
    color: #f26938;
    font-weight: 900;
    margin-bottom: 10px;
}

.checkout-hero h1 {
    margin: 0 0 10px;
    color: #1f4e79;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -.8px;
}

.checkout-hero p {
    margin: 0;
    color: #5f6f7f;
    line-height: 1.65;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
    align-items: start;
}

.checkout-card {
    border-radius: 28px;
    padding: 28px;
}

.card-title {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.card-title > span {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #1f4e79;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 20px rgba(31,78,121,.18);
}

.card-title.small > span {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 12px;
}

.card-title h2 {
    margin: 0 0 4px;
    color: #1f4e79;
    font-size: 1.45rem;
}

.card-title p {
    margin: 0;
    color: #68798a;
}

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

.field {
    display: grid;
    gap: 8px;
}

.field.full {
    margin-top: 16px;
}

.field label {
    color: #1f4e79;
    font-weight: 900;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #eadfc8;
    background: #fffdf7;
    color: #102033;
    border-radius: 16px;
    padding: 0 15px;
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.field input,
.field select {
    min-height: 52px;
}

.field textarea {
    min-height: 120px;
    padding-top: 14px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #f26938;
    box-shadow: 0 0 0 4px rgba(242,105,56,.12);
}

.delivery-card {
    margin-top: 24px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid #eadfc8;
    background:
        radial-gradient(circle at top right, rgba(47,93,80,.10), transparent 34%),
        #fff8ea;
}

.delivery-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.delivery-option {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid #eadfc8;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.delivery-option:hover {
    transform: translateY(-2px);
    border-color: rgba(242,105,56,.55);
    box-shadow: 0 14px 30px rgba(31,78,121,.08);
}

.delivery-option input {
    margin-top: 3px;
    accent-color: #f26938;
}

.delivery-option strong {
    display: block;
    color: #1f4e79;
    font-weight: 900;
}

.delivery-option small {
    display: block;
    color: #66788a;
    line-height: 1.45;
    margin-top: 4px;
}

.delivery-extra {
    display: none;
    margin-top: 18px;
}

.delivery-extra.is-visible {
    display: block;
}

.delivery-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #e9f3ff;
    color: #1f4e79;
    font-weight: 800;
    line-height: 1.5;
}

.checkout-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff0ec;
    border: 1px solid #ffc9ba;
    color: #a33a1f;
    font-weight: 900;
}

.checkout-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 16px;
    border: 0;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    font: inherit;
}

.checkout-btn-primary {
    background: linear-gradient(135deg, #f26938 0%, #ff8b48 100%);
    color: #fff;
    box-shadow: 0 16px 28px rgba(242,105,56,.22);
}

.checkout-btn-light {
    background: #fff;
    color: #1f4e79;
    border: 1px solid #eadfc8;
}

.checkout-submit {
    width: 100%;
    margin-top: 20px;
}

.checkout-summary {
    position: sticky;
    top: 104px;
    background:
        radial-gradient(circle at top right, rgba(31,78,121,.08), transparent 30%),
        #fff;
}

.checkout-summary h2 {
    margin: 0 0 18px;
    color: #1f4e79;
    font-size: 2rem;
}

.summary-lines {
    display: grid;
    gap: 12px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #53677a;
    line-height: 1.4;
}

.summary-line strong {
    color: #102033;
    white-space: nowrap;
}

.summary-divider {
    height: 1px;
    background: #eadfc8;
    margin: 18px 0;
}

.shipping-line strong {
    color: #f26938;
}

.coordination-text {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff8ea;
    color: #66788a;
    line-height: 1.5;
}

.summary-total {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eadfc8;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
}

.summary-total span {
    color: #1f4e79;
    font-weight: 900;
    font-size: 1.2rem;
}

.summary-total strong {
    color: #2f5d50;
    font-size: 2.25rem;
    line-height: 1;
}

.summary-help {
    margin: 16px 0 0;
    color: #66788a;
    line-height: 1.6;
}

.checkout-success,
.checkout-empty {
    border-radius: 30px;
    padding: 44px 28px;
    text-align: center;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: #2f5d50;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
}

.checkout-success h2,
.checkout-empty h2 {
    margin: 0 0 10px;
    color: #1f4e79;
    font-size: 2rem;
}

.checkout-success p,
.checkout-empty p {
    margin: 0 auto;
    max-width: 620px;
    color: #66788a;
    line-height: 1.7;
}

.checkout-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 980px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }
}

@media (max-width: 720px) {
    .woody-checkout-page {
        padding: 24px 0 56px;
    }

    .checkout-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
        border-radius: 24px;
    }

    .checkout-hero .checkout-btn {
        width: 100%;
    }

    .checkout-card {
        padding: 22px;
        border-radius: 24px;
    }

    .checkout-grid,
    .delivery-options {
        grid-template-columns: 1fr;
    }

    .summary-total strong {
        font-size: 1.9rem;
    }
}
