/* My Account pages only. Everything is scoped to .statement-container so nothing leaks to the theme/WooCommerce. */
.statement-container{ width:100%; overflow-x:auto; }
.statement-container h3{ margin:0 0 14px; padding:0; font-size:24px; line-height:1.1; }
.statement-container .shop_table thead th{ background:#FF782D; color:#fff; text-align:left; border:1px solid #fff; }
.statement-container .shop_table tbody td{ padding:12px; border:1px solid #ddd; font-size:15px; color:#333; vertical-align:middle; }
.statement-container .shop_table tbody td img{ width:72px; height:72px; max-width:none; object-fit:cover; border-radius:6px; display:block; margin:0 auto; }
.statement-container .shop_table tbody td img[width="50"]{ width:50px; height:50px; border-radius:0; }
.statement-container .shop_table tbody tr:hover{ background:#f6f6f6; }
.statement-container .edit-profile-button{ display:inline-block; padding:6px 12px; margin:2px 0; border-radius:5px; font-size:14px; line-height:1.3; color:#fff !important; text-decoration:none; background:#007bff; }
.statement-container .edit-profile-button:hover{ background:#0056b3; }
.statement-container .edit-profile-button.view-profile-button{ background:#28a745; }
.statement-container .edit-profile-button.view-profile-button:hover{ background:#1e7e34; }

/* My Account sidebar menu (scoped to the account page only) */
.woocommerce-account .woocommerce-MyAccount-navigation ul{ list-style:none; margin:0; padding:0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li{ list-style:none; margin:0; padding:0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a{
    display:block; font-size:16px; font-weight:500; padding:7px 10px; margin-bottom:5px;
    color:#c36; border:1px solid #c36; border-radius:7px; text-align:left;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a{ background:#c36; color:#fff; transition:all .3s linear; }

/* keep Edit / View buttons side by side */
.statement-container .shop_table tbody td:last-child{ white-space:nowrap; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a{ text-decoration:none; }

/* My Account page title + layout alignment */
.woocommerce-account .entry-title,
.woocommerce-account .page-header h1,
.woocommerce-account main h1,
.woocommerce-account .site-main h1{
    font-size:28px; line-height:1.3; margin:28px 0 20px; padding:0;
}
.woocommerce-account .woocommerce-MyAccount-navigation{ margin-top:0; }
.woocommerce-account .woocommerce-MyAccount-content{ box-sizing:border-box; padding-left:28px; margin-top:0; }
@media (max-width:768px){
    .woocommerce-account .woocommerce-MyAccount-content{ padding-left:0; }
    .woocommerce-account .entry-title, .woocommerce-account main h1, .woocommerce-account .site-main h1{ font-size:24px; margin:20px 0 14px; }
}

/* remove the extra gap above the content so it lines up with the top of the sidebar menu */
.woocommerce-account .woocommerce-notices-wrapper:empty{ display:none; margin:0; padding:0; }
.woocommerce-account .woocommerce-MyAccount-content{ padding-top:0; margin-top:0; }
.woocommerce-account .woocommerce-MyAccount-content > :first-child,
.woocommerce-account .woocommerce-MyAccount-content .statement-container{ margin-top:0; padding-top:0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li:first-child a{ margin-top:0; }
.woocommerce-account .entry-title,
.woocommerce-account .page-header h1,
.woocommerce-account main h1,
.woocommerce-account .site-main h1{ margin-bottom:14px; }

/* Desktop: pull the right-hand content up so its heading sits on the same line as the "My account" title */
@media (min-width: 769px){
    .woocommerce-account .woocommerce-MyAccount-content{ margin-top:-41px; }
}
