/* productreplacement — front-office block */

.replacement-block {
    border: 2px solid #f48720;
    background: #fff8f0;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
}

.replacement-block__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 16px;
}

.replacement-block__card {
    display: block;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
}

.replacement-block__card:hover {
    box-shadow: 0 4px 16px rgba(244, 135, 32, .3);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

/* Image on its own row, large and centered */
.replacement-block__img-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.replacement-block__img {
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #f0e8df;
}

/* Name + price + CTA row */
.replacement-block__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.replacement-block__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.replacement-block__name {
    font-weight: 600;
    font-size: 1.4rem;
    color: #333;
    line-height: 1.35;
}

.replacement-block__price {
    font-weight: 700;
    font-size: 1.6rem;
    color: #f48720;
}

.replacement-block__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 28px;
    background: #f48720;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s;
}

.replacement-block__card:hover .replacement-block__cta {
    background: #e07610;
}

.replacement-block__message {
    margin: 14px 0 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.5;
}

/* ---- Hide ALL purchase elements when product is replaced ---- */
.product-is-replaced .pdp-card,
.product-is-replaced .pdp-meta-box,
.product-is-replaced .product-availability-inline {
    display: none !important;
}
