/* ===== Account top-tab navigation (replaces old sidebar) ===== */
.account-tabs-nav {
    position: sticky !important;
    top: var(--account-tabs-top, 0px) !important;
    z-index: 9 !important;
    width: auto !important;
    margin: 0 0 24px !important;
    padding: 8px 0 0 !important;
    background: #fff !important;
    border: none !important;
}
.account-tabs-nav .nav.items {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 2px solid #0b6c0b !important;
}
.account-tabs-nav .nav.item {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-top: none !important;
}
.account-tabs-nav .nav.item a,
.account-tabs-nav .nav.item > strong {
    display: inline-block !important;
    padding: 10px 12px !important;
    font-size: 13px;
    font-weight: 500;
    color: #666 !important;
    background: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    border-radius: 6px 6px 0 0 !important;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}
.account-tabs-nav .nav.item a:hover {
    background: #e8e8e8 !important;
    color: #0b6c0b !important;
    text-decoration: none;
}
.account-tabs-nav .nav.item.current a,
.account-tabs-nav .nav.item.current > strong {
    background: #0b6c0b !important;
    color: #fff !important;
    border-color: #0b6c0b !important;
    font-weight: 700;
}
.account-tabs-nav .account-tabs-arrow {
    display: none;
}
@media (max-width: 767px) {
    .account-tabs-nav {
        display: flex;
        align-items: center;
        margin: 5px 0 !important;
        padding: 0 !important;
    }

    /* nowrap is what makes it scroll instead of stacking into rows;
       min-width lets the flex child shrink below its content width */
    .account-tabs-nav .nav.items {
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        padding-bottom: 15px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-bottom: 1px solid #ddd !important;
    }

    /* scrollbar hidden, the arrows show there is more; this one covers older iOS Safari */
    .account-tabs-nav .nav.items::-webkit-scrollbar {
        display: none;
    }

    /* button = white strip, icon = circle; 16px clears the padding + border under the tabs */
    .account-tabs-nav .account-tabs-arrow {
        position: absolute;
        top: 0;
        bottom: 16px;
        z-index: 1;
        display: flex;
        align-items: center;
        width: 72px;
        margin: 0;
        padding: 0 4px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        color: #0b6c0b;
        transition: opacity .15s, visibility .15s;
    }

    /* restated on hover/focus/active: the theme repaints every button */
    .account-tabs-nav .account-tabs-arrow.prev,
    .account-tabs-nav .account-tabs-arrow.prev:hover,
    .account-tabs-nav .account-tabs-arrow.prev:focus,
    .account-tabs-nav .account-tabs-arrow.prev:active {
        left: 0;
        justify-content: flex-start;
        background: #fff;
        border: 0;
        color: #0b6c0b;
    }

    .account-tabs-nav .account-tabs-arrow.next,
    .account-tabs-nav .account-tabs-arrow.next:hover,
    .account-tabs-nav .account-tabs-arrow.next:focus,
    .account-tabs-nav .account-tabs-arrow.next:active {
        right: 0;
        justify-content: flex-end;
        background: #fff;
        border: 0;
        color: #0b6c0b;
    }

    .account-tabs-nav .account-tabs-arrow .fa {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .65);
        font-size: 16px;
    }

    /* the chevron glyphs sit off-centre, nudge each one back */
    .account-tabs-nav .account-tabs-arrow.prev i {
        padding-right: 3px;
    }

    .account-tabs-nav .account-tabs-arrow.next i {
        padding-left: 3px;
    }

    .account-tabs-nav.at-start .account-tabs-arrow.prev,
    .account-tabs-nav.at-end .account-tabs-arrow.next {
        opacity: 0;
        visibility: hidden;
    }

    .account-tabs-nav .nav.item {
        flex: 0 0 auto !important;
    }

    .account-tabs-nav .nav.item a,
    .account-tabs-nav .nav.item > strong {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 5px;
        width: 82px;
        padding: 10px 6px !important;
        background: none !important;
        border: none !important;
        border-bottom: 3px solid transparent !important;
        border-radius: 0 !important;
        white-space: normal;
        text-align: center;
        font-size: 11px;
        line-height: 1.25;
    }

    /* first tab only: collapse "User Account Information" and print a short
       label instead. font-size:0 leaves the real text in the DOM for screen
       readers; gap goes to 0 because the collapsed text is still a flex item */
    .account-tabs-nav .nav.item:first-child a,
    .account-tabs-nav .nav.item:first-child > strong {
        gap: 0;
        font-size: 0;
    }

    .account-tabs-nav .nav.item:first-child a:after,
    .account-tabs-nav .nav.item:first-child > strong:after {
        content: "User\A Info";
        white-space: pre;
        margin-top: 5px;
        font-size: 11px;
        line-height: 1.25;
    }

    /* Order Details fits on one line at 82px; a word-space wider than the
       tab forces the break without replacing the (translatable) text.
       The current tab renders <strong> with no href, hence the body class */
    .account-tabs-nav .nav.item a[href*="/orderdetails/"],
    .account-tabs-nav .nav.item a[href*="/isadmin/"],
    .tamerxfrontcustmainaccts-orderdetails-index .nav.item.current > strong,
    .tamerxfrontcustmainaccts-isadmin-index .nav.item.current > strong {
        word-spacing: 100px;
    }

    /* the icon class comes from the layout's attributes argument, which
       Link\Current puts on both the <a> and the current <strong> */
    .account-tabs-nav .nav.item a:before,
    .account-tabs-nav .nav.item > strong:before {
        font-family: FontAwesome;
        font-weight: 400;
        font-size: 22px;
        line-height: 1;
        padding-bottom: 5px;
    }

    /* fa-user */
    .account-tabs-nav .tab-icon-user:before {
        content: "\f007";
    }

    /* fa-map-marker */
    .account-tabs-nav .tab-icon-billing:before {
        content: "\f041";
    }

    /* fa-truck */
    .account-tabs-nav .tab-icon-shipping:before {
        content: "\f0d1";
    }

    /* fa-file-text-o */
    .account-tabs-nav .tab-icon-orders:before {
        content: "\f0f6";
    }

    /* fa-clipboard */
    .account-tabs-nav .tab-icon-order-details:before {
        content: "\f0ea";
    }

    /* fa-undo */
    .account-tabs-nav .tab-icon-refund:before {
        content: "\f0e2";
    }

    /* fa-tags */
    .account-tabs-nav .tab-icon-pricelist:before {
        content: "\f02c";
    }

    /* fa-credit-card */
    .account-tabs-nav .tab-icon-card:before {
        content: "\f09d";
    }

    .account-tabs-nav .nav.item.current a,
    .account-tabs-nav .nav.item.current > strong {
        background: none !important;
        color: #0b6c0b !important;
        border-bottom-color: #0b6c0b !important;
    }
}

