.product-image-container img {
    vertical-align : middle;
    cursor         : pointer;
}
.image-thumb-container .thumb-image {
    display        : inline-block;
    vertical-align : top;
}
.image-thumb-container {
    white-space : nowrap;
}

.product-view.image-view[no-of-column] .content.product-content {
    align-items: start;
}

.product-view.image-view[no-of-column] .content.product-content .product-name {
    text-align: center;
}
.product-view.image-view[no-of-column] .content.product-content .product-image-link {
    display  : block;
    width    : 100%;
}
.product-view.image-view[no-of-column] .content.product-content .product-image {
    height: 150px !important;
}
.product-view.image-view[no-of-column] .content.product-content .product-image img {
    display   : block;
    max-width : 100%;
    width     : 100%;
    height    : 150px;
    object-fit: contain;
}

/* Newsletter widget — inline (inplace) design */
.widget-newsletter .newsletter.inplace .form-row {
    margin: 0;
    float: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
}
.widget-newsletter .newsletter.inplace .form-row ~ .form-row {
    margin-top: 16px;
}
.widget-newsletter .newsletter.inplace label {
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #000000;
    margin: 0 0 6px;
    display: block;
    width: auto;
}
.widget-newsletter .newsletter.inplace .form-row.button-container label {
    display: none;
}
.widget-newsletter .newsletter.inplace input[type="text"] {
    height: 40px;
    width: 100%;
    border: 1px solid #d5d5d5;
    padding: 5px 15px;
    font-size: 14px;
    box-sizing: border-box;
    display: block;
    background: #ffffff;
    border-radius: 0;
}
.widget-newsletter .newsletter.inplace .newsletter-subscription {
    display: block;
    height: 45px;
    width: 100%;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: #000000;
    border: none;
    cursor: pointer;
    border-radius: 0;
    padding: 0;
}
.widget-newsletter .newsletter.inplace .newsletter-subscription:hover {
    background: #333333;
}

/* Login widget design */
.widget-login .login-form {
    width: 100%;
}
.widget-login .login-form .form-row {
    margin: 0;
    float: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
}
.widget-login .login-form .form-row ~ .form-row {
    margin-top: 16px;
}
.widget-login .login-form label {
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #000000;
    margin: 0 0 6px;
    display: block;
    width: auto;
}
.widget-login .login-form input[type="text"],
.widget-login .login-form input[type="password"],
.widget-login .login-form input[type="email"] {
    height: 40px;
    width: 100%;
    border: 1px solid #d5d5d5;
    padding: 5px 15px;
    font-size: 14px;
    box-sizing: border-box;
    display: block;
    background: #ffffff;
    border-radius: 0;
}
.widget-login .login-form .submit-row {
    float: none;
}
.widget-login .login-form .login-button {
    display: block;
    height: 45px;
    width: 100%;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: #000000;
    border: none;
    cursor: pointer;
    border-radius: 0;
    padding: 0;
}
.widget-login .login-form .login-button:hover {
    background: #333333;
}
.widget-login .login-form .form-row.remember-forget-pass {
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-login .login-form .remember-forget-pass .remember-label {
    font-size: 13px;
    color: #3C3C3C;
}
.widget-login .login-form input[type="checkbox"] {
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0;
}
.widget-login .login-form .remember-forget-pass .lost-password {
    margin-left: auto;
}
.widget-login .login-form .remember-forget-pass .lost-password a {
    color: #3C3C3C;
    font-size: 13px;
    text-decoration: underline;
}
.widget-login .login-form .remember-forget-pass .lost-password a:hover {
    color: #000000;
}
.widget-login .login-form .account-register a {
    color: #3C3C3C;
    font-size: 13px;
}
.widget-login .login-form .account-register a:hover {
    color: #000000;
}

/* Quantity stepper — horizontal [−][input][+] layout for auto-page product */
.widget-addCart .stepper {
    display: inline-flex;
    align-items: stretch;
    width: auto;
    height: 44px;
    overflow: visible;
    border: 1px solid #000000;
    border-radius: 4px;
    background: #ffffff;
    box-sizing: border-box;
}

.widget-addCart .stepper .stepper-input {
    order: 2;
    width: 48px;
    height: 100%;
    padding: 0;
    text-align: center;
    border: none;
    border-radius: 0;
    font-size: 17px;
    font-weight: 700;
    background: #ffffff;
    box-sizing: border-box;
    -moz-appearance: textfield;
    outline: none;
}

.widget-addCart .stepper .stepper-input::-webkit-inner-spin-button,
.widget-addCart .stepper .stepper-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.widget-addCart .stepper .stepper-arrow {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 100% !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: none;
    border-radius: 0;
    cursor: pointer;
    box-sizing: border-box;
    overflow: visible;
    text-indent: 0 !important;
    font-size: 0;
}

.widget-addCart .stepper .stepper-arrow.up  { order: 3; border-radius: 0 3px 3px 0; }
.widget-addCart .stepper .stepper-arrow.down { order: 1; border-radius: 3px 0 0 3px; }

.widget-addCart .stepper .stepper-arrow.up::before,
.widget-addCart .stepper .stepper-arrow.down::before {
    display     : block;
    font-size   : 20px;
    line-height : 1;
    color       : #333333 !important;
    font-family : Arial, sans-serif;
    font-weight : 400;
    text-indent : 0;
}

.widget-addCart .stepper .stepper-arrow.up::before   { content: '+'; }
.widget-addCart .stepper .stepper-arrow.down::before { content: '−'; }

.widget-addCart .stepper .stepper-arrow:hover {
    background: #f5f5f5 !important;
}

/* ── Product image responsive in split-layout columns ───────────────────────
 * ApplicationTagLib generates fixed-pixel CSS for .product-detail-width /
 * .product-detail-height (e.g. width:900px). Inside a 50% column that is
 * ~600px wide, the 900px container overflows. These rules make the image box
 * fill its column and scale proportionally when the column is resized.
 * Scoped to the split-layout column markers so regular standalone product
 * detail pages are not affected:
 *   - .no-fixed-left / .no-fixed-right  → FEE-native split columns
 *   - .l-fixed-* / .r-fixed-*           → LEGACY (old admin-editor) split columns
 * The legacy markers were added so old-tenant product pages (which store an
 * l-fixed/r-fixed body, passed through verbatim by AutoPageService) get the
 * same fluid image behaviour — otherwise the fixed-pixel image (e.g. 900px)
 * overflows AND keeps the column from shrinking on drag-resize.
 * Specificity 0,3,0 beats .product-detail-width specificity 0,1,0.
 * ────────────────────────────────────────────────────────────────────────── */
.no-fixed-left .image-preview-box.product-detail-view,
.no-fixed-right .image-preview-box.product-detail-view,
.l-fixed-left .image-preview-box.product-detail-view,
.l-fixed-right .image-preview-box.product-detail-view,
.r-fixed-left .image-preview-box.product-detail-view,
.r-fixed-right .image-preview-box.product-detail-view {
    width:     100%;
    max-width: 100%;
    height:    auto;
}
.no-fixed-left #bmui-tab-video-preview,
.no-fixed-right #bmui-tab-video-preview,
.l-fixed-left #bmui-tab-video-preview,
.l-fixed-right #bmui-tab-video-preview,
.r-fixed-left #bmui-tab-video-preview,
.r-fixed-right #bmui-tab-video-preview {
    max-width: 100%;
}
.no-fixed-left .my-video,
.no-fixed-right .my-video,
.l-fixed-left .my-video,
.l-fixed-right .my-video,
.r-fixed-left .my-video,
.r-fixed-right .my-video {
    max-height: 100%;
    max-width: 100%;
}
.no-fixed-left .product-detail-view img,
.no-fixed-right .product-detail-view img,
.no-fixed-left .product-detail-view video,
.no-fixed-right .product-detail-view video,
.l-fixed-left .product-detail-view img,
.l-fixed-right .product-detail-view img,
.l-fixed-left .product-detail-view video,
.l-fixed-right .product-detail-view video,
.r-fixed-left .product-detail-view img,
.r-fixed-right .product-detail-view img,
.r-fixed-left .product-detail-view video,
.r-fixed-right .product-detail-view video {
    max-width:  100%;
    max-height: none;
    width:      100%;
    height:     auto;
    object-fit: contain;
}

