/* Gallos Osuna — Order received / Thank you */

.woocommerce-order-received .woocommerce {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.order-received-shell {
    width: 100%;
    padding: clamp(22px, 4vw, 48px) 0 56px;
}

.order-received-hero,
.order-received-status {
    max-width: 820px;
    margin: 0 auto 24px;
    text-align: center;
}

.order-received-hero__icon,
.order-received-status__icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--estado-disponible-bg);
    color: var(--verde);
}

.order-received-hero__icon svg,
.order-received-status__icon svg {
    width: 36px;
    height: 36px;
}

.order-received-hero h1,
.order-received-status h1 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 5vw, 3.35rem);
}

.order-received-hero__lead {
    max-width: 660px;
    margin: 0 auto;
    color: var(--texto-suave);
    font-size: clamp(1rem, 2.4vw, 1.18rem);
}

.order-received-eyebrow {
    margin: 0 0 5px;
    color: var(--rojo);
    font-family: var(--fuente-titulos);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.order-received-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1000px;
    margin: 28px auto 34px;
    overflow: hidden;
    background: var(--blanco);
    border: 2px solid var(--borde);
    border-radius: var(--radio);
    box-shadow: 0 8px 26px rgba(26, 19, 16, .06);
}

.order-received-summary__item {
    min-width: 0;
    padding: 18px 20px;
    border-right: 1px solid var(--borde);
}

.order-received-summary__item:last-child {
    border-right: 0;
}

.order-received-summary__item span,
.order-customer-card__grid span {
    display: block;
    margin-bottom: 4px;
    color: var(--texto-suave);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.order-received-summary__item strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--negro);
    font-size: 1.08rem;
}

.order-received-section,
.order-proof-card {
    margin-bottom: 24px;
    background: var(--blanco);
    border: 2px solid var(--borde);
    border-radius: var(--radio);
    padding: clamp(18px, 3vw, 28px);
}

.order-received-section__heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.order-received-section__heading h2,
.order-proof-card h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.order-received-section__icon {
    display: grid;
    flex: 0 0 46px;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--crema-suave);
    color: var(--rojo);
}

.order-received-section__icon svg {
    width: 23px;
    height: 23px;
}

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

.order-gallo-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 2px solid var(--borde);
    border-radius: var(--radio);
    background: var(--crema);
}

.order-gallo-card__image {
    min-height: 220px;
    background: var(--crema-suave);
}

.order-gallo-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-gallo-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 220px;
    place-items: center;
    color: var(--rojo);
}

.order-gallo-card__placeholder svg {
    width: 54px;
    height: 54px;
}

.order-gallo-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 18px;
}

.order-gallo-card__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.order-gallo-card__topline h3 {
    margin: 0;
    font-size: 1.25rem;
}

.order-gallo-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 18px 0;
}

.order-gallo-card__meta div {
    min-width: 0;
}

.order-gallo-card__meta dt {
    color: var(--texto-suave);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.order-gallo-card__meta dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.order-gallo-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--borde);
}

.order-gallo-card__footer strong {
    margin-left: auto;
    color: var(--rojo);
    font-size: 1.18rem;
}

.order-received-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 24px;
    align-items: stretch;
}

.order-received-layout > * {
    margin-bottom: 24px;
}

.order-totals-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--borde);
}

.order-totals-list > div:last-child {
    border-bottom: 0;
}

.order-totals-list__total {
    margin-top: 6px;
    padding-top: 18px !important;
    font-size: 1.22rem;
}

.order-totals-list__total strong {
    color: var(--rojo);
    font-size: 1.35rem;
}

.order-proof-card {
    position: relative;
    overflow: hidden;
    background: #f0fbf4;
    border-color: rgba(31, 122, 61, .28);
}

.order-proof-card::after {
    position: absolute;
    right: -34px;
    bottom: -46px;
    width: 150px;
    height: 150px;
    border: 22px solid rgba(37, 211, 102, .08);
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

.order-proof-card__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: var(--blanco);
}

.order-proof-card__icon svg {
    width: 28px;
    height: 28px;
}

.order-proof-card p:not(.order-received-eyebrow) {
    color: var(--texto-suave);
}

.order-proof-card__button {
    position: relative;
    z-index: 1;
    margin: 18px 0 10px;
}

.order-proof-card__button svg,
.order-received-actions .btn svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.order-proof-card small {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--texto-suave);
    line-height: 1.4;
}

.order-proof-card__notice {
    margin-top: 18px;
    padding: 12px 14px;
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: var(--radio-chico);
}

.order-customer-card__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.order-customer-card__grid > div {
    min-width: 0;
    padding: 14px;
    background: var(--crema);
    border-radius: var(--radio-chico);
}

.order-customer-card__grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.order-received-status--failed .order-received-status__icon {
    background: var(--estado-vendido-bg);
    color: var(--rojo);
}

.order-received-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 24px auto;
}

/* Los bloques que WooCommerce/GSA insertan mediante hooks conservan el diseño. */
.woocommerce-order-received .woocommerce-bacs-bank-details,
.woocommerce-order-received .wc-bacs-bank-details,
.woocommerce-order-received .woocommerce-order-overview,
.woocommerce-order-received .gsa-post-order-message,
.woocommerce-order-received .gsa-contact-block {
    max-width: 1000px;
    margin: 0 auto 24px;
}

.woocommerce-order-received .woocommerce-bacs-bank-details,
.woocommerce-order-received .wc-bacs-bank-details {
    padding: clamp(18px, 3vw, 28px);
    background: var(--blanco);
    border: 2px solid var(--borde);
    border-radius: var(--radio);
}

@media (max-width: 980px) {
    .order-received-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-received-summary__item:nth-child(2) {
        border-right: 0;
    }

    .order-received-summary__item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--borde);
    }

    .order-gallo-grid,
    .order-received-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .woocommerce-order-received .woocommerce {
        width: min(100% - 20px, 1180px);
    }

    .order-received-shell {
        padding-top: 18px;
    }

    .order-received-summary {
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    .order-received-summary__item,
    .order-received-summary__item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--borde);
    }

    .order-received-summary__item:last-child {
        border-bottom: 0;
    }

    .order-gallo-card {
        grid-template-columns: 1fr;
    }

    .order-gallo-card__image,
    .order-gallo-card__placeholder {
        min-height: 0;
        aspect-ratio: 16 / 11;
    }

    .order-gallo-card__topline {
        flex-direction: column;
    }

    .order-gallo-card__meta {
        grid-template-columns: 1fr 1fr;
    }

    .order-customer-card__grid {
        grid-template-columns: 1fr;
    }

    .order-received-section__heading {
        align-items: flex-start;
    }

    .order-proof-card__button {
        min-height: 58px;
        white-space: normal;
        line-height: 1.2;
    }
}

@media (max-width: 390px) {
    .order-gallo-card__meta {
        grid-template-columns: 1fr;
    }

    .order-gallo-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-gallo-card__footer strong {
        margin-left: 0;
    }
}

.prodimg_thumbnail img {
    width: 50px;
    border-radius: 100px;
}