/* Account-only responsive layout; keeps storefront and fleet editors independent. */
@media (max-width: 1024px) {
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)).container {width:100%;max-width:100%;padding-left:16px;padding-right:16px}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) #content {min-width:0;min-height:0;overflow-wrap:anywhere}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .breadcrumb {display:flex;flex-wrap:wrap;gap:6px;margin:20px 0;padding:0;white-space:normal}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .breadcrumb>li {white-space:normal;max-width:100%}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) #content h1,:is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) #content h2 {font-size:24px;line-height:1.3;margin:16px 0}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) #content h3 {font-size:20px;line-height:1.3}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .form-control {max-width:100%;min-width:0;font-size:16px;min-height:44px}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) textarea.form-control {height:auto;min-height:100px}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .form-horizontal .form-group>.control-label,:is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .form-horizontal .form-group>[class*="col-sm-"] {float:none;width:100%;max-width:100%;text-align:left}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .form-horizontal .control-label {padding-top:0;margin-bottom:6px;word-break:normal}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .btn {white-space:normal;overflow-wrap:anywhere;min-height:40px;max-width:100%}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .buttons {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:20px 0}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .buttons:before,:is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .buttons:after {display:none}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .buttons>div {float:none!important;max-width:100%}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .pagination {display:flex;flex-wrap:wrap}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .table-responsive {max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .table-responsive>.table>tbody>tr>td {white-space:normal;overflow-wrap:anywhere}
 #account-order .order-products-modern__head,#account-order .order-list-modern__head,#account-order .order-history-modern__head,#account-wishlist .wishlist-modern__head {display:none}
 #account-order [class$="__body"],#account-wishlist .wishlist-modern__body {display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 #account-order .order-products-modern__item,#account-order .order-list-modern__item,#account-order .order-history-modern__item,#account-wishlist .wishlist-modern__item {display:block;min-width:0;padding:12px;border:1px solid #e2e8da;border-radius:12px;background:#fff}
 #account-order .order-products-modern__cell,#account-order .order-list-modern__cell,#account-order .order-history-modern__cell,#account-wishlist .wishlist-modern__cell {display:block;min-width:0;max-width:100%;width:auto;white-space:normal;overflow-wrap:anywhere;text-align:left;padding:9px 0;border-bottom:1px solid #edf0e8;font-size:14px;line-height:1.5}
 #account-order [class$="__cell"]:before,#account-order .order-products-modern__cell:before,#account-order .order-list-modern__cell:before,#account-wishlist .wishlist-modern__cell:before {content:attr(data-label);display:block;max-width:100%;font-size:12px;font-weight:600;color:#687461;text-align:left;margin-bottom:3px}
 #account-order .order-products-modern__name a,#account-order .order-products-modern__name>div {max-width:100%;text-align:left}
 #account-order .order-products-modern__name>a,#account-order .order-products-modern__name>small {display:block;margin:4px 0}
 #account-order .order-products-modern__image,#account-order .order-list-modern__image,#account-wishlist .wishlist-modern__image {text-align:center}
 #account-order .order-products-modern__image:before,#account-order .order-list-modern__image:before,#account-wishlist .wishlist-modern__image:before {display:none}
 #account-order .order-products-modern__image img,#account-order .order-list-modern__image img,#account-wishlist .wishlist-modern__image img {width:72px;height:72px;object-fit:contain;max-width:100%}
 #account-order .order-products-modern__actions,#account-order .order-list-modern__actions,#account-wishlist .wishlist-modern__actions {display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px;border:0}
 #account-order .order-products-modern__actions:before,#account-order .order-list-modern__actions:before,#account-wishlist .wishlist-modern__actions:before {display:none}
 #account-order .order-products-modern__actions .btn,#account-order .order-list-modern__actions .btn,#account-wishlist .wishlist-modern__actions .btn {display:inline-flex;align-items:center;justify-content:center;width:44px!important;min-width:44px!important;height:44px;padding:0!important;margin:0!important}
 #account-order .order-products-modern__total-row {display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;min-width:0}
 #account-order .order-products-modern__total-row strong {min-width:0;white-space:normal}
 #account-order .order-info-table {table-layout:fixed;overflow-wrap:anywhere}
 #account-account #content>.list-unstyled {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #account-account #content>.list-unstyled li {min-width:0;margin:0}
 #account-account #content>.list-unstyled a {display:flex;align-items:center;min-height:48px;padding:12px 28px 12px 12px;white-space:normal;line-height:1.4}
}
@media (max-width:767px) {
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) #content {width:100%;padding-top:0}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .form-horizontal .form-group {margin-bottom:16px}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .form-horizontal .control-label {text-align:left;padding-top:0;margin-bottom:6px}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .well {padding:16px}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .buttons>div {flex:1 1 140px}
 :is([id^="account-"],.container:has(#simpleaddress),.container:has(#simpleedit),.container:has(#simpleregister)) .buttons .btn {width:100%}
 #account-account #content>.list-unstyled {grid-template-columns:minmax(0,1fr)}
 #account-address .table,#account-address .table tbody,#account-address .table tr,#account-address .table td {display:block;width:100%;min-width:0}
 #account-address .table tr {border:1px solid #e2e8da;border-radius:10px;margin-bottom:12px;padding:8px}
 #account-address .table td {border:0;padding:8px;text-align:left}
 #account-address .table td.text-right {display:flex;flex-wrap:wrap;gap:8px}
 #account-address .table td.text-right .btn {flex:1}
 #account-address .table-responsive {border:0}
}

@media(max-width:1024px){
 #simpleaddress .form-group>.control-label,#simpleaddress .form-group>[class*="col-sm-"],#simpleedit .form-group>.control-label,#simpleedit .form-group>[class*="col-sm-"]{float:none;width:100%;max-width:100%;text-align:left}
 #simpleaddress .select2-container,#simpleedit .select2-container{width:100%!important;max-width:100%;min-width:0}
 #simpleaddress .select2-selection{min-height:44px}
 #simpleaddress .select2-selection__rendered{white-space:normal;overflow-wrap:anywhere;line-height:1.5;padding-top:8px;padding-bottom:8px}
 #simpleaddress .form-group{margin-bottom:16px}
}

@media(max-width:1024px){
 #faina-fleet .fleet-journal-wrap:has(.fleet-journal:not(.fleet-items-table)){overflow:visible;border:0}
 #faina-fleet .fleet-journal:not(.fleet-items-table){display:block;min-width:0!important;width:100%;border:0}
 #faina-fleet .fleet-journal:not(.fleet-items-table) thead{display:none}
 #faina-fleet .fleet-journal:not(.fleet-items-table) tbody{display:block}
 #faina-fleet .fleet-journal:not(.fleet-items-table) tbody tr{display:block;border:1px solid #dce5cf;border-radius:10px;padding:10px;margin:0 0 12px;background:#fff}
 #faina-fleet .fleet-journal:not(.fleet-items-table) td{display:block;width:auto!important;min-width:0;max-width:100%;white-space:normal;padding:7px 0;border:0;overflow-wrap:anywhere}
 #faina-fleet .fleet-journal:not(.fleet-items-table) td[data-responsive-label]:before{content:attr(data-responsive-label);display:block;color:#687461;font-size:12px;margin-bottom:3px}
 #faina-fleet .fleet-journal:not(.fleet-items-table) caption{display:block;width:100%}
 #faina-fleet .fleet-journal:not(.fleet-items-table) .fleet-row-actions{display:flex;flex-wrap:wrap;gap:8px}
}

@media(min-width:701px) and (max-width:1024px){
 #faina-fleet .fleet-journal:not(.fleet-items-table) tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #faina-fleet .fleet-journal:not(.fleet-items-table) tbody tr{margin:0}
}

/* Keep every order column, including the view button, inside the content width. */
@media (min-width:1025px) {
 #account-order .order-list-modern__head,
 #account-order .order-list-modern__item {
  grid-template-columns:64px minmax(0,.85fr) minmax(0,1.5fr) minmax(0,.8fr) minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr) 58px;
 }
 #account-order .order-list-modern__head>div,
 #account-order .order-list-modern__cell {
  min-width:0;max-width:100%;box-sizing:border-box;padding-left:8px;padding-right:8px;overflow-wrap:anywhere;white-space:normal;
 }
 #account-order .order-list-modern__image img {max-width:100%;width:60px;height:auto}
 #account-order .order-list-modern__status {max-width:100%;box-sizing:border-box;padding:6px 8px}
 #account-order .order-list-modern__actions .btn {flex:none}
}

/* Larger, balanced category icons. Use the original JD asset instead of a tiny thumbnail. */
#product-category .category-refine__image {height:112px;padding:14px 12px 10px;box-sizing:border-box}
#product-category .category-refine__image img {width:88px;height:88px;max-width:100%;object-fit:contain}
#product-category .category-refine__image img[src*="John"][src*="Deere"] {content:url('/image/catalog/logotip/John%20Deere.png');width:174px;height:88px}
#product-category img.img-thumbnail[src*="John"][src*="Deere"] {content:url('/image/catalog/logotip/John%20Deere.png');width:160px;height:160px;max-width:100%;object-fit:contain;padding:6px}
#product-category .category-refine__name {padding-bottom:14px}
#product-category #content .col-sm-2:has(>img.img-thumbnail[src*="John"][src*="Deere"]) {width:220px;max-width:100%;float:none}
#product-category img.img-thumbnail[src*="John"][src*="Deere"] {width:190px;height:140px}
