/* Universal Box Sizing */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Safari-specific optimizations */
@supports (-webkit-appearance: none) {
    body {
        -webkit-font-smoothing: antialiased;
        -webkit-text-size-adjust: 100%;
    }
    .dealer-order {
        -webkit-overflow-scrolling: touch;
    }
    #filter-query::-webkit-input-placeholder {
        color: #000 !important;
    }
    .dealer-order .search-container {
        transform: translateZ(0);
    }
}

/* General Styles */
.balance-info th {
    padding-left: 0;
    padding-top: 0;
}

table .strike {
    text-decoration: line-through;
    opacity: 0.5;
}

.dealers-top .title {
    color: #111;
    font-weight: bold;
    margin-bottom: 2px;
    font-size: 15px;
}

.dealers-top .shipping-address {
    margin-bottom: 10px;
}

.dealers-top .payment-info {
    padding-right: 20px;
}

.dealers-top p,
.dealers-top .owner {
    margin: 0;
    margin-bottom: 10px;
}

.portal-custom-label-container .portal-custom-label {
    display: inline-block;
    min-width: 75px;
    text-align: center;
    margin-right: 5px;
    padding: 0 5px;
}

.dealers-top .dealer-discount,
.dealers-top .amount-outstanding,
.dealers-top .payment-terms {
    margin-bottom: 10px;
}

.dealers-top .notice {
    color: red;
    font-size: 10px;
    margin-top: 10px;
}

.dealers-top .balance-info table {
    max-width: 250px;
    border: none;
}

.dealers-top .balance-info table tbody {
    background: none;
}

.dealers-top .balance-info table th,
.dealers-top .balance-info table td {
    border: none;
}

.dealers-top .account-orders-info {
    float: left;
    padding-right: 20px;
}

.dealers-top .outstanding span,
.dealers-top .owed span {
    color: #c1001f;
}

.dealers-top .onhold {
    color: #c1001f;
    margin: 20px 0;
}
.account-info .balance-info table td {
    padding: 2px 0;
}

.dealers-data {
    width: 980px;
    padding: 0 20px;
}

.dealers-data #chart-legend ul {
    list-style: none;
}

.dealers-data #chart-legend ul li {
    display: block;
    position: relative;
    margin-bottom: 4px;
    padding: 2px 8px 2px 28px;
    font-size: 14px;
    cursor: default;
    float: right;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-transition: background-color 200ms ease-in-out;
    -moz-transition: background-color 200ms ease-in-out;
    -o-transition: background-color 200ms ease-in-out;
    transition: background-color 200ms ease-in-out;
}

.dealers-data #chart-legend li span {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 100%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

#dealer-account-loader {
    background: #080808;
}

/* Dealers Order History Styles */
#dealers-order-table {
    width: 100%;
}

#dealers-order-table th {
    padding: 5px 10px;
    font-weight: 400;
    white-space: nowrap;
    color: #ddd;
    text-align: left;
}

#dealers-order-table tr.order-line {
    border-bottom: 1px solid #6d6d6d;
}

#dealers-order-table tr.order-line-items,
#dealers-order-table tr.order-pay-line {
    display: none;
}

#dealers-order-table td {
    padding: 8px 10px;
}

#dealers-order-table thead {
    background-color: #131314;
}

#dealers-order-table tbody.odd tr.border td,
#dealers-order-table tbody.even tr.border td {
    border-bottom-width: 1px;
}

#dealers-order-table td.label,
#dealers-order-table th.label {
    font-weight: bold;
    background-color: #f6f6f6;
}

#dealers-order-table tbody th {
    color: #000;
}

#dealers-order-table a {
    color: #fff;
}

#dealers-order-table tr.order-line td .blue-button {
    margin-left: 5px;
    font-size: 12px;
}

#dealers-order-table table.quick-products thead th {
    color: #fff;
}

#dealers-order-table .order-payment-form td {
    padding: 4px 10px;
}