@media (min-width: 768px) {
    .account .page-title-wrapper,
    .account .page-main > .page-title-wrapper,
    .account .column.main > .page-title-wrapper {
        display: none !important;
    }
    .account .messages {
        margin: 0;
    }
    .account .message.error {
        margin: 10px 0;
    }
}

@media (max-width: 767px) {
    /* the theme pushes .block-title > .action down 5px below 768px
       (styles-m.css:35245, 7 classes) - this has to outrank that */
    body.account .columns .column.main .block-dashboard-info:not(.widget) .block-title > .action,
    body.account .columns .column.main .block-billing-address:not(.widget) .block-title > .action {
        margin-top: 0;
    }

    /* the current tab names the page, so the h1 is redundant */
    .account .page-title-wrapper,
    .account .page-main > .page-title-wrapper,
    .account .column.main > .page-title-wrapper {
        display: none !important;
    }

    /* both the wrapper and the two inner alert containers carry .messages */
    .account .page.messages,
    .account .page.messages .messages {
        margin-bottom: 0;
    }

    /* the header is fixed, so this padding is the space it sits in; the
       padding must never be less than the height or content hides behind
       it, and the 18px difference is the black gap under the header */
    body.account .page-header {
        height: 120px;
    }

    body.account .page-wrapper {
        padding-top: 138px;
    }

    /* BFC: an empty .page.messages collapses its 40px through main's top edge,
       which lands the gap outside main's white background and reads as black */
    body.account .page-main {
        display: flow-root;
    }

    /* body prefix beats the theme's .page-layout-1column .columns */
    body.account .columns {
        padding-inline: 0;
    }

    body.account .columns .main .block {
        padding-inline: 0;
        padding-bottom: 0;
        margin-bottom: 0;
        box-shadow: none;
    }

    /* :not(.widget) matches the theme's own selector for this border */
    body.account .columns .main .block:not(.widget) .block-title {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 15px;
    }

    /* the theme clearfixes .block-title below 768px; those pseudos become
       flex items and space-between then splits the row four ways */
    body.account .columns .main .block-shipping-address:not(.widget) .block-title:before,
    body.account .columns .main .block-shipping-address:not(.widget) .block-title:after {
        display: none;
    }

    body.account .columns .main .block-dashboard-info:not(.widget) .block-title:before,
    body.account .columns .main .block-dashboard-info:not(.widget) .block-title:after,
    body.account .columns .main .block-billing-address:not(.widget) .block-title:before,
    body.account .columns .main .block-billing-address:not(.widget) .block-title:after {
        display: none;
    }
}

