// Mobile .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) { #minicart-content-wrapper { min-width: 0; max-width: @minicart__mobile; } div.minicart-wrapper{ .action.showcart.active ~ .ui-dialog > .block-minicart { transform: translateX(0); } .block.block-minicart { min-width: 0; width: @minicart__mobile; transform: translateX(@minicart__mobile); } } } //Common #minicart-content-wrapper { max-width: @minicart__width; height: 100%; } div.minicart-wrapper { display: contents; .installments { text-align: right; } .subtitle.empty { padding-right: @minicart__padding; padding-left: @minicart__padding; } .viewcart { text-transform: uppercase; font-size: 16px; } .minicart-items .product > .product-item-photo, .minicart-items .product > .product-image-container { float: none; } .product-item { position: relative; .product { display: flex; } } .action.close { position: relative; color: @minicart-close__color; } .block-minicart .block-title { padding-right: @minicart__padding; padding-left: @minicart__padding; min-height: 70px; background: @minicart-block-title__background-color; display: flex; margin-bottom: 24px; align-items: center; align-content: center; justify-content: space-between; box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.15); strong { text-transform: uppercase; color: @minicart-block-title__text-color; } } .block-content { position: relative; height: 100%; box-sizing: border-box; box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.15); .sub-minicart { position: absolute; bottom: 32px; width: 100%; padding-right: @minicart__padding; padding-left: @minicart__padding; .subtotal { margin: 0 0 @minicart-blocks-spaces__margin-bottom 0; text-align: left; display: flex; position: relative; top: 0; justify-content: space-between; width: 100%; align-items: center; .label { font-size: 14px; flex: 1; &::after { content: none; } } .field-tooltip { position: relative; top: 0; padding-left: 8px; } .tooltip-minicart-subtotal { .lib-tooltip(left); .tooltip-content { &::after, &::before { content: none; } right: 100%; bottom: 50%; top: auto; } } } .actions { .primary, .action { width: 100%; text-transform: uppercase; font-size: 16px; font-weight: 500; height: @minicart-buy-button__height; } .secondary { text-align: center; padding: 8px 0; } } } } .counter-product-text, .counter-product-info { padding-left: 6px; } .ui-dialog { z-index: 200; position: fixed; top: 0; right: 0; left: ~"calc(100vw - @{minicart__width}) !important"; } .block.block-minicart::before { content: none; } .block.block-minicart { min-height: 100vh; } .block.block-minicart { z-index: 100; margin: 0; min-height: 100dvh; width: @minicart__width; height: 100%; background: @minicart__background-color; backdrop-filter: @minicart__backdrop-filter; transform: translateX(@minicart__width); transition: transform 0.2s ease-in-out; padding: 0; border: 0; .minicart-items-wrapper { height: ~"calc(100% - @{minicart-bottom-block_height}) !important"; padding: 0; border: 0; margin: 0; padding-right: @minicart__padding; padding-left: @minicart__padding; .product-item-details { padding-left: 8px; position: relative; flex: 1; .product.actions { // Edit .primary { display: none; } // Delete .secondary { position: absolute; top: 0; right: 0; .action.delete::before { line-height: 18px; } } } } .product-image-container { min-width: fit-content; } } .items-total { margin: 0; } } .action.showcart.active ~ .ui-dialog > .block-minicart { transform: translateX(-@minicart__padding); } .action.showcart { display: flex; align-items: center; align-content: center; &.active { display: flex; align-items: center; align-content: center; } .counter.qty { position: absolute; margin: 0; line-height: @minicart-counter__height; align-items: center; font-size: @minicart-counter__font-size; height: @minicart-counter__height; width: @minicart-counter__width; border-radius: @minicart-counter__border-radius; top: ~"calc(-1 * @{minicart-counter__diagonal-top-move})"; right: ~"calc(-1 * (@{minicart-counter__diagonal-top-move} / 2))"; background: @minicart-counter__background-color; color: @minicart-counter__color; } } .counter.qty { padding-left: 8px; } dl { margin-bottom: 0; } } /* Contador para quando with_text está selecionado aparece texto desktop e contador mobile */ @media (min-width: @screen__xl) { .counter-product-qty-container, .counter-product-qty-number { display: none; } } @media (max-width: @screen__xl) { .counter-product-info, .counter-product-text { display: none; } } // Codeseller no minicart ajustes .minicart-codeseller-coupon-form { .fieldset:last-child { margin: 0; } .fieldset > .field { margin-bottom: @minicart-blocks-spaces__margin-bottom; } .actions-toolbar > .primary:last-child, .actions-toolbar > .secondary:last-child { width: 25%; } .fieldset.amcoupons-main-container { .amcoupons-input.field:not(.choice) { width: 75%; padding-left: 0; float: left; & > div.control { width: 100%; } } } }