@import '../../global_components/tooltip/index'; $cart-description-font-size: 16px; $cart-description-line-height: 1.4; $cart-description-lines-to-show: 3; .cart-products-info { width: 100%; text-align: left; border-bottom: 1px solid $gray-medium; .red { color: $red; } .line-item-comment-display{ .form-field-group input{ border-radius: 4px; } } th { padding-bottom: 12px; } tbody { tr { border-top: 1px solid $gray-medium; display: table-row; width: 100%; margin: 6px 0; vertical-align: top; .cart-cost-center-action-td { width: 100%; // this was set for IE9 print view } @media (max-width: $screen-sm-max) { &:first-child { border-top: none; } } &.hide { border-top: none; } } } td { padding: 0.75rem 13px 0 6px; } tr.hide{ display: none; } .radio-input-group { margin-bottom: 1rem; display: block; clear: both; } } @media (max-width: 420px ) { .cart-item-fee-container { display: inline-block !important; width: 100%; } } .cart-item-fee-container { border: 0 !important; td:not(:first-child) { border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; } } .cart-item-fee-container.no-border { border: 0 !important; td:not(:first-child) { border-top: 1px solid #ccc; border-bottom: 0; } } .cart-item { .other { color: $red; } &-image img { display: block; margin: 0 auto; max-width: 150px; height: auto; width: auto; max-height: 150px; } &-description { a { display: block; display: -webkit-box; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: $cart-description-lines-to-show; -webkit-box-orient: vertical; @include font-size($cart-description-font-size); line-height: $cart-description-line-height; max-height: ($cart-description-font-size * $cart-description-line-height * $cart-description-lines-to-show) + 2px; } .side-bar-header { border: 0; padding: 0; display: inline-block; margin: 0 0 1rem 0; font-size: 1rem; position: relative; padding-right: 0.9375rem; .dd-arrow { right: 0; top: 0.4375rem; position: absolute; width: 0; height: 0; border-left: 0.3125rem solid transparent; border-right: 0.3125rem solid transparent; border-bottom: 0.3125rem solid #000000; transform: rotate(180deg); transition: transform 0.25s linear; } } .fee-total { float: right; } .toggle[aria-expanded="true"] .dd-arrow { transform: none; } .fee-entry { margin-bottom: .5rem; } .fee-desc { display: inline-block; } .fee-desc .fee-surcharge-info-tooltip.tooltip { float: none; display: inline-block; vertical-align: middle; line-height: 1; position: relative; } .fee-surcharge-info-tooltip .tooltip-content { z-index: 100020; } .fee-amt { font-weight: normal; float: right; } } &-description-sku { @include font-size(14px); } &-pickup-note, &-delivery-note { margin: 6px 0; @include font-size(14px); } &-backorder { color: $gray; @include font-size(14px); @include padding(0 2px); line-height: normal; float: left; width: 100%; &-qty { display: inline-block; float:left; } .tooltip-icon { float: left; } } &-additional-fee-message { border: 0 !important; td { padding-bottom: 12px; } } } @media (max-width: $screen-xs-max) { table.cart-products-info { display: block; td[class*="col-"], th[class*="col-"] { display: inline-block; float: left; } .display-full{ display:block; } } .cart-item-image img { max-width: 100%; } .cart-item-shipping-options { margin-bottom: 0.5em; } .cart-item-shipping-options-pickup, .cart-item-backorder { .tooltip-content { width: auto !important; } } } .close-btn-wrap{ height: 25px; .modal-btn-close{ position: relative; float: right; top: 0; right: 0; } @include breakpoint(sm) { display: none; } } #cartCostCenterForm { text-align: left; } .cart-form-inline{ width: 100%; padding:12px; .form-field-group { display: inline-block; } } .break-word{ word-break: break-all; white-space: normal; width: 160px; } .line-item-comment-edit-row{ padding-left: 0; display: flex; justify-content: space-between; padding-right: 0; .cart-form-comment-input{ width: 80%; padding: 0; display: inline-block; .form-field-group{ border-radius: 4px; } } .cart-form-comment-action{ margin-left: 21px; display: inline-block; line-height: 42px; .btn.link-style{ padding: 0; border-radius: 4px; } } } .cart-form-comment-action{ display: inline-block; .cart-action-cost-center{ line-height: 46px; margin-left: 20px; } } .left-btn-group.left-btn-group { margin: 0 auto; text-align: left; line-height: 2; .btn.link-style{ text-align: left; text-decoration: none; padding: 0; &.input{ padding:0; } } } .comment-style{ width: 75%; word-break: break-all; padding: 0 10px 0 5px; } .qty-style-group{ .semi_bold{ font-weight: 600; } .update-qty-btn { padding-top: 6px; display: block; } @media (min-width: $screen-sm) { .update-qty-btn { display: inline-block; } } @media (min-width: $screen-sm) { display: inline-flex; } .qty-input-group{ display: inline-block; .input-txt{ width: 70px; font-weight: 600; border-radius: 4px; text-align: center; } label{ position: relative; padding-top: 6px; top:0; } } input[type=submit]{ @media (min-width: $screen-sm) { margin-left: 0.6rem; } } .btn.no-display{ display:none ; padding-left: 0.6rem; } } .td-remove-btn{ vertical-align: baseline; button{ position: inherit; } } .cart-action{ .bottom-btns{ a, .btn.link-style { border: none; vertical-align: middle; } a:last-child { padding: 0; } line-height: $cart-description-line-height; a { font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif; line-height: $cart-description-line-height; } .btn.link-style{ padding: 0 3.125rem 0 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif; line-height: $cart-description-line-height; @media (max-width: $screen-xs-max) { padding: 0; text-decoration: none; } } } } .cart-pickup-option { &-single, &-all { min-height: 35px; width: 90px; line-height: 30px; } } .volume-pricing { @include margin(1px 0 0 0); &.tooltip { float: right; } &-heading { @include font-size($base-font-size - 2); float: left; } &-icon svg { float: left; width: 16px; height: 16px; @include margin(2px 0 0 5px); } } .cart-item-price-detail { float: right; } .cart-item-print-tooltip { display: flex; padding-right: 12px; color: #54595E; font-size: .875rem; line-height: normal; .tooltip-icon { margin-left: 2px; float: none; .left { bottom: 50%; right: calc(100% + 10px); left: auto; transform: translate(0, 50%); &:after, &:before { left: 100%; top: 50%; transform: translate(0, -50%); } &:after { border-color: transparent transparent transparent $white; } &:before { border-color: transparent transparent transparent $gray; } } } } .ca-bag-fee-info-icon { position: relative; display: inline-block; cursor: pointer; vertical-align: middle; .ca-bag-fee-tooltip { display: block; visibility: hidden; opacity: 0; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 0); width: 300px; background: $white; border: 1px solid $gray; @include padding(12px); border-radius: 4px; z-index: $z-index-tooltip; box-shadow: 0 0 8px -1px $gray; text-align: left; font-weight: normal; transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out; &:after, &:before { content: ''; display: block; position: absolute; left: 50%; transform: translate(-50%, 0); top: 100%; width: 0; height: 0; border-style: solid; } &:after { border-color: $white transparent transparent transparent; border-width: 10px; } &:before { border-color: $gray transparent transparent transparent; border-width: 11px; } @media (max-width: $screen-xs-max) { width: 75vw; } } &:hover .ca-bag-fee-tooltip, &:focus .ca-bag-fee-tooltip, &:focus-within .ca-bag-fee-tooltip { opacity: 1; visibility: visible; } } // ODP-2761: Title + info icon on one row (BSD cart) .cart-item-fuel-surcharge-heading { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; max-width: 100%; .cart-item-fuel-surcharge-title { line-height: 1.25; } .fuel-surcharge-info-icon { flex-shrink: 0; margin-top: 0.1rem; // optical align with caps text } } // ODP-2761: Managed fuel surcharge SKU info icon + tooltip — mirrors .ca-bag-fee-info-icon pattern .fuel-surcharge-info-icon { position: relative; display: inline-block; cursor: pointer; vertical-align: middle; .fuel-surcharge-tooltip { display: block; visibility: hidden; opacity: 0; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 0); width: 300px; background: $white; border: 1px solid $gray; @include padding(12px); border-radius: 4px; z-index: $z-index-tooltip; box-shadow: 0 0 8px -1px $gray; text-align: left; font-weight: normal; transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out; &:after, &:before { content: ''; display: block; position: absolute; left: 50%; transform: translate(-50%, 0); top: 100%; width: 0; height: 0; border-style: solid; } &:after { border-color: $white transparent transparent transparent; border-width: 10px; } &:before { border-color: $gray transparent transparent transparent; border-width: 11px; } @media (max-width: $screen-xs-max) { width: 75vw; } } &:hover .fuel-surcharge-tooltip, &:focus .fuel-surcharge-tooltip, &:focus-within .fuel-surcharge-tooltip { opacity: 1; visibility: visible; } } .cart-item-stamp{ font-size: 11px; } @media (max-width: $screen-sm-max) { .cart-item-stamp { font-size: 9px; } } .is-fluid { .share-cart-modal { .form-field-group { input.float-label+label { top: -3.5rem; } input:focus { &::-webkit-input-placeholder { color: transparent; -webkit-transition: color 0.2s ease; transition: color 0.2s ease; } &:-moz-placeholder { /* Firefox 18- */ color: transparent; -webkit-transition: color 0.2s ease; transition: color 0.2s ease; } &::-moz-placeholder { /* Firefox 19+ */ color: transparent; -webkit-transition: color 0.2s ease; transition: color 0.2s ease; } &:-ms-input-placeholder { color: transparent; -webkit-transition: color 0.2s ease; transition: color 0.2s ease; } } } .form-field-group.has-danger { label.error { font-size: 14px; font-size: .875rem; color: #b30000; display: block; margin-top: 1.25rem; white-space: normal; } } } } .print-view-cart-table-row-cell-shipping { .radio .radio-icon + .radio-label span:first-child { display: table; } } .mp_shipping_policy { display: flex; } .tooltip-main { margin-left: 3px; } .cart-lease-modal { .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 0px; } .gpa_footer { padding: 1rem 0 0; margin-bottom: 1rem; .button-group { display: flex; justify-content: center; } } .short-description, .gpa_content { text-align: left; padding: 20px 15px; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; } .modal-gpa-body { .short-description, .gpa_content { text-align: left; padding: 20px 15px; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; } .gpa_content { ::-webkit-scrollbar { width: 6px; /* Width of the scrollbar */ } ::-webkit-scrollbar-track { background: #f0f0f0; /* Background of the scrollbar track */ } ::-webkit-scrollbar-thumb { background: #888; /* Color of the scrollbar thumb */ border-radius: 3px; /* Rounded corners for the thumb */ } ::-webkit-scrollbar-thumb:hover { background: #555; /* Color when hovering over the thumb */ } scrollbar-width: thin; /* Makes the scrollbar thinner */ scrollbar-color: #888 #f0f0f0; /* Thumb color and track color */ } } } tr.gpa-message { .button-group { .od-button-primary { background-color: #1e5a99; border-color: #1e5a99; color: #FFF; } .od-button-secondary { background-color: transparent; border-color: #1e5a99; color: #1e5a99; margin-right: 0.7rem !important; } .od-button { border-radius: 2rem; padding: 0.5rem 1rem; height: auto; font-weight: 700; border: 1px solid #1e5a99; text-decoration: none; box-sizing: border-box; -webkit-font-smoothing: inherit; -moz-osx-font-smoothing: inherit; margin: 0; overflow: visible; position: relative; width: auto; display: inline-flex; align-items: center; line-height: 1; justify-content: center; text-align: center; transition: color .25s ease-in-out, background-color .25s ease-in-out, border-color .25s ease-in-out, box-shadow .25s ease-in-out; vertical-align: middle; } } } .gpaCheckoutDisabled { pointer-events: none; opacity: 0.5; cursor: not-allowed; }