.account .page-main,
.account .columns,
.account .column.main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.account .order-links .item {
	line-height: 15px;
}

.account li.nav.item.current {
	color: #FFFFFF;
}

.account .order-details-items .product-item-name {
	font-size: 1.35rem;
    padding: 5px;
}
.account th {
	font-weight: 600;
    font-size: 1.5rem;
}

.account .order-details-items .col.name {
	padding: 10px;
}

.account .actions a.action.order, 
.account .actions a.action.print {
	padding: 5px 10px;
    border: 1px solid #137513;
    border-radius: 5px;
    background: #0B6C0B;
    color: #FFF;
    font-weight: 600;
	display: inline-flex;
}

.account .actions a.action.view {
	padding: 5px 10px;
    border: 1px solid #137513;
    border-radius: 5px;
    background: #FFFFFF;
    color: #0B6C0B;
    font-weight: 600;
	display: inline-flex;
}

.account .data.table .col.actions .action:after {
	display: none;
}

.account 
.account table.data.table-order-items.invoice, 
.account table#my-installments-table, 
.account table.data.table-order-items.creditmemo,
.account table.data.table-order-items.shipment  {
	border: 2px solid #999999 !important;
}

/* 4112: dashboard info table header, matches sales/order/history */
.account .table-wrapper.account-info thead th {
	background: #f5f5f5;
}

/* 4112: Edit moved into the block title; the in-table copy stays for the JS
   binding but is hidden. Scoped to the dashboard block - the billing and
   shipping tabs use the same .action.edit selector */
.account .block-dashboard-info .block-title,
.account .block-billing-address .block-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.account .block-dashboard-info .block-title a.action.edit,
.account .block-billing-address .block-title a.action.edit {
	padding: 5px 10px;
	border: 1px solid #137513;
	border-radius: 5px;
	font-weight: 600;
	background: #FFFFFF;
	color: #0B6C0B;
	text-decoration: none;
}

/* the theme puts a '\f101' arrow on .block-title .action.edit at (0,8,1) -
   matching its class count plus body is what beats it */
body.account .columns .column.main .block-dashboard-info:not(.widget) .block-title .action.edit:after,
body.account .columns .column.main .block-billing-address:not(.widget) .block-title .action.edit:after {
	content: none;
}

/* Edit lives in the block title on both tables; the dashboard's Change Email /
   Change Password are reachable from inside the edit modal */
#billing-address-table th.col.actions,
#billing-address-table td.col.actions,
#account-info-table th.col.actions,
#account-info-table td.col.actions {
	display: none;
}

/* 4112: dashboard info actions, styled like the Recent Orders buttons */
.account .table-wrapper.account-info a.action.edit,
.account .table-wrapper.account-info a.action.change-email,
.account .table-wrapper.account-info a.action.change-password {
	padding: 5px 10px;
	border: 1px solid #137513;
	border-radius: 5px;
	font-weight: 600;
	display: inline-flex;
	margin-right: 5px;
	background: #FFFFFF;
	color: #0B6C0B;
}

/* 4112: billing address tab, Edit is disabled for wholesale members */
.account .table-wrapper.account-info span.action.edit.disabled,
.account .block-billing-address .block-title span.action.edit.disabled {
	padding: 5px 10px;
	border: 1px solid #cccccc;
	border-radius: 5px;
	font-weight: 600;
	display: inline-flex;
	margin-right: 5px;
	background: #f5f5f5;
	color: #999999;
	cursor: not-allowed;
}