#dealers-order-table .order-payment-form-dates .no-padding {
    padding: 0;
}

/* Sales Rep Page */
#dealer-account-loader .select-account {
    padding: 10px 20px;
}

#dealer-account-loader .input-box {
    float: left;
}

/*#dealer-account-loader .select-account label,*/
/*.select-account .label,*/
/*.new-dealer-details .label,*/
/*#rep-lookup-chooser label {*/
/*    color: #aeaeae;*/
/*    font-size: 11px;*/
/*    display: block;*/
/*    text-transform: uppercase;*/
/*    font-weight: bold;*/
/*    margin-bottom: 8px;*/
/*}*/

.select-account .input-box {
    display: grid;
}

#dealer-account-loader .account-type-chooser input[type="radio"] {
    float: left;
    clear: left;
    line-height: 16px;
    margin-top: 1px;
}

#dealer-account-loader .account-type-chooser .disabled label {
    color: #bbb;
    text-decoration: line-through;
}

#dealer-account-loader .account-type-chooser label {
    float: left;
    padding-left: 10px;
    line-height: 16px;
    color: #fff;
}

#dealer-account-loader .loader {
    width: 16px;
    height: 16px;
    float: left;
    margin: 2px 0 0 10px;
}

#portal-info-container .account-name {
    padding-left: 8px;
}

/* Loading text animation */
.loading-text {
    animation: pulse-opacity 2s ease-in-out infinite;
    color: #666;
    font-style: italic;
    font-size: small;
    font-weight: normal !important;
}

@keyframes pulse-opacity {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Fade-in transition for loaded content */
.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Error state for failed loads */
.load-error {
    color: #999;
    font-style: italic;
    font-style: normal !important;
}

/* Legacy portal loader (kept for backward compatibility if needed elsewhere) */
.portal-loader {
    display: block;
    width: 100%;
    text-align: center;
}

.portal-loader img {
    width: auto;
    height: auto;
}

.new-dealer-details .shipping {
    margin-top: 20px;
}

/* Dealers Navigation */

.dealer-navigation ul {
    float: left;
    width: 100%;
}

.dealer-navigation li {
    border: 1px solid;
    margin-right: 15px;
    -webkit-border-radius: 0.375rem;
    -moz-border-radius: 0.375rem;
    border-radius: 0.375rem;
}

@media only screen and (max-width: 530px) {
    .dealer-navigation {
        height: unset;
    }
    .dealer-navigation ul,
    .dealer-navigation li {
        float: none;
    }
    .dealer-navigation li a {
        padding-left: 20px;
        text-align: left;
    }
}

/* Dealer Layout */
.dealer-layout .cart-table {
    width: 979px;
}

.dealer-layout .amlist-items .buttons-set {
    width: 960px;
    margin-left: -19px;
}

.dealer-layout .main {
    background: none;
}

/* Dealers Quick Order */
.dealer-info-container,
.portal-lookup-dealer .dealers-top {
    padding-top: 20px;
}

.dealer-order {
    background-color: #fff;
    position: relative;
    width: 100%;
    height: auto;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
}

.dealer-order .main-title {
    height: 20px;
    line-height: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    display: contents;
}

.dealer-order .main-title h1 {
    font-size: 16px;
    margin: 0;
}

.dealer-order .search-container {
    float: right;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-top: -80px;
}

.dealer-order .search-container .wrapper {
    display: inline-flex;
    gap: 7px;
}

#filter-query, #saved_title {
    border-color: #000 !important;
}

#filter-query::-moz-placeholder,
#filter-query::-webkit-input-placeholder,
#filter-query::placeholder {
    color: #000 !important;
}

.dealer-order .field-info {
    font-size: 11px;
    color: #9e9e9e;
}

