/* Escala comun de titulos en todas las paginas de la tienda. */
:root {
    --n38-heading-1: clamp(29.4px, 4.2vw, 53.2px);
    --n38-heading-2: clamp(26px, 2.6vw, 36px);
    --n38-heading-3: clamp(20px, 1.8vw, 24px);
}

html body main h1 {
    font-size: var(--n38-heading-1) !important;
    line-height: 1.12;
    letter-spacing: -.04em;
}

html body main h2 {
    font-size: var(--n38-heading-2) !important;
    line-height: 1.18;
    letter-spacing: -.035em;
}

html body main h3 {
    font-size: var(--n38-heading-3) !important;
    line-height: 1.25;
}

/* Ambas direcciones comparten las filas de titulo y contenido. */
body .woocommerce-customer-details .addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
    align-items: stretch;
    margin-top: 28px;
}

body .woocommerce-customer-details .addresses::before,
body .woocommerce-customer-details .addresses::after {
    display: none;
}

body .woocommerce-customer-details .addresses > .woocommerce-column {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
}

body .woocommerce-customer-details .addresses .woocommerce-column__title {
    align-self: end;
    margin: 0;
}

body .woocommerce .woocommerce-customer-details address {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 0;
    font-style: normal;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

body .woocommerce-customer-details address p:last-child {
    margin-bottom: 0;
}

body .woocommerce-order-details {
    margin-top: 32px;
}

body .woocommerce-order-details .shop_table td.product-name {
    padding: 16px;
}

body .woocommerce-order-details .n38-order-line-image {
    display: block;
    float: left;
    width: 64px;
    height: 80px;
    margin: 0 16px 0 0;
    background: #fff;
}

body .woocommerce-order-details .n38-order-line-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

body .woocommerce-order-details .shop_table td.product-name::after {
    content: "";
    display: block;
    clear: both;
}

body .woocommerce-order-details .wc-item-meta {
    overflow: hidden;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

body .woocommerce-order-details .wc-item-meta p {
    margin: 0;
}

@supports not (grid-template-rows: subgrid) {
    body .woocommerce-customer-details .addresses > .woocommerce-column {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    body .woocommerce-customer-details .woocommerce-column__title {
        min-height: 2.36em;
        width: 100%;
    }
    body .woocommerce-customer-details address {
        flex: 1;
    }
}

@media (max-width: 760px) {
    body .woocommerce-customer-details .addresses {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    body .woocommerce-customer-details .addresses > .woocommerce-column {
        margin-bottom: 20px;
    }
}

@media (max-width: 599px) {
    body .woocommerce-order-details .shop_table td.product-name {
        padding: 12px 8px;
    }
    body .woocommerce-order-details .n38-order-line-image {
        width: 48px;
        height: 64px;
        margin-right: 10px;
    }
}
