/*
 * Manual catalogue storefront (/batteries, /snow-socks and their product
 * pages) — loaded by resources/views/front/manual/* together with rims.css,
 * whose .rims-page / .rim-detail rules (card grid, facets, chips, sort,
 * detail layout) are reused as they are. This sheet adds only what the rims
 * pages do not have: the size finder, the code search, the sold-out badge,
 * the installation-fee line and the related-products strip. Plain CSS, no
 * build step; every selector is scoped under .mp-page or .mp-detail.
 * Action controls are <button>s: custom.css paints every <a> red.
 */

/* ------------------------------------------------------------ finder / search */

.mp-page .mp-finder,
.mp-page .mp-search-form {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.mp-page .mp-finder-title {
    cursor: default;
}
.mp-page .mp-finder-title::after {
    content: none;
}
.mp-page .mp-finder-row {
    display: flex;
    gap: 6px;
    margin: 6px 0;
}
.mp-page .mp-finder-field {
    flex: 1 1 0;
    margin: 0;
    color: #fff;
    font-size: 12px;
}
.mp-page .mp-finder-field span {
    display: block;
    margin-bottom: 2px;
}
.mp-page .mp-finder-field select,
.mp-page .mp-search-row input {
    height: 34px;
    padding: 4px 6px;
    font-size: 14px;
}
.mp-page .mp-finder-submit,
.mp-page .mp-search-submit {
    display: block;
    width: 100%;
    padding: 6px 10px;
    background: linear-gradient(180deg, #464647 0, #010101);
    color: #fff;
    box-shadow: inset 0 0 0 1px #707070;
    font-size: 14px;
}
.mp-page .mp-finder-submit:hover,
.mp-page .mp-finder-submit:focus,
.mp-page .mp-search-submit:hover,
.mp-page .mp-search-submit:focus {
    color: #fff;
    box-shadow: inset 0 0 0 1px #e95005;
}
.mp-page .mp-search-label {
    display: block;
    margin: 0 0 4px;
    color: #fff;
    font-weight: 700;
}
.mp-page .mp-search-row {
    display: flex;
    gap: 6px;
}
.mp-page .mp-search-row input {
    flex: 1 1 auto;
    min-width: 0;
}
.mp-page .mp-search-submit {
    width: auto;
    flex: 0 0 auto;
}
.mp-page .mp-finder-result {
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 4px;
    background: #e6f4ea;
    color: #1b4332;
}
.mp-page .mp-finder-result a {
    color: #1b4332 !important;
    text-decoration: underline;
}
.mp-page .mp-finder-nomatch {
    background: #fff3cd;
    color: #664d03;
}
.mp-page .mp-finder-nomatch a {
    color: #664d03 !important;
}

/* ------------------------------------------------------------------- cards */

.mp-page .mp-name {
    font-size: 14px;
    font-weight: 400;
    white-space: normal;
}
.mp-page .mp-box-soldout .result-image {
    opacity: .6;
}
.mp-page .mp-soldout-badge,
.mp-detail .mp-soldout-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(201, 4, 1, .12);
}
/* availability as text (the shop's own count, not a supplier-scaled bar) */
.mp-page .mp-availability,
.mp-detail .mp-availability {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    color: #1e7e34;
    background: rgba(30, 126, 52, .12);
}
.mp-page .mp-soldout-note {
    margin: 8px 0 0;
    font-size: 12px;
    opacity: .85;
}

/* ------------------------------------------------------------------ detail */

.mp-detail .mp-vat-note {
    margin: 2px 0 8px;
    font-size: 12px;
    opacity: .8;
}
.mp-detail .mp-install-line {
    margin: 12px 0 0;
    padding: 8px 12px;
    border-left: 4px solid #e95005;
    background: rgba(255, 255, 255, .06);
    font-size: 14px;
}
/* battery pages: warranty / recycling notice under the price and availability block */
.mp-detail .mp-battery-notice {
    margin: 12px 0 0;
    padding: 8px 12px;
    border-left: 4px solid #e95005;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 13px;
}
.mp-detail .mp-related-title {
    margin: 20px 0 8px;
    font-size: 18px;
}
.mp-detail .mp-related {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mp-detail .mp-related-item {
    flex: 1 1 160px;
    max-width: 220px;
}
.mp-detail .mp-related-item a {
    display: block;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 4px;
    color: #fff !important;
    text-decoration: none;
}
.mp-detail .mp-related-item a:hover {
    border-color: #e95005;
}
.mp-detail .mp-related-image {
    display: block;
    height: 90px;
    margin-bottom: 6px;
    background: #fff center / contain no-repeat;
    border-radius: 3px;
}
.mp-detail .mp-related-image.rim-image-none {
    background: repeating-linear-gradient(45deg, #3a3a3a, #3a3a3a 6px, #2e2e2e 6px, #2e2e2e 12px);
}
.mp-detail .mp-related-name {
    display: block;
    font-size: 13px;
    line-height: 1.3;
}
.mp-detail .mp-related-price {
    display: block;
    margin-top: 4px;
    font-weight: 700;
}

/* SEO micro: the product image is a real <img> (alt text, image search) inside the same fixed box the
   background image used — the box keeps its size, the image is contained, so nothing moves while it loads */
.mp-page .rim-box .result-image.mp-image-box,
.mp-detail .rim-detail-image.mp-image-box,
.mp-detail .mp-related-image.mp-image-box {
    overflow: hidden;
}
.mp-page .mp-image-box .mp-img,
.mp-detail .mp-image-box .mp-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50% 50%;
}

/* operator content: short / long description, category intro / guide (h2, h3, p, ul, ol, li, strong, em, br, a) */
.mp-content > :last-child {
    margin-bottom: 0;
}
.mp-detail .mp-short {
    margin-top: 12px;
    font-size: .95rem;
}
.mp-detail .mp-long {
    margin: 18px 0 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}
/* The category intro / guide sit on the bare page (no .ggrad card), where they inherited Bootstrap's body
   #212529 on the dark main gradient (custom.css .py-4, #4B4B4B -> #141313): 1.2-1.8:1, unreadable. They get
   the product page's card (custom.css .ggrad: rgba(0,0,0,.3)) and every operator block an explicit palette:
   body #e0e0e0 = 9.4:1 at the lightest point of that card (#343434) and 14.7:1 at the darkest (#0e0d0d);
   headings #fff; links the footer red (custom.css a, layouts/app.blade.php footer), bold and underlined
   since that red is only 2.1-3.2:1 here; list markers #fff. Font sizes unchanged. */
.mp-page .mp-category-content {
    padding: 14px 18px;
    background: rgba(0, 0, 0, .3);
}
.mp-page .mp-category-intro {
    margin-bottom: 16px;
}
.mp-page .mp-category-guide {
    margin-top: 24px;
}
.mp-page .mp-category-content > :first-child {
    margin-top: 0;
}
.mp-content,
.mp-content p,
.mp-content li {
    color: #e0e0e0;
}
.mp-content h2,
.mp-content h3,
.mp-content strong {
    color: #fff;
}
.mp-content h2 {
    margin: 1.1rem 0 .5rem;
    font-size: 1.3rem;
}
.mp-content h3 {
    margin: 1rem 0 .4rem;
    font-size: 1.1rem;
}
.mp-content ul,
.mp-content ol {
    padding-left: 1.4rem;
}
.mp-content li::marker {
    color: #fff;
}
.mp-content a {
    color: #C90401 !important;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .mp-page .mp-finder-row {
        flex-wrap: wrap;
    }
    .mp-page .mp-finder-field {
        flex: 1 1 30%;
    }
    .mp-detail .mp-related-item {
        max-width: none;
    }
}

/* Checkout step 2, "Payment & Order Placement" panel: the battery fitting fee block.
   Its own full-width row (.mp-install-fee-row), so the label no longer
   wraps inside the narrow totals column. Rendered only for a battery cart. */
.mp-install-fee-row {
    margin-top: 8px;
}
.mp-install-fee {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 12px 0 4px;
    padding: 10px 14px;
    text-align: left;
    color: inherit;
    border-left: 4px solid #e95005;
    background: rgba(255, 255, 255, .08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}
.mp-install-fee-label {
    flex: 1 1 auto;
    margin: 0;
    font-weight: 700;
    cursor: pointer;
    color: inherit;
}
.mp-install-fee-label input {
    margin-right: 6px;
}
.mp-install-fee-sum {
    white-space: nowrap;
    font-weight: 700;
}
/* the fitting waives the manual-product shipping: one line under the checkbox while it is ticked */
.mp-install-fee-note {
    flex: 1 1 100%;
    font-size: 13px;
}