/* Quick List & Order Styles */
.quick-list .category .title {
    cursor: pointer;
    height: 27px;
    padding: 0 5px;
    border: 1px solid #000;
    color: #000;
    margin-top: 2px;
    position: relative;
    user-select: none;
    font-size: smaller;
    background: #000;
    color: #fff;
}

.quick-list .title > h2 {
    line-height: 23px;
}

.quick-list .title > .subtotal {
    line-height: 24px;
}

.quick-list .category .title i {
    width: 12px;
    vertical-align: baseline;
    margin-right: 7px;
}

.dealer-order input,
.dealer-order textarea {
    background-color: #fff;
}

.quick-list .category.open .title i:before {
    content: "\f106" !important;
}

.quick-list .category h3 {
    font-size: 15px;
    line-height: 26px;
    text-transform: uppercase;
    font-weight: normal;
    margin: 0;
}

/* Promo Filter Button Styles */
.promo-filter-button {
    cursor: pointer;
    height: 27px;
    padding: 0 5px;
    border: 1px solid #000;
    color: #fff;
    background: #000;
    position: relative;
    user-select: none;
    font-size: smaller;
    transition: all 0.2s ease;
    background: -webkit-linear-gradient(90deg,#ba3b45 0%,#ba3b45 54%,#000 100%);
    background: -moz-linear-gradient(90deg,#ba3b45 0%,#ba3b45 54%,#000 100%);
    background: linear-gradient(90deg,#ba3b45 0%,#ba3b45 54%,#000 100%)
}

.promo-filter-button.active {
    background: #ba3b45;
    color: #fff;
}

.promo-filter-button:hover, .promo-filter-button.active:hover {
    background: #000;
}

.promo-filter-button h3 {
    font-size: 15px;
    line-height: 26px;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0;
}

.promo-filter-button i {
    width: 12px;
    vertical-align: baseline;
    margin-right: 7px;
}

.promo-filter-button.active i:before {
    content: "\f106" !important;
}

/* SEE FULL PRODUCT RANGE Link Styles */
.promo-view-all-container {
    text-align: center;
    padding: 20px 0;
    margin: 15px 0;
    border-top: 2px dashed #d1d1d1;
}

.promo-view-all-link {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 2px solid #ba3b45;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: #fff;
}

.promo-view-all-link:visited {
    color: #000;
}

.promo-view-all-link:hover {
    background: #ba3b45;
    color: #fff;
    text-decoration: none;
}

.promo-view-all-link i {
    margin-right: 8px;
    font-size: 16px;
}

.quick-list .subtotal {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0 5px;
    color: #fff;
}

.quick-list .subtotal span {
    color: #fff;
    font-weight: bold;
}

.quick-list .products {
    margin: 0 0 4px;
    overflow-x: auto;
    display: none;
}

.quick-list .category.open .products {
    display: block;
}

.quick-list .quick-products {
    width: 100%;
    border-collapse: collapse;
    border: 0;
}

.quick-list .quick-products th {
    border: none;
}

.quick-list .price-label {
    float: left;
}

.quick-list .currency {
    font-size: initial;
}

.quick-products tr .image {
    width: 90px;
    padding: 0;
    background-color: #f1f2f6 !important;
}

.quick-products tr .name {
    width: 20%;
}

.quick-products tr .colour {
    width: 8%;
}

.quick-products tr .size {
    width: 26%;
}

.quick-products tr .rowtotal,
.quick-list .rowqty {
    text-align: right;
}

.quick-products tr .rowtotal {
    width: 10%;
}

.quick-products tr .rowqty {
    width: 5%;
}

.quick-list th {
    background: #333;
    line-height: 20px;
    padding: 0 5px;
    text-align: center;
    color: #fff;
}

.quick-list td {
    background: #fff;
    color: #000;
    padding: 3px 5px;
    border: 1px solid #d1d1d1;
    vertical-align: middle;
}

.quick-list .group td {
    border-top: 1px dashed #eee;
}

.quick-list .image {
    text-align: center;
}

.quick-list .image a {
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
}

.quick-list .image a:hover {
    text-decoration: underline;
}

.quick-list .name {
    font-size: 11px;
    text-transform: uppercase;
}

.quick-list .name h4 {
    font-size: 12px;
    font-weight: normal;
    display: block;
    color: #626262;
    margin: 0;
}

.quick-list .name p {
    font-size: 10px;
    color: #626262;
}

.quick-list .colour {
    text-align: center;
}

.quick-list .size {
    font-size: 10px;
}

.quick-list .item {
    display: inline-grid;
    text-align: center;
    margin: 0 2px 2px 0;
}

.quick-list .item label {
    display: block;
    margin-bottom: 3px;
    color: #000;
    font-size: 10px;
}

.quick-list .item .input-text {
    display: block;
    border: 1px solid #c7c7c7;
    font-size: 10px;
    font-weight: bold;
    color: #555;
    text-align: center;
    width: 32px;
    height: 20px;
    margin: 0;
    padding: 2px;
}

.quick-list .item .input-text.hasVal {
    background: #07ffd0;
}

.quick-list .item .input-text:focus {
    border: 1px solid #000;
}

.quick-list .item .disabled {
    background: #d8d8d8;
    border: 1px solid #c7c7c7;
}

.quick-list .item .inventory {
    display: inline-block;
    background: #222;
    color: #fff;
    width: 32px;
    font-size: 11px;
    font-weight: bold;
    padding: 1px 0;
}

.quick-list .item .inventory-out {
    background: #ba3b45;
}

.quick-list .item .inventory-low {
    background: orange;
}

.quick-list .item .inventory-in {
    background: green;
}

.quick-list .itemprice {
    text-align: right;
}

.quick-list .rrp-container {
    color: #626262;
    position: relative;
    padding-bottom: 2px;
}

.quick-list .rrp-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    border-bottom: 1px dashed #c7c7c7;
}

.quick-list .tp-container {
    color: #000;
}

/* Price row alignment - label left, price right */
.quick-list .price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.quick-list .itemprice .price-label {
    float: none;
}

/* Ensure price values align by giving them consistent width */
.quick-list .price-value {
    min-width: 70px;
    text-align: left;
}

.quick-list .rowqty,
.quick-list .rowtotal {
    text-align: right;
}

/*.quick-products tr.changed td {*/
/*    box-shadow: inset 0 22px 11px -11px rgb(0, 255, 207);*/
/*}*/

.quick-products tr.changed .code {
    background: #07ffd0;
}

.quick-products tr.changed .rowtotal .container{
    font-weight: bold;
    background: #07ffd0;
}

.quick-order {
    padding-top: 20px;
}

.quick-order .shipping {
    float: left;
}

.quick-order .infobox {
    width: 300px;
    float: right;
    position: sticky;
    top: 10px;
}

.quick-order #purchaseorder {
    margin-bottom: 20px;
}

#new-address-fieldset .field {
    margin-top: 15px;
}

