/* Price Feature */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
}

#custom_checkout_container {
    padding: 0 20px;
}

.remove-item {
    color: #fff;
    border: none;
    cursor: pointer;
}

.remove-item svg path, .remove-item svg line {
    stroke: #000;
}

#product_suggestions li.product-suggestion {
    border-bottom: 1px solid #eee;
    padding: 6px;
    cursor: pointer;
}

#product_suggestions li.product-suggestion:hover {
    background-color: #f9f9f9;
}

.address-block {
    position: relative;
    border: 1px solid #ccc;
    padding: 10px;
    transition: 0.3s border-color;
    width: calc((100% - 42px) / 4);
    font-size: 14px;
    line-height: 1.8;
    min-height: 162px;
}

.address-block.selected {
    border: 2px solid #ff5501;
}

.address-block.selected .btn-ship-here {
    display: none;
}

.address-block.selected:after {
    background: #ff5501;
    color: #ffffff;
    content: '\e610';
    font-family: 'luma-icons';
    height: 27px;
    width: 29px;
    font-size: 19px;
    line-height: 21px;
    padding-top: 2px;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
}

.static-content {
    display: flex;
    flex-direction: row;
    text-align: center;
    margin-top: 40px;
}
.static-content > div {
    flex: 1 0 25%;
}
.static-content h3 {
    font-weight: bold;
    padding-bottom: 5px;
}

.price-index-index .loading-mask .loader > img {
    width: auto;
    height: auto;
}

.price-index-index .column.main h2 {
    font-weight: 700;
    text-align: center;

    line-height: 1.1;
    font-size: 2.6rem;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

#address-container {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 14px;
}

.proR2 {
    justify-content: space-between;
    margin-bottom: 20;
    padding: 0 20px;
}

.proR2.flex.direction-row {
    justify-content: space-between;
}

button#submitReq {
    border-radius: 0px !important;
}

button#add-item-button {
    margin: 20px;
}

table.request-items-table thead th {
    border-top: 1px solid #000;
    padding: 10px 10px 10px 2px;
    position: relative;
    white-space: nowrap;
}

table.request-items-table tr {
    border-bottom: 1px solid #ccc;
}

table.request-items-table tbody td {
    padding: 10px;
    line-height: 1.5;
    vertical-align: middle;
    position: relative;
}

table.request-items-table tbody td input {
    height: 50px;
    border-radius: 10px
}
table.request-items-table input.price {
    width: 120px;
}
table.request-items-table input.qty {
    width: 60px;
}

table.request-items-table .product-size {
    font-size: 90%;
    margin-top: 4px;
}
table.request-items-table .label {
    font-weight: bold;
    padding-right: 4px;
}

table.request-items-table input.error {
    border-color: #d61616;
}

#shipping_address_container {
    margin-top: 40px;
}

.tool-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.btn-ship-here {
    float: right;
}

.cart-items {
    margin: 30px 0;
    width: 100%;
}
@media (max-width: 1200px) {
    .cart-items {
        overflow-x: auto;
    }
}