/* Thumbnail strip: also scale inside columns */
.no-fixed-left .multi-image-scroll-wrapper,
.no-fixed-right .multi-image-scroll-wrapper,
.l-fixed-left .multi-image-scroll-wrapper,
.l-fixed-right .multi-image-scroll-wrapper,
.r-fixed-left .multi-image-scroll-wrapper,
.r-fixed-right .multi-image-scroll-wrapper {
    max-width: 100%;
}

/* ── Fluid column must be allowed to shrink below its image's intrinsic size ──
 * In a legacy split, ONE side is fixed (flex:0 0 Npx) and the other is fluid
 * (flex:1 1 0):
 *   .l-fixed-container → left FIXED,  right FLUID  (.l-fixed-right)
 *   .r-fixed-container → right FIXED, left FLUID   (.r-fixed-left)
 * A flex item defaults to min-width:auto, so it will NOT shrink below its
 * content's intrinsic width. A large product image (e.g. details_width 900px,
 * or the natural image size) then forces the FLUID column wider than its flex
 * share — overflowing the 1400px container. The FIXED side has an explicit
 * basis so it never does this, which is why the fixed side looked fine and the
 * fluid side blew past 1400px. min-width:0 lets the fluid column shrink to its
 * flex share, so the image's width:100% resolves against a bounded column. */
.l-fixed-right,
.r-fixed-left {
    min-width: 0;
}

/* ── Editor-only body shrink ───────────────────────────────────────────────
 * Layout.css ships a fixed `.body > .widget-container { width: 1400px }` (or
 * the legacy 1000px) to centre content at a max readable width on the live
 * storefront. Inside the FEE editor that pixel width prevents the body canvas
 * from shrinking when the right panel opens, so the section overflows past
 * the iframe edge and gets clipped.
 *
 * Scope is intentionally narrow:
 *   - `body.fee` → editor iframe only (class is absent on live storefront,
 *     so the layout's intended 1400px max width is preserved there).
 *   - `product.css` itself is loaded only for product auto-page rendering,
 *     so other auto-page types and regular pages are unaffected.
 * ──────────────────────────────────────────────────────────────────────── */
body.fee .body > .widget-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}