#new-address-fieldset label em {
    color: red;
}

#new-address-fieldset input[type="checkbox"] {
    margin: 0 10px 0 0 !important;
    float: left;
}

.quick-order #purchaseordernumber {
    max-width: 240px;
}

.quick-order #shipping\:street1 {
    margin-bottom: 4px;
}

.quick-order .validation-advice {
    margin: -8px 0 10px;
}

.quick-order fieldset {
    display: none;
}

.quick-order .total {
    /*background: #eee;*/
    color: #000;
    font-size: 18px;
    padding: 0 15px;
    line-height: 36px;
    height: 36px;
    margin-bottom: 3px;
    font-weight: bold;
    border-top: 2px dashed;
    text-align: center;
}

.quick-order .total .code {
    font-size: 12px;
    margin-left: 5px;
    line-height: 32px;
    margin-top: 4px;
}

.quick-order .btn-order {
    font-weight: normal;
    line-height: 36px;
    padding: 0 15px;
    margin: 0;
    font-size: 12px;
    width: 100%;
    text-align: center;
    height: 50px;
}

.quick-order .infotable {
    width: 300px;
    margin-bottom: 10px;
    font-size: 14px;
}

.quick-order .infotable strong {
    color: #a0a0a0;
    font-weight: normal;
}

.quick-order .customer_comment {
    margin-top: 20px;
}