.cart-items .action.delete > span {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
.cart-items .action.delete:before {
    content: '\e604';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 18px;
    line-height: 20px;
    color: #757575;
    font-family: 'luma-icons';
    vertical-align: middle;
    display: inline-block;
    font-weight: normal;
    overflow: hidden;
    speak: none;
    text-align: center;
}

.custom-file-button {
    display: inline-block;
    padding: 10px 40px;
    border: 1px solid #000;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    background: #fff;
    width: 260px;
    text-align: center;
}
@media (max-width: 767px) {
    .file-upload-wrapper {
        flex-direction: column;
    }
    .custom-file-button {
        width: 100%;
    }
}

.custom-file-button input[type="file"] {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-upload-wrapper {
    display: flex;
}

.file-tag {
    background-color: #f5f5f5;
    padding: 5px 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 20px;
    height: 30px;
    border-radius: 15px;
}

.file-tag span {
    margin-right: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-tag .remove-file {
    cursor: pointer;
    font-weight: bold;
    color: #888;
    margin-right: 0;
}

.pointer {
    cursor: pointer;
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.question-icon {
    display: inline-block;
    background-color: black;
    color: white;
    font-weight: bold;
    width: 18px;
    height: 18px;
    font-size: 12px;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    user-select: none;
    margin-left: 5px;
}

.tooltip-wrapper::after {
    content: attr(data-tooltip);
    white-space: pre-wrap; /* Support multiline */
    position: absolute;
    background-color: white;
    color: black;
    border: 1px solid black;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity 0.2s ease;
    min-width: 250px;
    z-index: 10;
    font-weight: normal;
    line-height: 15px;
}

/* Show tooltip on hover */
.tooltip-wrapper:hover::after {
    opacity: 1;
}

/* Positioning based on data-dir */
.tooltip-wrapper[data-dir="top"]::after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
}

.tooltip-wrapper[data-dir="bottom"]::after {
    top: 100%;
    transform: translateX(-98%) translateY(0);
}

.tooltip-wrapper[data-dir="left"]::after {
    top: 50%;
    right: 100%;
    transform: translateX(-5px) translateY(-50%);
}

.tooltip-wrapper[data-dir="right"]::after {
    top: 50%;
    left: 100%;
    transform: translateX(5px) translateY(-50%);
}

.required-asterisk {
    color: #d61616;
    font-weight: bold;
    margin-left: 2px;
}

.search-prod-wrap {
    border: 1px solid #c2c2c2;
    margin-top: 20px;
    padding: 20px;
}

.search-prod-header {
    display: flex;
    flex-direction: column;
}

.search-prod-header label {
    font-weight: 600 !important;
}

.search-prod-header input#product_search {
    height: 50px;
    line-height: 50px;
    border-radius: 10px;
    padding: 0 30px 0 40px;
    background: #fbfbfb;
}

.search-prod-cont {
    position: relative;
    margin-top: 10px;
}

.search-prod-cont.loading::after {
    content: '';
    position: absolute;
    top: 0;
    right: 40px;
    bottom: 0;
    z-index: 1000;
    margin: auto 5px auto 0;
    width: 16px;
    height: 11px;
    background: url(data:image/gif;base64,R0lGODlhEAALAPQAAP///wAAANra2tDQ0Orq6gYGBgAAAC4uLoKCgmBgYLq6uiIiIkpKSoqKimRkZL6+viYmJgQEBE5OTubm5tjY2PT09Dg4ONzc3PLy8ra2tqCgoMrKyu7u7gAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCwAAACwAAAAAEAALAAAFLSAgjmRpnqSgCuLKAq5AEIM4zDVw03ve27ifDgfkEYe04kDIDC5zrtYKRa2WQgAh+QQJCwAAACwAAAAAEAALAAAFJGBhGAVgnqhpHIeRvsDawqns0qeN5+y967tYLyicBYE7EYkYAgAh+QQJCwAAACwAAAAAEAALAAAFNiAgjothLOOIJAkiGgxjpGKiKMkbz7SN6zIawJcDwIK9W/HISxGBzdHTuBNOmcJVCyoUlk7CEAAh+QQJCwAAACwAAAAAEAALAAAFNSAgjqQIRRFUAo3jNGIkSdHqPI8Tz3V55zuaDacDyIQ+YrBH+hWPzJFzOQQaeavWi7oqnVIhACH5BAkLAAAALAAAAAAQAAsAAAUyICCOZGme1rJY5kRRk7hI0mJSVUXJtF3iOl7tltsBZsNfUegjAY3I5sgFY55KqdX1GgIAIfkECQsAAAAsAAAAABAACwAABTcgII5kaZ4kcV2EqLJipmnZhWGXaOOitm2aXQ4g7P2Ct2ER4AMul00kj5g0Al8tADY2y6C+4FIIACH5BAkLAAAALAAAAAAQAAsAAAUvICCOZGme5ERRk6iy7qpyHCVStA3gNa/7txxwlwv2isSacYUc+l4tADQGQ1mvpBAAIfkECQsAAAAsAAAAABAACwAABS8gII5kaZ7kRFGTqLLuqnIcJVK0DeA1r/u3HHCXC/aKxJpxhRz6Xi0ANAZDWa+kEAA7AAAAAAAAAAAA) no-repeat center;
}

span.search-prod-search {
    position: absolute;
    left: 10px;
    top: 12px;
}

span.search-prod-cancel {
    position: absolute;
    right: 10px;
    top: 12px;
    cursor: pointer;
    z-index: 1;
}

.add-suggested-product {
    background: #000 !important;
    border-radius: 0px;
    position: absolute;
    top: -20px;
    width: 100%;
    left: 0;
    padding: 10px;
    transition: .3s all ease;
    opacity: 0;
    color: #fff !important;
    border-color: #000 !important;
}

.product-suggestion-content-vertical {
    position: relative;
    width: 100%;
}

.product-suggestion-inner-vertical:hover .add-suggested-product {
    top: -46px;
    opacity: 1;
}

.amsearch-form-container {
    position: relative;
}

.search-prod-wrap .search-autocomplete._active {
    display: block !important;
}

.search-prod-wrap .amsearch-form-container .amsearch-results {
    padding: 0 40px;
}

.search-prod-wrap .amsearch-form-container.-result .search-autocomplete {
    border: 1px solid #ddd;
    background: white;
    border-radius: 12px;
    min-height: 372px;
}
@media (max-width: 959px) {
    .search-prod-wrap .amsearch-form-container.-result .search-autocomplete {
        min-height: 340px;
    }
}

ul#product_suggestions {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ccc;
    display: none;
    list-style: none;
    padding: 20px 40px;
    margin: 0;
    overflow: hidden;
    max-height: 290px;
}

.product-suggestion {
    border: none !important;
    padding: 10px !important;
}

.search-prod-wrap .owl-nav .owl-prev {
    left: -36px;
}

.search-prod-wrap .owl-nav .owl-next {
    right: -36px;
}

#new-address-form {
    padding: 0px 40px;
    background: #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
    display: block;
    font-family: sans-serif;
    max-width: 600px;
}

#new-address-form .form-title {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

#new-address-form label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
    display: inline-flex;
}

