/* Account layout repairs belong to the theme, independent of dashboard extensions. */
body.rona-beauty-account .woocommerce-MyAccount-navigation,
body.rona-beauty-account .woocommerce-MyAccount-content{box-sizing:border-box;min-width:0}
body.rona-beauty-account .woocommerce-MyAccount-content .woocommerce-orders-table{table-layout:auto}
body.rona-beauty-account .woocommerce-orders-table__cell-order-actions .button{margin:3px;white-space:normal;text-align:center}
body.rona-beauty-account .woocommerce-orders-table__cell-order-number a{border:0;font-weight:800}
body.rona-beauty-account .woocommerce-orders-table__cell-order-status{font-weight:700;color:var(--rb-account-deep)}
body.rona-beauty-account .woocommerce-Pagination{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}

/* Address cards also work when WooCommerce renders a single address without a grid wrapper. */
body.rona-beauty-account .woocommerce-MyAccount-content .woocommerce-Address{box-sizing:border-box;min-width:0;width:100%!important;float:none!important;margin:0 0 18px!important;border:1px solid var(--rb-account-line);border-radius:16px;overflow:hidden;background:#fff}
body.rona-beauty-account .woocommerce-Addresses .woocommerce-Address{margin:0!important}
body.rona-beauty-account .woocommerce-Address .woocommerce-Address-title{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px 18px}
body.rona-beauty-account .woocommerce-Address .woocommerce-Address-title::before,
body.rona-beauty-account .woocommerce-Address .woocommerce-Address-title::after{display:none}
body.rona-beauty-account .woocommerce-Address .woocommerce-Address-title h2{float:none;margin:0;flex:1 1 160px;line-height:1.8}
body.rona-beauty-account .woocommerce-Address .woocommerce-Address-title .edit{float:none;max-width:100%;min-height:40px;padding:8px 14px;border-radius:10px;white-space:normal;line-height:1.8;text-align:center}
body.rona-beauty-account .woocommerce-Address address{margin:0;padding:20px;line-height:2.2;font-style:normal;overflow-wrap:anywhere;white-space:normal;text-align:right}
body.rona-beauty-account .woocommerce-Address address br{display:block;content:"";margin-bottom:5px}
body.rona-beauty-account .woocommerce-Address .edit:focus-visible{outline:2px solid var(--rb-account-deep);outline-offset:3px}

@media(max-width:781px){
	/* Flex children must stretch rather than shrink to the intrinsic table width. */
	body.logged-in.rona-beauty-account .entry-content>.woocommerce{align-items:stretch}
	body.rona-beauty-account .woocommerce-MyAccount-navigation,
	body.rona-beauty-account .woocommerce-MyAccount-content{width:100%!important;max-width:100%;align-self:stretch}
	body.rona-beauty-account .woocommerce-MyAccount-navigation ul{max-width:100%;min-width:0}
	/* Each order becomes a full-width card; custom columns retain their data-title label. */
	body.rona-beauty-account .woocommerce-MyAccount-content table.woocommerce-orders-table{display:block;width:100%;border:0;background:transparent;overflow:visible;margin:0}
	body.rona-beauty-account .woocommerce-orders-table thead{display:none}
	body.rona-beauty-account .woocommerce-orders-table tbody{display:grid;width:100%;gap:16px}
	body.rona-beauty-account .woocommerce-orders-table tr.order{display:block;width:100%;box-sizing:border-box;padding:6px 14px;border:1px solid var(--rb-account-line);border-radius:14px;background:#fff;box-shadow:0 5px 18px #49303808}
	body.rona-beauty-account .woocommerce-orders-table tr.order > td,
	body.rona-beauty-account .woocommerce-orders-table tr.order > th{display:block!important;box-sizing:border-box;width:100%!important;min-width:0;padding:12px 0;border:0;border-bottom:1px solid #f1e7ea;background:transparent!important;text-align:left!important;font-size:13px;line-height:1.9;overflow-wrap:anywhere}
	body.rona-beauty-account .woocommerce-orders-table tr.order > [data-title]::before{content:attr(data-title);float:right;max-width:45%;margin-left:16px;color:var(--rb-account-muted);font-weight:600;text-align:right}
	body.rona-beauty-account .woocommerce-orders-table tr.order > [data-title]::after{content:"";display:block;clear:both}
	body.rona-beauty-account .woocommerce-orders-table tr.order > .woocommerce-orders-table__cell-order-number{background:var(--rb-account-soft)!important;margin:0 -14px;padding:12px 14px;width:calc(100% + 28px)!important;border-radius:9px 9px 0 0;font-size:15px}
	body.rona-beauty-account .woocommerce-orders-table tr.order > .woocommerce-orders-table__cell-order-actions{display:flex!important;flex-wrap:wrap;justify-content:flex-start;gap:8px;border-bottom:0;text-align:right!important}
	body.rona-beauty-account .woocommerce-orders-table tr.order > .woocommerce-orders-table__cell-order-actions::before,
	body.rona-beauty-account .woocommerce-orders-table tr.order > .woocommerce-orders-table__cell-order-actions::after{display:none}
	body.rona-beauty-account .woocommerce-orders-table__cell-order-actions .button{flex:1 1 100px;min-height:42px;margin:0;justify-content:center}
	body.rona-beauty-account .woocommerce-Address .woocommerce-Address-title{padding:14px}
	body.rona-beauty-account .woocommerce-Address .woocommerce-Address-title h2{font-size:14px}
	body.rona-beauty-account .woocommerce-Address address{padding:16px;font-size:14px}
}