.quick-order .customer_comment textarea {
    height: 100px;
}

/* Dealer Payment Form */
.payment-form {
    display: none;
}

.payment-form .page-title h1 {
    font-size: 18px;
}

.payment-form #eway-payment-form {
    padding: 0 20px 10px;
}

.payment-form .dealers-pay-invoice-please-wait {
    display: none;
}

/* Order Details View */
.dealer-layout .order-info ul {
    float: none;
    margin-bottom: 10px;
}

.dealer-layout .order-info-box + .order-info-box {
    display: none;
}

.dealer-layout .order-info-box {
    width: 600px;
}

/* Sales Rep Navigation */
.salesrep-navigation {
    line-height: 50px;
    height: 50px;
    background: #000;
    margin: 3px 0;
}

.salesrep-navigation ul {
    float: left;
}

.salesrep-navigation li {
    float: left;
    border-right: 3px solid #e3e3e3;
}

.salesrep-navigation .link-order {
    border-left: 3px solid #e3e3e3;
}

.salesrep-navigation a {
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    color: #fff;
    display: block;
    padding: 0 15px;
    text-align: center;
}

.salesrep-navigation .active {
    background: #101112;
}

.salesrep-navigation li:hover a {
    color: #d8ff00;
}

/* Sales Rep Lookup */
.portal-lookup-dealer .col-main > .page-title h1 {
    font-size: 18px;
}

.portal-lookup-dealer .none {
    padding: 10px 20px;
}

.portal-lookup-view .link-print,
.portal-lookup-view .back-link {
    display: none;
}

/* Sales Rep Forecasts */
.portal-forecasts-edit .main-container,
.portal-forecasts-history .main-container {
    width: 100%;
}

.portal-forecasts-edit .dealers-top,
.portal-forecasts-edit .section-title,
.portal-forecasts-history .dealers-top,
.portal-forecasts-history .section-title,
.portal-forecasts-history .chart-container {
    width: 980px;
    margin: 30px auto 0;
}

.portal-forecasts-edit .filter-bar,
.portal-forecasts-history .filter-bar {
    width: 940px;
    margin: auto;
}

.portal-forecasts-edit .pager,
.portal-forecasts-history .pager {
    width: 960px;
    margin: auto;
}

.forecasts-container {
    padding-bottom: 20px;
}

.filter-bar .input-box,
.filter-bar input:not(.select2-search__field) {
    float: left;
    margin: 3px 5px 0 0;
}

.filter-currency input:checked + label {
    color: #009CDD;
}

#forecast-grid-frame {
    margin-bottom: 20px;
    padding-bottom: 10px;
    text-align: center;
}

.forecast-grid {
    display: inline-block;
    text-align: left;
}

.forecast-grid .header-row {
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
}

.forecast-grid .header-row .cell {
    background: #000;
    line-height: 28px;
    padding: 0 5px;
}

.forecast-grid .row {
    margin-bottom: 5px;
    display: block;
    border-bottom: 1px solid #000;
}

.forecast-grid .totals {
    padding: 5px 0;
}

.forecast-grid .totals .cell {
    padding-right: 10px;
}

.forecast-grid .cell {
    width: 85px;
    line-height: 15px;
    padding-right: 10px;
    box-sizing: border-box;
}

.forecast-grid .cell.dealer-name {
    width: 160px;
    padding: 0 10px;
}

.forecast-grid .action {
    width: 70px;
}

.forecast-grid .field {
    margin-bottom: 1px;
}