/* 4112: shipping address tab - Edit and Delete share a width so the
   action column lines up row to row; inline-flex needs justify-content
   to centre the label once the box is wider than the text */
.account #shipping-address-table .col.actions .action.edit,
.account #shipping-address-table .col.actions .action.delete {
	min-width: 72px;
	justify-content: center;
}

/* 4112: shipping address tab */
.account .table-wrapper.account-info a.action.delete {
	padding: 5px 10px;
	border: 1px solid #999999;
	border-radius: 5px;
	font-weight: 600;
	display: inline-flex;
	background: #FFFFFF;
	color: #666666;
}

.account .table-wrapper.account-info a.action.delete:hover {
	border-color: #c0392b;
	color: #c0392b;
}

/* matches th and td - both carry .col.default, so the header sits over the radio */
.account #shipping-address-table .col.default {
	text-align: center;
}

/* the word "Default" is for screen readers and stacked mobile rows, not the desktop grid */
.account #shipping-address-table .shipping-default-radio .label {
	display: none;
}

/* Add sits in the title row, right-aligned, matching checkout's .tx-add-address-link */
.account .block-shipping-address .block-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.account .block-shipping-address .block-title .action.add-address {
	background: none;
	border: none;
	padding: 0;
	color: #0d860d;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
}

.account .block-shipping-address .block-title .action.add-address:hover {
	text-decoration: underline;
}

@media (max-width: 767px) {
	/* The :before already reads "Default:"; this would be a second copy. */
	.account #shipping-address-table .shipping-default-radio .label {
		display: none;
	}

	/* keeps .col so it outranks the centring rule above */
	.account #shipping-address-table td.col.default {
		text-align: left;
	}
}

/* 4112 account modals: .account not .customer-account-index, that is the dashboard only */
.account .account-modal-form {
	font-size: 14px;
}

.account .account-modal-form .field label {
	font-weight: bold;
	margin-top: 20px;
	display: inline-block;
	margin-bottom: 10px;
	font-size: 14px;
}

.account .account-modal-form .field:first-of-type label {
	margin-top: 0;
}

.account .account-edit-modal-popup .modal-title {
	color: #000000;
}

.account .account-modal-form .control input,
.account .account-modal-form .control select {
	font-size: 14px;
}

.account .account-edit-modal-popup .modal-inner-wrap {
	width: 500px;
}

