/* ============================================================
   ORVEX SPORTS - PREMIUM MY ACCOUNT DASHBOARD (ULTIMATE STRETCH)
   ============================================================ */

/* --- 1. FULL CONTAINER STRETCH ON ALL MY ACCOUNT PAGES --- */
/* Forces Astra parent and Elementor grid wrappers to stretch up to 1700px on this page */
body.woocommerce-account,
body.woocommerce-account .site,
body.woocommerce-account .site-content,
body.woocommerce-account #primary,
body.woocommerce-account #main,
body.woocommerce-account .entry-content,
body.woocommerce-account .woocommerce,
body.woocommerce-account .elementor-section,
body.woocommerce-account .elementor-container,
body.woocommerce-account .elementor-column,
body.woocommerce-account .elementor-widget-container {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
    max-width: 1700px !important; /* Stretches standard Astra & Elementor boundaries */
    width: 95% !important;
    box-sizing: border-box !important;
}

/* Hide default Astra page title */
body.woocommerce-account .entry-title,
body.woocommerce-account h1.entry-title,
body.woocommerce-account .ast-archive-title {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Base Layout Wrapper */
.orvex-cart-page-wrapper,
.woocommerce-account .woocommerce {
    background-color: #000000 !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Logged-In State (Dashboard 2-Column Flex Layout) */
body.woocommerce-account .woocommerce {
    display: flex !important;
    gap: 40px !important;
    max-width: 1700px !important; /* Stretched widescreen */
    width: 100% !important;
    margin: 50px auto !important;
    align-items: flex-start !important;
    box-sizing: border-box;
}

/* Left Sidebar Navigation */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 320px !important; /* Balanced sidebar width */
    flex-shrink: 0 !important;
    background-color: #050505 !important;
    border: 1px solid #151515 !important;
    border-radius: 15px !important;
    padding: 25px !important;
    box-sizing: border-box !important;
    height: fit-content !important;
    float: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    color: #aaaaaa !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 12px 20px !important;
    display: block !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
    box-sizing: border-box !important;
    letter-spacing: 0.5px !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    color: #ff6800 !important;
    border-color: #ff6800 !important;
    padding-left: 25px !important; /* Premium slide-right on hover */
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #ff6800 !important;
    color: #ffffff !important;
    border-color: #ff6800 !important;
    box-shadow: 0 5px 15px rgba(255, 104, 0, 0.3) !important;
}

/* Right Content Area Box */
body.woocommerce-account .woocommerce-MyAccount-content {
    flex-grow: 1 !important;
    background-color: #050505 !important;
    border: 1px solid #151515 !important;
    border-radius: 15px !important; /* Smooth curved card edges */
    padding: 40px !important;
    box-sizing: border-box !important;
    color: #cccccc !important;
    float: none !important;
    width: auto !important;
    position: relative;
    overflow: hidden !important; /* Completely kills vertical/horizontal scrollbars */
}

/* Force All texts inside dashboard content area to be light grey */
body.woocommerce-account .woocommerce-MyAccount-content p,
body.woocommerce-account .woocommerce-MyAccount-content span {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #cccccc !important;
}

/* Sub-title grey alignment text styling */
body.woocommerce-account .woocommerce-MyAccount-content > p {
    color: #888888 !important;
    font-size: 14px !important;
    margin-bottom: 30px !important;
}

/* Forces WooCommerce <mark> tags (Order numbers, dates, status) to be readable white */
body.woocommerce-account .woocommerce-MyAccount-content mark {
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content p a {
    color: #ff6800 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: 0.3s;
}

body.woocommerce-account .woocommerce-MyAccount-content p a:hover {
    text-decoration: underline !important;
}

/* --- 2. THE ADDRESSES PAGE OVERRIDES (Kills white header boxes & overlaps) --- */
body.woocommerce-account .woocommerce-MyAccount-content .col2-set {
    display: flex !important;
    gap: 30px !important;
    margin-top: 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .col-1,
body.woocommerce-account .woocommerce-MyAccount-content .col-2 {
    flex: 1 !important;
    background-color: #080808 !important; /* Symmetrical dark cards */
    border: 1px solid #151515 !important;
    padding: 35px 30px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    float: none !important;
    width: auto !important; /* Let Flexbox calculate exact wide widths cleanly */
    transition: 0.3s ease;
}

body.woocommerce-account .woocommerce-MyAccount-content .col-1:hover,
body.woocommerce-account .woocommerce-MyAccount-content .col-2:hover {
    border-color: #ff6800 !important;
    box-shadow: 0 10px 20px rgba(255, 104, 0, 0.1) !important;
}

/* Flexbox on the titles wrapper (Separates heading to left, and edit button to right) */
body.woocommerce-account .woocommerce-Address-title,
body.woocommerce-account header.title {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 25px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    float: none !important;
    width: 100% !important;
}

/* Billing & Shipping header text styling */
body.woocommerce-account .woocommerce-Address-title h3,
body.woocommerce-account header.title h3 {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    border-left: 3px solid #ff6800;
    padding-left: 12px !important;
    letter-spacing: 0.5px;
    background: transparent !important;
}

/* Force Reset Astra's Circular Fixed dimensions to render a complete Horizontal Capsule */
body.woocommerce-account .woocommerce-MyAccount-content .edit,
body.woocommerce-account .woocommerce-MyAccount-content .edit-link,
body.woocommerce-account .woocommerce-Address-title a.edit,
body.woocommerce-account .woocommerce-MyAccount-content a.edit,
body.woocommerce-account table.shop_table td .button {
    position: static !important; /* Removes floats and absolute placement */
    float: none !important;
    transform: none !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ff6800 !important;
    border-radius: 50px !important;
    padding: 10px 25px !important; /* Symmetrical capsule padding */
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    height: 48px !important; /* Standard centered height */
    width: auto !important; /* Bypasses Astra's 40px circular lock */
    min-width: 0 !important;
    min-height: 0 !important;
    white-space: nowrap !important; /* Prevents text from breaking vertically */
    line-height: 1 !important;
    box-sizing: border-box !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .edit:hover,
body.woocommerce-account .woocommerce-Address-title a.edit:hover,
body.woocommerce-account table.shop_table td .button:hover {
    background-color: #ff6800 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(255, 104, 0, 0.4) !important;
}

/* Address details body styling (Kills raw white nested borders) */
body.woocommerce-account address {
    color: #aaaaaa !important;
    line-height: 1.8 !important;
    font-style: normal !important;
    font-size: 14px !important;
    border: none !important; /* Kills default white borders */
    padding: 0 !important;
    background-color: transparent !important;
    text-align: left !important;
}

/* --- 3. THEME-SCOPED BUTTONS OVERRIDE (Forced Flex-Center text alignment) --- */
body.woocommerce-account button,
body.woocommerce-account input[type="submit"],
body.woocommerce-account .button,
body.woocommerce-account .woocommerce-Button,
body.woocommerce-account a.button {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ff6800 !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    /* Force absolute centered alignment on text */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important; /* Consistent professional height */
    padding: 0 25px !important; /* Symmetrical capsule padding */
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    white-space: nowrap !important; /* Prevents text from breaking vertically */
    line-height: 1 !important;
    float: none !important;
    margin: 0 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

body.woocommerce-account button:hover,
body.woocommerce-account input[type="submit"]:hover,
body.woocommerce-account .button:hover,
body.woocommerce-account .woocommerce-Button:hover {
    background-color: #ff6800 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(255, 104, 0, 0.4) !important;
}

/* --- 4. FORM FIELDS INSIDE ACCOUNT DETAILS TAB --- */
body.woocommerce-account form label {
    color: #cccccc !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px !important;
}

body.woocommerce-account form input[type="text"],
body.woocommerce-account form input[type="email"],
body.woocommerce-account form input[type="password"],
body.woocommerce-account form select {
    background-color: #111111 !important;
    color: #ffffff !important;
    border: 1px solid #222222 !important;
    padding: 12px 18px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    outline: none !important;
    width: 100% !important;
    height: 48px !important;
    box-sizing: border-box !important;
    transition: 0.3s;
}

body.woocommerce-account form input:focus,
body.woocommerce-account form select:focus {
    border-color: #ff6800 !important;
    box-shadow: 0 0 10px rgba(255, 104, 0, 0.2) !important;
}

/* Chrome Autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #111111 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* 5. Tables (Orders List Page) */
body.woocommerce-account table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #151515 !important;
    background-color: transparent !important;
    margin-top: 20px !important;
}

body.woocommerce-account table.shop_table th {
    background-color: #0d0d0d !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 15px !important;
    border-bottom: 1px solid #1a1a1a !important;
    text-align: left !important;
}

body.woocommerce-account table.shop_table td {
    padding: 15px !important;
    border-bottom: 1px solid #151515 !important;
    color: #cccccc !important;
    font-size: 14px !important;
    text-align: left !important;
}

body.woocommerce-account table.shop_table tr:hover td {
    background-color: #080808 !important;
}

/* 6. View Order details Table styling (Premium Dark Table - Kills white backgrounds) */
body.woocommerce-account .woocommerce-order-details {
    margin-top: 30px !important;
}

/* Kills Astra's default header block on Order details */
body.woocommerce-account .woocommerce-order-details__title {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin-bottom: 20px !important;
    border-left: 3px solid #ff6800;
    padding-left: 10px !important;
    background: transparent !important;
    border-bottom: none !important;
}

body.woocommerce-account .woocommerce-table--order-details {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #151515 !important;
    background-color: #050505 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

body.woocommerce-account .woocommerce-table--order-details th {
    background-color: #0d0d0d !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid #1a1a1a !important;
    text-align: left !important;
}

body.woocommerce-account .woocommerce-table--order-details td {
    padding: 15px 20px !important;
    border-bottom: 1px solid #151515 !important;
    color: #cccccc !important;
    font-size: 14px !important;
    text-align: left !important;
}

body.woocommerce-account .woocommerce-table--order-details tr:hover td {
    background-color: #080808 !important;
}

body.woocommerce-account .woocommerce-table--order-details .woocommerce-table__product-name {
    color: #ffffff;
    font-weight: 600;
}

body.woocommerce-account .woocommerce-table--order-details .product-quantity {
    color: #ff6800;
    font-weight: 700;
}

body.woocommerce-account .woocommerce-table--order-details tfoot th {
    background-color: #050505 !important;
    border-top: 1px solid #151515 !important;
    border-bottom: none !important;
    color: #aaaaaa !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}
body.woocommerce-account .woocommerce-table--order-details tfoot td {
    background-color: #050505 !important;
    border-top: 1px solid #151515 !important;
    border-bottom: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* 8. Alert / Notification Messages */
body.woocommerce-account .woocommerce-Message,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-error {
    background-color: #0d0d0d !important;
    border: 1px solid #1a1a1a !important;
    border-left: 4px solid #ff6800 !important;
    color: #ffffff !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 25px !important;
    list-style: none !important;
}

/* Responsive Layout */
@media (max-width: 992px) {
    body.woocommerce-account .woocommerce {
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100% !important;
    }
    body.woocommerce-account .woocommerce .u-columns.col2-set,
    body.woocommerce-account .woocommerce-MyAccount-content .col2-set {
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }
    body.woocommerce-account .woocommerce-MyAccount-content .col-1,
    body.woocommerce-account .woocommerce-MyAccount-content .col-2 {
        width: 100% !important;
    }
}