/* Full product card: compact availability / price / cart row. */
.productdetails-view .vm-detail-purchase-row {
    clear: both !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
}

.productdetails-view .vm-detail-purchase-availability {
    margin: 0 0 2px !important;
    color: #f4d875 !important;
    font-family: Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

.productdetails-view .vm-detail-price-cart-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
}

.productdetails-view .vm-detail-price-zone {
    min-width: 0 !important;
    flex: 1 1 180px !important;
}

.productdetails-view .vm-detail-price-zone .vm-final-price-only {
    margin: 0 !important;
}

.productdetails-view .vm-detail-price-zone .vm-final-price-only .PricesalesPrice.vm-display {
    display: inline-block !important;
    margin: 0 !important;
    color: #a8a8a8 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.productdetails-view .vm-detail-price-zone .vm-final-price-only .vm-price-desc {
    margin-right: 6px !important;
    color: #a8a8a8 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
}

.productdetails-view .vm-detail-price-zone .vm-final-price-only .PricesalesPrice .PricesalesPrice,
.productdetails-view .vm-detail-price-zone .vm-final-price-only > .PricesalesPrice > .PricesalesPrice {
    color: #a8a8a8 !important;
    white-space: nowrap !important;
}

.productdetails-view .vm-detail-price-cart-row > .vm-detail-own-cart {
    flex: 0 0 152px !important;
    width: 152px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.productdetails-view .vm-detail-price-cart-row > .vm-detail-own-cart .addtocart-area,
.productdetails-view .vm-detail-price-cart-row > .vm-detail-own-cart form,
.productdetails-view .vm-detail-price-cart-row > .vm-detail-own-cart .addtocart-bar {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.productdetails-view .vm-detail-price-cart-row > .vm-detail-own-cart .vm-detail-quick-add-wrapper,
.productdetails-view .vm-detail-price-cart-row > .vm-detail-own-cart .vm-detail-quick-add-button {
    display: block !important;
    width: 152px !important;
    min-width: 152px !important;
    margin: 0 !important;
}

.productdetails-view .vm-detail-native-stock {
    margin-top: 4px !important;
}

@media (max-width: 520px) {
    .productdetails-view .vm-detail-price-cart-row {
        flex-wrap: wrap !important;
    }

    .productdetails-view .vm-detail-price-cart-row > .vm-detail-own-cart {
        flex: 0 0 152px !important;
    }
}

@media (max-width: 350px) {
    .productdetails-view .vm-detail-price-cart-row > .vm-detail-own-cart {
        flex-basis: 100% !important;
        width: 100% !important;
    }

    .productdetails-view .vm-detail-price-cart-row > .vm-detail-own-cart .vm-detail-quick-add-wrapper,
    .productdetails-view .vm-detail-price-cart-row > .vm-detail-own-cart .vm-detail-quick-add-button {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Product condition badge + explanation on product details page. */
.productdetails-view .vm-detail-price-head {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    position: relative !important;
}

.productdetails-view .vm-detail-price-head > .PricesalesPrice.vm-display {
    flex: 0 0 auto !important;
}

.productdetails-view .vm-condition-explainer {
    position: relative !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.productdetails-view .vm-condition-explainer > summary {
    list-style: none !important;
}

.productdetails-view .vm-condition-explainer > summary::-webkit-details-marker {
    display: none !important;
}

.productdetails-view .vm-condition-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 112px !important;
    min-height: 26px !important;
    height: 26px !important;
    padding: 3px 7px 4px !important;
    border: 1px solid #8f720a !important;
    border-radius: 6px !important;
    background: linear-gradient(180deg, #f0d25f 0%, #d1a92b 100%) !important;
    color: #2f2604 !important;
    font-family: Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 1px 3px rgba(0,0,0,0.25) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.productdetails-view .vm-condition-badge:hover,
.productdetails-view .vm-condition-badge:focus {
    transform: translateY(-1px) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 3px 8px rgba(0,0,0,0.28) !important;
}

.productdetails-view .vm-condition-explainer[open] .vm-condition-badge {
    border-bottom-left-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

.productdetails-view .vm-condition-explainer__panel {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    z-index: 40 !important;
    width: min(430px, calc(100vw - 42px)) !important;
    margin: 0 !important;
}

.productdetails-view .vm-condition-explainer__panel-inner {
    padding: 14px 16px !important;
    border: 1px solid rgba(227, 190, 77, 0.55) !important;
    border-radius: 10px !important;
    background: #6b6b6b !important;
    color: #ececec !important;
    box-shadow: 0 10px 26px rgba(0,0,0,0.34) !important;
}

.productdetails-view .vm-condition-explainer__title {
    display: block !important;
    margin: 0 0 8px !important;
    color: #f0d25f !important;
    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.productdetails-view .vm-condition-explainer__panel-inner p {
    margin: 0 0 10px !important;
    color: #ececec !important;
    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

.productdetails-view .vm-condition-explainer__panel-inner p:last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 640px) {
    .productdetails-view .vm-condition-explainer {
        width: 100% !important;
    }

    .productdetails-view .vm-condition-badge {
        max-width: 100% !important;
    }

    .productdetails-view .vm-condition-explainer__panel {
        position: static !important;
        width: 100% !important;
        margin-top: 8px !important;
    }
}


/* Catalogue condition marker: same dimensions/design, lower-right of each card. */
.browse-view .product .vm-category-condition-badge {
    position: absolute !important;
    right: 8px !important;
    bottom: 8px !important;
    z-index: 7 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 112px !important;
    min-height: 26px !important;
    height: 26px !important;
    padding: 3px 7px 4px !important;
    overflow: hidden !important;
    border: 1px solid #8f720a !important;
    border-radius: 6px !important;
    background: linear-gradient(180deg, #f0d25f 0%, #d1a92b 100%) !important;
    color: #2f2604 !important;
    font-family: Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 1px 3px rgba(0,0,0,0.25) !important;
}

@media (max-width: 640px) {
    .browse-view .product .vm-category-condition-badge {
        right: 6px !important;
        bottom: 6px !important;
    }
}

/* 2.3.16.51 — category footer badge alignment and product brand presentation. */
.browse-view .product .vm-details-button.vm-category-card-footer {
    display: block !important;
}

.browse-view .product .vm-category-card-footer-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 26px !important;
    width: 100% !important;
}

.browse-view .product .vm-category-card-footer-row > a.product-details {
    display: inline-flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 26px !important;
}

.browse-view .product .vm-category-card-footer-row > .vm-category-condition-badge {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    flex: 0 0 112px !important;
    width: 112px !important;
    height: 26px !important;
    min-height: 26px !important;
    margin: 0 !important;
}

.productdetails-view .vm-product-brand {
    display: flex !important;
    align-items: baseline !important;
    gap: 9px !important;
    margin: 13px 0 5px !important;
    padding: 7px 11px 8px !important;
    border-left: 3px solid #d1a92b !important;
    border-radius: 0 6px 6px 0 !important;
    background: rgba(255, 255, 255, 0.055) !important;
    font-family: Arial, sans-serif !important;
}

.productdetails-view .vm-product-brand__label {
    flex: 0 0 auto !important;
    color: #b9b9b9 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.7px !important;
    text-transform: uppercase !important;
}

.productdetails-view .vm-product-brand__value {
    min-width: 0 !important;
    color: #f0d25f !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.1px !important;
    overflow-wrap: anywhere !important;
}

/* Fallback for products that use VM's manufacturer relation instead of the imported Brand field. */
.productdetails-view .manufacturer {
    margin: 15px 0 4px !important;
    padding: 7px 11px 8px !important;
    border-left: 3px solid #d1a92b !important;
    border-radius: 0 6px 6px 0 !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: #b9b9b9 !important;
    font-family: Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.7px !important;
    text-transform: uppercase !important;
}

.productdetails-view .manufacturer a,
.productdetails-view .manufacturer .manuModal {
    display: inline-block !important;
    margin-left: 7px !important;
    color: #f0d25f !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.1px !important;
    text-decoration: none !important;
    text-transform: none !important;
}

.productdetails-view .manufacturer a:hover,
.productdetails-view .manufacturer .manuModal:hover {
    color: #fff0a9 !important;
    text-decoration: underline !important;
}

@media (max-width: 480px) {
    .browse-view .product .vm-category-card-footer-row {
        gap: 6px !important;
    }

    .browse-view .product .vm-category-card-footer-row > .vm-category-condition-badge {
        flex-basis: 100px !important;
        width: 100px !important;
        font-size: 10px !important;
    }

    .productdetails-view .vm-product-brand__value,
    .productdetails-view .manufacturer a,
    .productdetails-view .manufacturer .manuModal {
        font-size: 16px !important;
    }
}

/* 2.3.16.54 — product state lives on the same line as the brand. */
.productdetails-view .vm-product-brand.vm-product-brand--with-condition {
    position: relative !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.productdetails-view .vm-product-brand.vm-product-brand--with-condition .vm-product-brand__value {
    flex: 0 1 auto !important;
}

.productdetails-view .vm-product-brand.vm-product-brand--with-condition .vm-condition-explainer {
    position: relative !important;
    flex: 0 0 auto !important;
    margin: 0 0 0 3px !important;
}

.productdetails-view .vm-product-brand.vm-product-brand--with-condition .vm-condition-badge {
    width: 112px !important;
    height: 26px !important;
    min-height: 26px !important;
}

.productdetails-view .vm-product-brand.vm-product-brand--with-condition .vm-condition-explainer__panel {
    right: 0 !important;
}

@media (max-width: 480px) {
    .productdetails-view .vm-product-brand.vm-product-brand--with-condition {
        flex-wrap: wrap !important;
    }

    .productdetails-view .vm-product-brand.vm-product-brand--with-condition .vm-condition-explainer {
        margin: 4px 0 0 !important;
    }
}