#new-address-form input {
    padding: 0 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    line-height: 48px;
    height: 48px;
}

#new-address-form select {
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#new-address-form .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

#save-new-address {
    background: black;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 7px 15px;
    font-size: 18px;
    font-family: 'Jost','Open Sans';
}

.cancel-link {
    color: #006bb4;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
}

.cancel-link:hover {
    text-decoration: underline;
    color: #006bb4;
}

button.secondary {
    background-color: var(--secondary_color);
    border-radius: 8px;
    border: 0;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    position: absolute;
    font-size: 30px;
    right: 10px;
    top: 10px;
    padding: 5px;
    text-decoration: none;
}

#request_price_form_container {
    position: relative;
}
table.request-items-table thead th:nth-child(2) {
    width: 120px;
}
table.request-items-table thead th:nth-child(3) {
    width: 200px;
}
table.request-items-table thead th:nth-child(4) {
    width: 140px;
}
table.request-items-table thead th:nth-child(5) {
    width: 200px;
}
table.request-items-table thead th:nth-child(6) {
    width: 40px;
}

.invoices-container h4 {
    font-weight: bold;
    margin-bottom: 14px;
}

.totals-box {
    position: relative;
    width: 100%;
    border-top: 2px solid #000;
    font-family: sans-serif;
    background: #f9f9f9;
}
.totals-row {
    display: flex;
    justify-content: end;
    padding: 8px 16px;
    align-items: center;
    border-bottom: 1px solid #eee;
}
.totals-row.discount-row {
    display: none;
}
.total-bold {
    font-weight: bold;
}
.totals-row > span {
    text-align: right;
}
.totals-row > span:nth-child(2) {
    width: 25%;
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    margin-left: 8px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #005500;
}
input:checked + .slider:before {
    transform: translateX(18px);
}

.totals-container {
    margin-top: 20px;
}

.modal-popup.modal-new-address .modal-inner-wrap {
    padding: 40px;
}

.modal-popup.modal-new-address .modal-inner-wrap header {
    padding: 20px 40px;
}

.modal-popup.modal-new-address .modal-inner-wrap header h1 {
    text-align: center;
}

.price-index-index .modal-popup.modal-new-address .modal-footer {
    padding: 5px 40px 0;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.price-index-index .modal-popup.modal-new-address .modal-footer .action-hide-popup {
    line-height: 1.42857143;
    padding: 0;
    color: #006bb4;
    text-decoration: none;
    background: none;
    border: 0;
    display: inline;
    font-weight: 400;
    border-radius: 0;
}
.price-index-index .modal-popup.modal-new-address .modal-footer .action-hide-popup:hover {
    background: none;
    border: 0;
    color: #006bb4;
    text-decoration: underline;
}

/* Tooltip */
.price-index-index .field-tooltip .field-tooltip-content {
    left: auto;
    right: -10px;
    top: 40px;
}
.price-index-index .field-tooltip .field-tooltip-content:before {
    border: 10px solid transparent;
    height: 0;
    width: 0;
    margin-top: -21px;
    right: 10px;
    left: auto;
    border-bottom-color: #666666;
    top: 0;
}
.price-index-index .field-tooltip .field-tooltip-content:after {
    border: 10px solid transparent;
    height: 0;
    width: 0;
    margin-top: -21px;
    right: 10px;
    left: auto;
    border-bottom-color: #f4f4f4;
    top: 1px;
}

.price-index-index div#new-address-form h3 {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    margin-top: 0;
}
.price-index-index #save-new-address:hover {
    background-color: var(--primary_color);
    color: white;
}