.forecast-grid label {
    width: 30%;
    display: inline-block;
    text-align: right;
    box-sizing: border-box;
}

.forecast-grid input {
    width: 70%;
    border: none;
    box-sizing: border-box;
    background: transparent;
    color: #fff;
    text-align: right;
}

.forecast-grid .row:hover input {
    background: #fff;
    color: #000;
    box-shadow: inset 1px 1px 1px #aaa;
}

.forecast-grid .row input:focus {
    box-shadow: inset 1px 1px 2px #009EE0;
    background: #fff;
    color: #000;
}

.forecast-grid .button {
    margin-top: 6px;
}

.forecast-grid .button:focus span {
    background: #009EE0;
}

.ordered-text {
    color: #009CDD;
}

/* Scrollbar */
.sly-scrollbar {
    margin: 0 0 1em 0;
    height: 5px;
    background: #444;
    padding: 1px;
    box-shadow: inset 1px 1px 1px #000;
}

.sly-scrollbar .handle {
    width: 100px;
    height: 100%;
    background: #aaa;
    cursor: pointer;
    border: 1px outset #ccc;
    position: relative;
}

.sly-scrollbar .handle .mousearea {
    position: absolute;
    top: -9px;
    left: 0;
    width: 100%;
    height: 20px;
}

#forecastOverviewChart {
    margin-bottom: 20px;
}

/* Pages */
.sly-pages {
    list-style: none;
    margin: 20px 0;
    padding: 0;
    text-align: center;
}