.account .account-modal-form .actions-toolbar {
	margin-top: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

/* clearfix pseudos would become flex items and skew the gap/centering */
.account .account-modal-form .actions-toolbar:before,
.account .account-modal-form .actions-toolbar:after {
	display: none;
}

/* Magento's toolbar mixin pushes .secondary .action down 6px on desktop */
.account .account-modal-form .actions-toolbar .primary,
.account .account-modal-form .actions-toolbar .secondary {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	float: none;
}

.account .account-modal-form .actions-toolbar .secondary .action {
	margin: 0;
}

/* :user-invalid not :invalid - plain :invalid is red before anyone types */
.account .account-modal-form .field:has(input:user-invalid) > label,
.account .account-modal-form .field:has(select:user-invalid) > label {
	color: #e02b27;
}

.account .account-modal-form .control input:user-invalid,
.account .account-modal-form .control select:user-invalid {
	border-color: #e02b27;
}

/* links inside the edit modal - scoped through .account-modal-form, since the
   widget moves the modal to body > .modals-wrapper and .column.main is gone */
.account .account-modal-form .account-modal-links {
	display: flex;
	justify-content: center; flex-wrap: wrap;
	gap: 20px;
	margin-top: 25px;
}

.account .account-modal-form .account-modal-links a {
	color: #0B6C0B;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.account .account-modal-form .account-modal-links a:hover {
	text-decoration: underline;
}

/* 4126 delete link, same red as the deletion pages */
.account .account-modal-form .account-modal-links a.account-modal-link-delete {
	color: #b3261e;
}

/* capitalize overrides the theme's uppercase on <button>, so Save and Cancel match */
.account .account-modal-form .actions-toolbar .action.save,
.account .account-modal-form .actions-toolbar .secondary .action {
	box-sizing: border-box;
	height: 36px;
	line-height: 34px;
	padding: 0 15px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	text-transform: capitalize;
}

.account .account-modal-form .actions-toolbar .secondary .action {
	display: inline-block;
	background: #FFFFFF;
	border: 1px solid #0B6C0B;
	color: #0B6C0B;
	text-decoration: none;
}

.account .account-modal-form .actions-toolbar .secondary .action:hover {
	background: #0B6C0B;
	color: #FFFFFF;
}

@media (max-width: 767px) {
	/* 500px is wider than the viewport; left/right:0 makes the auto margins negative */
	.account .account-edit-modal-popup .modal-inner-wrap {
		width: 100%;
	}
}


/* 4112: phone country picker beside User Phone in the edit modal */
.account .account-modal-form .control.tx-phone-control {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

/* min-width:0 or the input refuses to shrink below its content width */
.account .account-modal-form .tx-phone-control .input-text {
	flex: 1 1 auto;
	min-width: 0;
}

.account .tx-phone-country {
	position: relative;
	flex: 0 0 auto;
}

.account .tx-phone-country-trigger {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 0 10px;
	border: 1px solid #c2c2c2;
	border-radius: 1px;
	background: #fff;
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
	color: #333333;
	cursor: pointer;
}

.account .tx-phone-country-trigger:hover,
.account .tx-phone-country-trigger:focus {
	background: #f5f5f5;
	border-color: #999999;
	color: #333333;
}

.account .tx-phone-country-caret {
	border-top: 5px solid #666666;
	border-right: 4px solid transparent;
	border-left: 4px solid transparent;
}

.account .tx-phone-country-menu {
	position: absolute;
	top: calc(100% + 2px);
	left: 0;
	z-index: 5;
	min-width: 100%;
	background: #fff;
	border: 1px solid #c2c2c2;
	box-shadow: 0 3px 6px rgba(0, 0, 0, .18);
}

.account .tx-phone-country-option {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 7px 10px;
	border: 0;
	background: none;
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
	color: #333333;
	white-space: nowrap;
	cursor: pointer;
}

.account .tx-phone-country-option:hover,
.account .tx-phone-country-option:focus {
	background: #f5f5f5;
	color: #333333;
}

.account .tx-phone-country-option[aria-selected="true"] {
	font-weight: 600;
}


/* 4112 mobile: four-line card. DOM order differs, so cells are reflowed with flex order. */
@media (max-width: 767px) {
	.account #shipping-address-table tbody tr {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 2px;
	}

	/* Undoes the theme's 33%-wide floated stacked cell. */
	.account #shipping-address-table tbody td.col {
		width: auto;
		float: none;
		padding: 0;
		margin-right: 4px;
		white-space: normal;
	}

	/* Labels off except on Default. */
	.account #shipping-address-table tbody td.col:before {
		display: none;
	}

	.account #shipping-address-table tbody td.col.default:before {
		display: inline;
		padding-bottom: 0;
	}

	/* An empty cell takes its comma with it. */
	.account #shipping-address-table tbody td.col:empty {
		display: none;
	}

	.account #shipping-address-table tbody td.col.name:after,
	.account #shipping-address-table tbody td.col.company:after,
	.account #shipping-address-table tbody td.col.street:after,
	.account #shipping-address-table tbody td.col.postcode:after,
	.account #shipping-address-table tbody td.col.region:after {
		content: ",";
	}

	/* Full width, so flex-wrap gives each its own line. */
	.account #shipping-address-table tbody td.col.default,
	.account #shipping-address-table tbody td.col.actions {
		width: 100%;
		margin-right: 0;
	}

	.account #shipping-address-table tbody td.col.default  { order: 1; }
	.account #shipping-address-table tbody td.col.name     { order: 2; }
	.account #shipping-address-table tbody td.col.company  { order: 3; }
	.account #shipping-address-table tbody td.col.phone    { order: 4; }
	.account #shipping-address-table tbody td.col.street   { order: 6; }
	.account #shipping-address-table tbody td.col.city     { order: 7; }
	.account #shipping-address-table tbody td.col.postcode { order: 8; }
	.account #shipping-address-table tbody td.col.region   { order: 9; }
	.account #shipping-address-table tbody td.col.country  { order: 10; }
	.account #shipping-address-table tbody td.col.actions  { order: 11; }

	/* Break between the name line and the address line. */
	.account #shipping-address-table tbody tr:after {
		content: "";
		width: 100%;
		order: 5;
	}

	/* The cell that starts each of the four lines, so the whole card is indented.
	   Two classes outrank the `padding: 0` on td.col above. */
	.account #shipping-address-table tbody td.col.default,
	.account #shipping-address-table tbody td.col.name,
	.account #shipping-address-table tbody td.col.street,
	.account #shipping-address-table tbody td.col.actions {
		padding-left: 10px;
	}

	/* Longhand: keeps the `padding: 0` above zeroing left and right. */
	.account #shipping-address-table tbody td.col.default {
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.account #shipping-address-table tbody td.col.actions {
		padding-top: 8px;
		padding-bottom: 12px;
	}
}


