/**
 * Product shortcode embeds (.shortcode_product) in editorial content.
 * Ported from legacy theme with vergleiche-next design tokens.
 */

.vgl-prose .shortcode_product,
.vgl-editorial-block .shortcode_product,
.vgl-checklist-page__body .shortcode_product {
    box-shadow: var(--vgl-shadow-md, 0 4px 14px rgba(15, 23, 42, 0.08));
    width: 520px;
    max-width: 100%;
    position: relative;
    background: var(--vgl-color-surface, #fff);
    border-radius: var(--vgl-radius-lg);
    overflow: hidden;
}

.vgl-prose .shortcode_product .merchant,
.vgl-editorial-block .shortcode_product .merchant,
.vgl-checklist-page__body .shortcode_product .merchant {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    min-height: 80px;
    padding: 14px 20px;
    transition: background-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.vgl-prose .shortcode_product .merchant:not(:last-child),
.vgl-editorial-block .shortcode_product .merchant:not(:last-child),
.vgl-checklist-page__body .shortcode_product .merchant:not(:last-child) {
    border-bottom: 1px solid var(--vgl-color-border);
}

.vgl-prose .shortcode_product .merchant_img,
.vgl-editorial-block .shortcode_product .merchant_img,
.vgl-checklist-page__body .shortcode_product .merchant_img {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 52px;
    max-width: 27%;
    width: 27%;
    margin-left: -4px;
    flex-shrink: 0;
}

.vgl-prose .shortcode_product .merchant_img img,
.vgl-editorial-block .shortcode_product .merchant_img img,
.vgl-checklist-page__body .shortcode_product .merchant_img img {
    display: block;
    max-height: 52px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.vgl-prose .shortcode_product .merchant_price,
.vgl-editorial-block .shortcode_product .merchant_price,
.vgl-checklist-page__body .shortcode_product .merchant_price {
    font-weight: 700;
    color: var(--vgl-color-accent);
    font-size: var(--vgl-font-size-base);
    padding-top: 13px;
    white-space: nowrap;
    position: relative;
    flex: 1 1 auto;
    text-align: center;
}

.vgl-prose .shortcode_product .merchant_button .button,
.vgl-editorial-block .shortcode_product .merchant_button .button,
.vgl-checklist-page__body .shortcode_product .merchant_button .button {
    display: inline-block;
    color: var(--vgl-color-text-inverse);
    background-color: var(--vgl-color-accent);
    padding: 12px;
    border-radius: var(--vgl-radius);
    width: 100%;
    height: 100%;
    font-size: var(--vgl-font-size-base);
    text-align: center;
}

.vgl-prose .shortcode_product .merchant_button,
.vgl-editorial-block .shortcode_product .merchant_button,
.vgl-checklist-page__body .shortcode_product .merchant_button {
    width: auto;
    min-width: 150px;
    text-align: right;
    flex-shrink: 0;
}

.vgl-prose .shortcode_product .merchant:hover,
.vgl-editorial-block .shortcode_product .merchant:hover,
.vgl-checklist-page__body .shortcode_product .merchant:hover {
    background-color: var(--vgl-color-bg-alt);
}

.vgl-prose .shortcode_product.center_shortcode,
.vgl-editorial-block .shortcode_product.center_shortcode,
.vgl-checklist-page__body .shortcode_product.center_shortcode {
    margin: var(--vgl-space-5) auto;
}

.vgl-prose .shortcode_product.left_shortcode,
.vgl-editorial-block .shortcode_product.left_shortcode,
.vgl-checklist-page__body .shortcode_product.left_shortcode {
    float: left;
    margin: var(--vgl-space-1) var(--vgl-space-5) var(--vgl-space-6) 0;
}

.vgl-prose .shortcode_product.right_shortcode,
.vgl-editorial-block .shortcode_product.right_shortcode,
.vgl-checklist-page__body .shortcode_product.right_shortcode {
    float: right;
    margin: var(--vgl-space-1) 0 var(--vgl-space-6) var(--vgl-space-5);
}

.vgl-prose .shortcode_product.full_shortcode,
.vgl-editorial-block .shortcode_product.full_shortcode,
.vgl-checklist-page__body .shortcode_product.full_shortcode {
    width: 100%;
    margin: var(--vgl-space-5) 0;
}

.vgl-prose .shortcode_product .prodmeta,
.vgl-editorial-block .shortcode_product .prodmeta,
.vgl-checklist-page__body .shortcode_product .prodmeta {
    padding: 4px 25px 10px 0;
    font-size: var(--vgl-font-size-sm);
    color: var(--vgl-color-text-muted);
    text-align: right;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.vgl-prose .shortcode_product .prodmeta a,
.vgl-editorial-block .shortcode_product .prodmeta a,
.vgl-checklist-page__body .shortcode_product .prodmeta a {
    color: var(--vgl-color-primary);
}

.vgl-prose .shortcode_product.show_image > .wrap,
.vgl-editorial-block .shortcode_product.show_image > .wrap,
.vgl-checklist-page__body .shortcode_product.show_image > .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
}

.vgl-prose .shortcode_product .prod_title,
.vgl-editorial-block .shortcode_product .prod_title,
.vgl-checklist-page__body .shortcode_product .prod_title {
    font-size: var(--vgl-font-size-lg);
    padding: 10px 4px 4px;
    width: 100%;
    display: block;
    text-align: center;
    color: var(--vgl-color-primary);
    text-decoration: none;
    font-weight: 700;
}

.vgl-prose .shortcode_product .prod_title:hover,
.vgl-editorial-block .shortcode_product .prod_title:hover,
.vgl-checklist-page__body .shortcode_product .prod_title:hover {
    color: var(--vgl-color-primary-hover);
}

.vgl-prose .shortcode_product.show_image:not(.full_shortcode),
.vgl-editorial-block .shortcode_product.show_image:not(.full_shortcode),
.vgl-checklist-page__body .shortcode_product.show_image:not(.full_shortcode) {
    width: 600px;
}

.vgl-prose .shortcode_product.hide_button:not(.full_shortcode),
.vgl-editorial-block .shortcode_product.hide_button:not(.full_shortcode),
.vgl-checklist-page__body .shortcode_product.hide_button:not(.full_shortcode) {
    width: 400px;
}

.vgl-prose .shortcode_product.hide_button:not(.full_shortcode) .merchant_img,
.vgl-editorial-block .shortcode_product.hide_button:not(.full_shortcode) .merchant_img,
.vgl-checklist-page__body .shortcode_product.hide_button:not(.full_shortcode) .merchant_img {
    width: 50%;
    max-width: 50%;
}

.vgl-prose .shortcode_product.hide_button:not(.full_shortcode) .left,
.vgl-editorial-block .shortcode_product.hide_button:not(.full_shortcode) .left,
.vgl-checklist-page__body .shortcode_product.hide_button:not(.full_shortcode) .left {
    width: 50%;
}

.vgl-prose .shortcode_product.show_image .left,
.vgl-editorial-block .shortcode_product.show_image .left,
.vgl-checklist-page__body .shortcode_product.show_image .left {
    width: 30%;
    text-align: center;
    position: relative;
    display: block;
    flex-shrink: 0;
}

.vgl-prose .shortcode_product.show_image .right,
.vgl-editorial-block .shortcode_product.show_image .right,
.vgl-checklist-page__body .shortcode_product.show_image .right {
    width: 70%;
    flex: 1 1 auto;
    min-width: 0;
}

.vgl-prose .shortcode_product.show_image .left,
.vgl-editorial-block .shortcode_product.show_image .left,
.vgl-checklist-page__body .shortcode_product.show_image .left {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.vgl-prose .shortcode_product.show_image .left img,
.vgl-editorial-block .shortcode_product.show_image .left img,
.vgl-checklist-page__body .shortcode_product.show_image .left img {
    display: block;
    max-height: calc(100% - 45px);
    max-width: calc(100% - 30px);
    width: auto;
    height: auto;
    position: static;
    margin: 0 auto;
    object-fit: contain;
}

.vgl-prose .shortcode_product img,
.vgl-editorial-block .shortcode_product img,
.vgl-checklist-page__body .shortcode_product img {
    margin: 0;
    border-radius: 0;
}

.vgl-prose .shortcode_product::after,
.vgl-editorial-block .shortcode_product::after,
.vgl-checklist-page__body .shortcode_product::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 1140px) {
    .vgl-prose .shortcode_product.left_shortcode.show_image:not(.hide_button),
    .vgl-prose .shortcode_product.right_shortcode.show_image:not(.hide_button),
    .vgl-editorial-block .shortcode_product.left_shortcode.show_image:not(.hide_button),
    .vgl-editorial-block .shortcode_product.right_shortcode.show_image:not(.hide_button),
    .vgl-checklist-page__body .shortcode_product.left_shortcode.show_image:not(.hide_button),
    .vgl-checklist-page__body .shortcode_product.right_shortcode.show_image:not(.hide_button) {
        float: none;
        margin: var(--vgl-space-5) auto;
    }
}

@media (max-width: 1080px) and (min-width: 770px) {
    .vgl-prose .shortcode_product.left_shortcode:not(.hide_button),
    .vgl-prose .shortcode_product.right_shortcode:not(.hide_button),
    .vgl-editorial-block .shortcode_product.left_shortcode:not(.hide_button),
    .vgl-editorial-block .shortcode_product.right_shortcode:not(.hide_button),
    .vgl-checklist-page__body .shortcode_product.left_shortcode:not(.hide_button),
    .vgl-checklist-page__body .shortcode_product.right_shortcode:not(.hide_button) {
        float: none;
        margin: var(--vgl-space-5) auto;
    }
}

@media (max-width: 890px) and (min-width: 770px) {
    .vgl-prose .shortcode_product.left_shortcode.hide_button,
    .vgl-prose .shortcode_product.right_shortcode.hide_button,
    .vgl-editorial-block .shortcode_product.left_shortcode.hide_button,
    .vgl-editorial-block .shortcode_product.right_shortcode.hide_button,
    .vgl-checklist-page__body .shortcode_product.left_shortcode.hide_button,
    .vgl-checklist-page__body .shortcode_product.right_shortcode.hide_button {
        float: none;
        margin: var(--vgl-space-5) auto;
    }
}

@media (max-width: 710px) {
    .vgl-prose .shortcode_product.left_shortcode,
    .vgl-prose .shortcode_product.right_shortcode,
    .vgl-editorial-block .shortcode_product.left_shortcode,
    .vgl-editorial-block .shortcode_product.right_shortcode,
    .vgl-checklist-page__body .shortcode_product.left_shortcode,
    .vgl-checklist-page__body .shortcode_product.right_shortcode {
        float: none;
        margin: var(--vgl-space-5) auto;
    }

    .vgl-prose .shortcode_product.show_image > .wrap,
    .vgl-editorial-block .shortcode_product.show_image > .wrap,
    .vgl-checklist-page__body .shortcode_product.show_image > .wrap {
        flex-wrap: wrap !important;
    }

    .vgl-prose .shortcode_product.show_image .left,
    .vgl-editorial-block .shortcode_product.show_image .left,
    .vgl-checklist-page__body .shortcode_product.show_image .left {
        width: 100% !important;
        max-height: 250px !important;
    }

    .vgl-prose .shortcode_product.show_image .right,
    .vgl-editorial-block .shortcode_product.show_image .right,
    .vgl-checklist-page__body .shortcode_product.show_image .right {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .vgl-prose .shortcode_product .merchant_button,
    .vgl-editorial-block .shortcode_product .merchant_button,
    .vgl-checklist-page__body .shortcode_product .merchant_button {
        width: 120px;
        min-width: auto;
    }

    .vgl-prose .shortcode_product .merchant_img,
    .vgl-editorial-block .shortcode_product .merchant_img,
    .vgl-checklist-page__body .shortcode_product .merchant_img {
        max-width: 100px;
    }
}