.sly-pages li {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 0 4px;
    text-indent: -999px;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.sly-pages li:hover {
    background: #aaa;
}

.sly-pages li.active {
    background: #666;
}

/* Generic Section */
.section-title {
    padding: 20px 0;
}

.section-title h1 {
    padding: 0 20px;
    text-transform: uppercase;
}

.section-menu {
    margin-right: 17px;
}

.section-menu li {
    display: inline;
}

.section-menu a {
    border: 1px solid #444;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    margin: 0 3px;
    font-size: 11px;
    padding: 3px 10px;
    text-align: center;
    color: #fff;
    background: #000;
}

.section-menu a:hover {
    background: #009CDD;
}

.section-container {
    padding: 20px;
}

.section-container p.required {
    text-align: left;
    margin-bottom: 10px;
}

.section-container .field-info {
    color: #9e9e9e;
    font-size: 11px;
    margin-top: 3px;
}

/* Saved Orders */
.dealer-layout .main .dealers-top + .my-account .page-title,
.dealer-layout .main .dealers-top + .page-title,
.dealer-layout .main .dealers-data + .page-title {
    margin: 0;
    padding: 40px 0 20px;
    background: none;
}

.dealer-layout .saved-orders-list .dates {
    background: #000;
    color: #ddd;
}

.my-account .separator {
    margin: 0 14px 0 4px;
}

/* Account Order Page */
.order-info-container .order-info-table,
.order-info-container .order-info-box,
.order-info-container .order-items-list,
.order-info-container .order-payment-details {
    border: 1px solid #b7b7b7 !important;
    padding: 20px !important;
    margin-bottom: 20px;
}

.order-info-container .order-info-table .order-info-table-item {
    font-weight: bold;
}

.order-items-list .order-items-table {
    border-width: 0 !important;
}

.order-items-list .order-items-table thead {
    background-color: #000;
    color: #fff;
    font-weight: bold;
    vertical-align: top;
}

.order-items-list .order-items-table .order-item-quantity {
    display: block;
}

.order-items-list .order-items-table th,
.order-items-list .order-items-table td {
    border-bottom: 1px solid #ebebeb !important;
    border-right: none !important;
}

.order-items-list .order-items-table tfoot tr th,
.order-items-list .order-items-table tfoot tr td {
    border-bottom: none !important;
}

.order-items-list .order-items-table .a-right {
    font-weight: bold;
    text-align: right;
}

.order-items-list .order-items-table .shipment-details-button {
    margin: 5px 0 !important;
    letter-spacing: 0;
    text-decoration: none;
}

.order-items-list .order-items-table .no-data-present {
    text-align: center;
}

.order-info-container .order-info-table .order-view-buttons {
    padding: 0 16px !important;
}

strong {
    font-weight: bold;
}

.block-reviews-dashboard .rating-summary {
    line-height: 13px;
}

/* Shipping Details Popup */
.shipping-details-popup {
    background-position: left top;
    margin: auto;
    top: 5vh !important;
    right: 0;
    max-width: 620px;
    position: fixed !important;
    text-align: center;
    background: #fff;
    padding: 20px;
    max-height: 90vh;
    overflow: auto;
}

.shipping-details-popup .shipping-details-popup-close {
    position: absolute;
    top: 10px;
    right: 0;
    width: 40px;
}

.shipping-details-popup .shipping-details-popup-close:before {
    content: "\f00d" !important;
    float: left;
    font-size: 24px;
    font-family: 'Font Awesome 5 Pro';
}

/* Responsive Order & Invoice View */
@media only screen and (max-width: 640px) {
    .shipping-details-popup {
        max-width: 90%;
    }
}

@media only screen and (max-width: 768px) {
    .order-info-box .billing-address-order-view {
        padding-bottom: 15px;
    }
}

@media only screen and (max-width: 640px) {
    .table-wrapper .order-items-table,
    .table-wrapper .order-items-table tbody,
    .table-wrapper .order-items-table tfoot {
        display: block;
    }
    .table-wrapper .order-items-table thead tr {
        display: none;
    }
    .table-wrapper .order-items-table tbody .a-right {
        text-align: left !important;
    }
    .table-wrapper .order-items-table .order-item-quantity {
        display: inline-block;
        margin-left: 5px;
    }
    .table-wrapper .order-items-table th,
    .table-wrapper .order-items-table td {
        border-bottom: none !important;
    }
    .table-wrapper .order-items-table tbody tr {
        padding: 0 0 10px !important;
        margin-bottom: 15px !important;
        display: block;
        border-bottom: 1px solid #ebebeb;
    }
    .table-wrapper .order-items-table tbody tr td {
        display: block;
        padding: 0;
    }
    .table-wrapper .order-items-table tbody tr td:before {
        padding-right: 10px;
        content: attr(data-th) ": ";
        display: inline-block;
        color: #111;
        font-weight: bold;
    }
    .table-wrapper .order-items-table tfoot tr {
        display: block;
    }
    .table-wrapper .order-items-table tfoot tr th {
        text-align: left !important;
        width: 70%;
        display: inline-block;
        padding-left: 0;
    }
    .table-wrapper .order-items-table tfoot tr td {
        display: inline-block;
        width: 30%;
        text-align: right;
        padding-right: 0;
    }
}

/* ============================================
   Saved Orders Tab Styles
   ============================================ */

/* Saved Orders Container */
.saved-orders-container {
    margin-bottom: 20px;
}

/* Tab Navigation */
.saved-orders-tabs {
    display: flex;
    gap: 0;
    /* margin-bottom: 20px; */
    /* border-bottom: 2px solid #000; */
}

.saved-orders-tabs .tab-button {
    background: #f5f5f5;
    /* border: none; */
    /* border-top: 2px solid transparent; */
    /* border-left: 2px solid transparent; */
    /* border-right: 2px solid transparent; */
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    position: relative;
    /* margin-bottom: -2px; */
    margin-bottom: 0px;
}

.saved-orders-tabs .tab-button:hover {
    background: #e8e8e8;
    color: #000;
}

.saved-orders-tabs .tab-button.active {
    /* background: #000; */
    /* color: #fff; */
    /* border-top-color: #00ffcf; */
    /* border-left-color: #000; */
    /* border-right-color: #000; */
    background: #fff;
    color: #000;
    border-bottom-color: #fff;
    border-bottom: 2px;
}

.saved-orders-tabs .tab-button:first-child {
    /* border-left: none; */
}

/* Tab Content */
.saved-orders-container .tab-content {
    display: none !important;
}

.saved-orders-container .tab-content.active {
    background: white;
    padding: 0 28px;
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Order Type Badges */
.order-type-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    margin-left: 8px;
}

.badge-portal {
    background: #666;
    color: #fff;
}

.badge-forward {
    background: #ba3b45;
    color: #fff;
}

/* Empty State Styling */
.saved-orders-container .message.info.empty {
    padding: 40px 20px;
    text-align: center;
    background: #f9f9f9;
    border: 1px dashed #d1d1d1;
    border-radius: 4px;
    margin: 20px 0;
}

.saved-orders-container .message.info.empty span {
    font-size: 14px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .saved-orders-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .saved-orders-tabs .tab-button {
        width: 100%;
        border: 1px solid #ddd;
        border-radius: 0;
        margin-bottom: 0;
        text-align: left;
    }

    .saved-orders-tabs .tab-button.active {
        border-left-color: #ba3b45;
        border-left-width: 4px;
    }

    .saved-orders-tabs .tab-button:first-child {
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    .saved-orders-tabs .tab-button:last-child {
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }
}

/* Table Caption Styling for Tabs */
.saved-orders-container .table-caption {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #111;
}

/* Ensure tables within tabs maintain proper styling */
.saved-orders-container .table-wrapper {
    margin-top: 0;
}

.saved-orders-container .orders-history {
    margin-bottom: 20px;
}

/* ========================================
   Order Summary Footer Bar
   ======================================== */
.order-summary-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000; /*#2c3e50*/
    background: -webkit-linear-gradient(90deg, #fff -20%, #9b9b9b 10%, #000 65%);
    background: -moz-linear-gradient(90deg, #fff -20%, #9b9b9b 10%, #000 65%);
    background: linear-gradient(90deg, #fff -20%, #9b9b9b 10%, #000 65%);
    color: #fff;
    padding: 6px 24px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 5px solid #10e2ba;
    display: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.order-summary-bar.visible {
    display: block;
}

.order-summary-bar.hidden-by-scroll {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.order-summary-bar .summary-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.order-summary-bar .summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-summary-bar .summary-item .label {
    font-weight: 600;
    opacity: 0.8;
}

.order-summary-bar .summary-counts span {
    font-weight: bold;
    border-left: 1px solid;
    padding-left: 8px;
}

.order-summary-bar .summary-total {
    font-size: 18px;
    font-weight: bold;
}

.order-summary-bar #summary-total {
    color: #00FFCF;
    font-size: 20px;
}

.order-summary-bar .btn-clear {
    background: transparent;
    border: 1px solid #ba3b45;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.order-summary-bar .btn-clear:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.order-summary-bar .btn-clear i {
    margin-right: 5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .order-summary-bar {
        padding: 10px 15px;
    }

    .order-summary-bar .summary-content {
        gap: 15px;
    }

    .order-summary-bar .summary-counts {
        font-size: 12px;
    }

    .order-summary-bar .summary-total {
        font-size: 16px;
    }

    .order-summary-bar #summary-total {
        font-size: 18px;
    }

    .order-summary-bar .btn-clear {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Braintree 3D Secure Modal */
.braintree-three-d-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; }
.braintree-three-d-modal .bt-mask { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.braintree-three-d-modal .bt-modal-frame { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 8px; overflow: auto; max-height: 90vh; max-width: 500px; width: 90%; }
.braintree-three-d-modal .bt-modal-body { padding: 0; }
.braintree-three-d-modal iframe { width: 100%; min-height: 400px; border: none; }

/* Trade Hub CSS has been moved to trade-hub.css (not loaded while Trade Hub is disabled) */