/* 4112 mobile: two-line card. Same technique as #shipping-address-table; no radio, and
   the Action column is already hidden at every width. */
@media (max-width: 767px) {
	.account #billing-address-table tbody tr {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 2px;
		padding-top: 20px;
		padding-bottom: 20px;
		padding-left: 10px;
		border-bottom: solid 1px #cccccc;
	}

	.account #billing-address-table tbody td.col {
		width: auto;
		float: none;
		padding: 0;
		margin-right: 4px;
		white-space: normal;
	}

	.account #billing-address-table tbody td.col:before {
		display: none;
	}

	/* An empty cell takes its comma with it - State is blank on most non-US addresses. */
	.account #billing-address-table tbody td.col:empty {
		display: none;
	}

	.account #billing-address-table tbody td.col.name:after,
	.account #billing-address-table tbody td.col.company:after,
	.account #billing-address-table tbody td.col.street:after,
	.account #billing-address-table tbody td.col.postcode:after,
	.account #billing-address-table tbody td.col.region:after {
		content: ",";
	}

	.account #billing-address-table tbody td.col.name     { order: 1; }
	.account #billing-address-table tbody td.col.company  { order: 2; }
	.account #billing-address-table tbody td.col.phone    { order: 3; }
	.account #billing-address-table tbody td.col.street   { order: 5; }
	.account #billing-address-table tbody td.col.city     { order: 6; }
	.account #billing-address-table tbody td.col.postcode { order: 7; }
	.account #billing-address-table tbody td.col.region   { order: 8; }
	.account #billing-address-table tbody td.col.country  { order: 9; }

	/* :has() - a wholesale member has no name cell, so no break and no empty first line. */
	.account #billing-address-table tbody tr:has(td.col.name):after {
		content: "";
		width: 100%;
		order: 4;
	}
}


/* 4112: line the dashboard's two tables up with each other. table-layout: fixed is what
   makes the widths authoritative - auto layout treats them as hints and lets the differing
   content pull the columns apart. 640px is where the theme stops stacking these rows into
   cards (.account .table-order-items tbody tr, Magento_Sales/_module.less). */
@media (min-width: 640px) {
	.account #account-info-table,
	.account #wholesale-account-table {
		table-layout: fixed;
	}

	/* The info table's sixth column, .col.actions, is display:none and takes no width. */
	.account #account-info-table thead th,
	.account #wholesale-account-table thead th {
		width: 20%;
	}

	.account #account-info-table th,
	.account #account-info-table td,
	.account #wholesale-account-table th,
	.account #wholesale-account-table td {
		text-align: center;
		overflow-wrap: break-word;
	}
}


/* 4112 mobile: the dashboard's two tables as stacked cards. 639px is the theme's own
   stacking breakpoint, so this and the min-width: 640px block above meet with no gap. */
@media (max-width: 639px) {
	.account #account-info-table tbody td,
	.account #wholesale-account-table tbody td {
		padding-top: 12px;
		padding-bottom: 12px;
		border-bottom: solid 1px #dfdfdf;
	}

	/* The data-th label. It is already inline-block from the theme's responsive mixin,
	   so a width applies; a fixed one lines the values up down the card. */
	.account #account-info-table tbody td:before,
	.account #wholesale-account-table tbody td:before {
		width: 115px;
	}
}


/* 4112 desktop: rows are taller than their text because of the Edit/Delete buttons, and
   the core table mixin top-aligns every body cell (lib/_tables.less). */
@media (min-width: 768px) {
	.account #shipping-address-table tbody td {
		vertical-align: middle;
	}
}