table.request-items-table {
    margin: 0;
}
@media (min-width: 640px) {
    .mobile-tooltip {
        display: none;
    }
}
table.request-items-table td .fieldStarik {
    position: relative
}
table.request-items-table td .fieldStarik:after {
    content: '*';
    position: absolute;
    right: -10px;
    top: 4px;
    color: #d61616;
    height: 5px;
    line-height: 5px;
    font-size: 16px;
}
.price-index-index .field.has-tooltip input {
    max-width: calc(100% - 36px);
}
.price-index-index  .has-tooltip .question-icon {
    background: none;
    color: #575757;
    border: 1px solid #575757;
    margin-left:10px
}
.price-index-index .tooltip-wrapper[data-dir="left"]::after {
    color: #575757;
    border-color: #575757;
}

.price-index-index .mage-error, .price-index-index input.wrong-length {
    border-color: #e02b27 !important;
}

.price-index-index .field {
    position: relative;
}

.price-index-index .fieldset > .field:last-child {
    margin-bottom: 0;
}

.price-index-index .modal-slide.modal-popup .modal-content {
    text-align: left;
    overflow-y: auto;
}

/*Responsive */
@media (max-width: 639px) {
    table.request-items-table tbody td {
        padding: 5px 0 !important;
    }
    table.request-items-table tbody tr > td:not(.col-url)[data-th]:before {
        width: 50%;
    }
    table.request-items-table input.price {
        width: 80px;
    }
    table.request-items-table tbody > tr > td:last-child {
        border: 0 !important;
    }
    table.request-items-table tbody > tr {
        padding: 20px 0;
    }
    .tooltip-wrapper[data-dir="bottom"]::after {
        transform: translateX(-55%) translateY(0);
    }
}
@media (max-width: 767px) {
    .modal-popup.modal-new-address .modal-inner-wrap {
        padding: 20px;
    }
    .modal-popup.modal-new-address .modal-inner-wrap header {
        padding: 20px;
    }
    div#new-address-form {
        padding: 0;
    }

    .add-suggested-product {
        background: #000 !important;
        border-radius: 0px;
        position: absolute;
        top: -20px;
        width: 100%;
        left: 0;
        padding: 10px;
        transition: .3s all ease;
        opacity: 0;
        color: #fff !important;
        border-color: #000 !important;
    }

    .product-suggestion-content-vertical {
        position: relative;
        width: 100%;
    }

    .product-suggestion-inner-vertical:hover .add-suggested-product {
        top: -46px;
        opacity: 1;
    }

    .static-content {
        flex-direction: column;
    }

    .price-index-index .action-save-address {
        width: 100%;
    }

    .price-index-index .action-hide-popup {
        margin-top: 20px;
    }

    div#address-container {
        margin: 20px 0;
    }

    .price-index-index div#address-container > div.address-block {
        width: calc((100% - 14px) / 2);
    }

    .address-block .btn-ship-here {
        margin-top: 10px;
        width: 100%;
    }

    .product-suggestion-inner-vertical .add-suggested-product {
        top: -46px;
        opacity: 1;
    }
    .file-list {
        margin-top: 10px;
    }
    .file-tag {
        margin: 0;
        width: calc((100% - 10px) / 2);
    }
}

ul.stripe-dropdown-list {
    margin-bottom: 0;
}

#btn_checkout {
    width: 100%;
    line-height: 1.8em
}
#custom_stripe_checkout {
    margin-top: 30px;
}
#custom_stripe_checkout .no-saved-methods #btn_checkout {
    margin-top: 21px;
}
.agreement-note {
    font-size: 14px;
    padding: 10px 8px;
}

#checkout_error_message {
    color: #d61616;
    padding: 0 8px;
    font-size: 90%;
}

#custom_checkout_container .loading-mask {
    position: absolute;
}
#custom_checkout_container .loading-mask .loader > img {
    position: absolute;
}

.shipping-insurance-explainer .benefits {
    padding: 0 10px;
    margin: 30px 0;
}
.shipping-insurance-explainer .benefits > li {
    flex: 1;
    list-style-type: none;
    font-weight: bold;
}
.shipping-insurance-explainer .benefits > li::before {
    content: "\f058";
    color: #4caf50;
    margin-right: 8px;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}
