/* ======================================================================
   TCCC Account Page — Full Layout Redesign
   Replaces WooCommerce sidebar layout with full-width horizontal tabs.
   Enqueued via illdy-child/functions.php on account pages only.
   Font: Glacial Indifference (self-hosted)
   Colors: #001729 · #004E7A · #87E3E6 · #EFEFEA · #016636
   ====================================================================== */

@font-face {
    font-family: 'Glacial Indifference';
    src: url('../../../plugins/tcc-registration/assets/fonts/GlacialIndifference-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Glacial Indifference';
    src: url('../../../plugins/tcc-registration/assets/fonts/GlacialIndifference-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* -----------------------------------------------------------------------
   OUTERMOST LAYOUT FIX — Break out of illdy's blog post Bootstrap grid.
   The account page content is wrapped in:
     .container > .row > .col-sm-8.col-sm-offset-2 > #blog > article > .blog-post-entry
   We need to override that Bootstrap column to be full width and
   remove the offset so our tab layout fills the entire container.
------------------------------------------------------------------------ */
body.tccc-full-width-account .row > .col-sm-8.col-sm-offset-2 {
    width: 100% !important;
    margin-left: 0 !important;
}

/* Remove article/blog padding that adds unnecessary gutters */
body.tccc-full-width-account .blog-post-entry.markup-format {
    padding: 0 !important;
    margin: 0 !important;
}

body.tccc-full-width-account #blog .blog-post {
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* -----------------------------------------------------------------------
   Page-level: suppress the WooCommerce sidebar layout entirely
   The illdy theme uses a two-column float layout for my-account.
   We collapse it to a single full-width column.
------------------------------------------------------------------------ */
.woocommerce-account .woocommerce {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* -----------------------------------------------------------------------
   Layout reset — beats illdy theme's (0,2,0) specificity with (0,2,1)
   All rules scoped to body.woocommerce-account so they only fire on
   account pages and win the cascade without relying on !important.
------------------------------------------------------------------------ */

/* Hide the WooCommerce default sidebar ul — our navigation.php
   template outputs the tab bar inside the same wrapper */
body.woocommerce-account .woocommerce-MyAccount-navigation > ul {
    display: none !important;
}

/* Neutralise the theme's float on the nav wrapper */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Content column: full width, no float */
body.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Kill the sidebar the theme injects */
body.woocommerce-account .sidebar,
body.woocommerce-account #secondary,
body.woocommerce-account .widget-area {
    display: none !important;
}

/* Main content column: full width */
body.woocommerce-account #primary,
body.woocommerce-account .site-content,
body.woocommerce-account .content-area {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Kill clearfix / overflow floats on the woocommerce container */
body.woocommerce-account .woocommerce::after,
body.woocommerce-account .woocommerce::before {
    display: block;
    clear: none;
}

/* Force the woocommerce div itself to be a block, not a float context */
body.woocommerce-account .woocommerce {
    overflow: hidden;
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* -----------------------------------------------------------------------
   Account wrapper — light card, subtle border, no heavy dark chrome
------------------------------------------------------------------------ */
body.woocommerce-account .woocommerce {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 23, 41, 0.08);
    border: 1px solid rgba(0, 23, 41, 0.08);
    margin: 1.5em 0 2em;
}

/* Slim aqua accent line — subtle, not dominant */
body.woocommerce-account .woocommerce::before {
    content: '';
    display: block !important;
    height: 3px;
    background: linear-gradient(90deg, #87E3E6 0%, #004E7A 60%, #016636 100%);
    clear: none !important;
    border-radius: 12px 12px 0 0;
}

/* -----------------------------------------------------------------------
   TCCC horizontal tab navigation
------------------------------------------------------------------------ */
.tccc-account-nav {
    background: #fff;
    padding: 0;
    position: relative;
    border-bottom: 2px solid rgba(0, 23, 41, 0.08);
}

.tccc-account-nav__inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 16px;
    gap: 0;
}

.tccc-account-nav__inner::-webkit-scrollbar {
    display: none;
}

/* Use high-specificity selector to beat .markup-format a { color: blue } */
.woocommerce-MyAccount-navigation .tccc-account-nav__inner a.tccc-account-nav__tab,
.tccc-account-nav__inner a.tccc-account-nav__tab {
    font-family: 'Glacial Indifference', 'Century Gothic', 'Futura', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none !important;
    color: #016636 !important;
    padding: 1.2em 1.6em;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: -2px;
}

.woocommerce-MyAccount-navigation .tccc-account-nav__inner a.tccc-account-nav__tab:hover,
.tccc-account-nav__inner a.tccc-account-nav__tab:hover {
    color: #014d28 !important;
    background: rgba(1, 102, 54, 0.06);
    text-decoration: none !important;
    border-bottom-color: rgba(1, 102, 54, 0.3);
}

.woocommerce-MyAccount-navigation .tccc-account-nav__inner a.tccc-account-nav__tab.is-active,
.tccc-account-nav__inner a.tccc-account-nav__tab.is-active {
    color: #014d28 !important;
    border-bottom-color: #87E3E6;
    background: rgba(135, 227, 230, 0.1);
}

/* Logout — red gradient matching delete/destructive action style */
.woocommerce-MyAccount-navigation .tccc-account-nav__inner a.tccc-account-nav__tab.is-logout,
.tccc-account-nav__inner a.tccc-account-nav__tab.is-logout {
    margin-left: auto;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(160deg, #A32D2D 0%, #791F1F 100%);
    border-radius: 6px;
    padding: 0.65em 1.5em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    margin-right: 4px;
    border-bottom: none;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(163, 45, 45, 0.3);
    transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.woocommerce-MyAccount-navigation .tccc-account-nav__inner a.tccc-account-nav__tab.is-logout:hover,
.tccc-account-nav__inner a.tccc-account-nav__tab.is-logout:hover {
    color: #fff !important;
    filter: brightness(1.14);
    border-bottom-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(163, 45, 45, 0.45);
}

/* -----------------------------------------------------------------------
   Content area inside the account chrome
------------------------------------------------------------------------ */
.woocommerce-MyAccount-content {
    padding: 2.5em 3em 3.5em !important;
    background: #fff;
    min-height: 400px;
}

/* WooCommerce notice wrapper */
.woocommerce-notices-wrapper {
    margin-bottom: 1em;
}

/* -----------------------------------------------------------------------
   Dashboard greeting — scaled up for readability
   High specificity needed to beat .markup-format styles
------------------------------------------------------------------------ */
.woocommerce-MyAccount-content.markup-format > p:first-of-type,
.woocommerce-MyAccount-content > p:first-of-type {
    font-family: 'Glacial Indifference', 'Century Gothic', sans-serif;
    font-size: 1.6rem !important;
    color: rgba(0, 23, 41, 0.75) !important;
    margin-bottom: 0.5em;
    padding: 0;
    line-height: 1.6;
}

.woocommerce-MyAccount-content > p:first-of-type strong {
    color: #001729 !important;
    font-weight: 700;
}

.woocommerce-MyAccount-content > p:first-of-type a {
    color: #004E7A !important;
    text-decoration: none !important;
    font-size: 0.85em;
    opacity: 0.7;
    margin-left: 0.5em;
}

.woocommerce-MyAccount-content.markup-format > p:nth-of-type(2),
.woocommerce-MyAccount-content > p:nth-of-type(2) {
    font-family: 'Glacial Indifference', 'Century Gothic', sans-serif;
    font-size: 1.4rem !important;
    color: rgba(0, 23, 41, 0.6) !important;
    line-height: 1.8;
    margin-bottom: 0;
}

.woocommerce-MyAccount-content > hr {
    border: none;
    border-top: 1px solid rgba(0, 23, 41, 0.08);
    margin: 1.8em 0;
}

/* Welcome banner and instructions paragraph */
.tccc-welcome-banner h2 {
    font-size: 2.2rem !important;
    padding-left: 32px;
}

.tccc-welcome-banner p,
.tccc-dashboard > .tccc-instructions,
.tccc-register-cta p {
    font-size: 1.4rem !important;
    line-height: 1.7;
    padding-left: 32px;
}

/* -----------------------------------------------------------------------
   TCCC dashboard inside the content area
------------------------------------------------------------------------ */
.woocommerce-MyAccount-content .tccc-dashboard {
    margin: 0 !important;
    border-radius: 0;
    box-shadow: none;
}

/* Table wrapper — full width, horizontal scroll on overflow */
.woocommerce-MyAccount-content .tccc-table-wrapper {
    padding: 1.4em 1.4em 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* -----------------------------------------------------------------------
   WooCommerce default content styling (orders, account details, etc.)
------------------------------------------------------------------------ */
.woocommerce-MyAccount-content .woocommerce-orders-table,
.woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Glacial Indifference', 'Century Gothic', sans-serif;
    font-size: 0.95rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 23, 41, 0.08);
}

.woocommerce-MyAccount-content table.shop_table thead {
    background: #004E7A;
}

.woocommerce-MyAccount-content table.shop_table thead th {
    color: #EFEFEA;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.85em 1em;
    border: none;
}

.woocommerce-MyAccount-content table.shop_table tbody td {
    padding: 0.85em 1em;
    border-bottom: 1px solid rgba(0, 23, 41, 0.07);
    color: #001729;
}

.woocommerce-MyAccount-content table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-MyAccount-content table.shop_table tbody tr:hover td {
    background: rgba(135, 227, 230, 0.1);
}

/* -----------------------------------------------------------------------
   WooCommerce default content styling (orders, account details, etc.)
------------------------------------------------------------------------ */
.woocommerce-MyAccount-content .woocommerce-orders-table,
.woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Glacial Indifference', 'Century Gothic', sans-serif;
    font-size: 1.3rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 23, 41, 0.08);
}

.woocommerce-MyAccount-content table.shop_table thead {
    background: #004E7A;
}

.woocommerce-MyAccount-content table.shop_table thead th {
    color: #EFEFEA;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1em 1.2em;
    border: none;
}

.woocommerce-MyAccount-content table.shop_table tbody td {
    padding: 1em 1.2em;
    border-bottom: 1px solid rgba(0, 23, 41, 0.07);
    color: #001729;
    font-size: 1.2rem;
}

.woocommerce-MyAccount-content table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-MyAccount-content table.shop_table tbody tr:hover td {
    background: rgba(135, 227, 230, 0.1);
}

/* -----------------------------------------------------------------------
   WooCommerce form fields — Account Details page inputs and selects.
   Match the styling of the guardian/camper card inputs in the dashboard.
------------------------------------------------------------------------ */
.woocommerce-MyAccount-content .woocommerce-address-fields input,
.woocommerce-MyAccount-content .woocommerce-address-fields select,
.woocommerce-MyAccount-content .woocommerce-address-fields textarea,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm select,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm textarea,
.woocommerce-MyAccount-content .woocommerce-form input,
.woocommerce-MyAccount-content .woocommerce-form select,
.woocommerce-MyAccount-content .woocommerce-form textarea,
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content select {
    font-family: 'Glacial Indifference', 'Century Gothic', sans-serif !important;
    font-size: 1.3rem !important;
    padding: 0.7em 1em !important;
    border: 1.5px solid rgba(0, 23, 41, 0.15) !important;
    border-radius: 6px !important;
    width: 100%;
    background: #fff !important;
    color: #001729 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
    margin-bottom: 0.75em;
}

.woocommerce-MyAccount-content input[type="text"]:focus,
.woocommerce-MyAccount-content input[type="email"]:focus,
.woocommerce-MyAccount-content input[type="tel"]:focus,
.woocommerce-MyAccount-content input[type="password"]:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input:focus,
.woocommerce-MyAccount-content .woocommerce-address-fields input:focus {
    outline: none !important;
    border-color: #87E3E6 !important;
    box-shadow: 0 0 0 3px rgba(135, 227, 230, 0.35) !important;
}

/* Form labels */
.woocommerce-MyAccount-content .woocommerce-address-fields label,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm label,
.woocommerce-MyAccount-content .woocommerce-form label {
    font-family: 'Glacial Indifference', 'Century Gothic', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #001729;
    display: block;
    margin-bottom: 0.35em;
}

/* WooCommerce buttons — account page */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content input[type="submit"] {
    font-family: 'Glacial Indifference', 'Century Gothic', sans-serif !important;
    font-size: 1.3rem !important;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.75em 2em !important;
    background: #001729 !important;
    color: #EFEFEA !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    display: inline-block;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content input[type="submit"]:hover {
    background: #004E7A !important;
    color: #EFEFEA !important;
    transform: translateY(-1px);
    text-decoration: none;
}
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    display: inline-block;
}

/* Order status badges */
.woocommerce-MyAccount-content .order-status {
    font-family: 'Glacial Indifference', 'Century Gothic', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
}

.woocommerce-MyAccount-content mark.order-status.processing,
.woocommerce-MyAccount-content mark.order-status.on-hold {
    background: rgba(0, 78, 122, 0.1);
    color: #004E7A;
}

.woocommerce-MyAccount-content mark.order-status.completed {
    background: rgba(1, 102, 54, 0.1);
    color: #016636;
}

/* -----------------------------------------------------------------------
   Responsive — mobile
------------------------------------------------------------------------ */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        border-radius: 0;
        margin: 0;
        box-shadow: none;
    }

    .woocommerce-MyAccount-content {
        padding: 1.2em 1em 2em !important;
    }

    .tccc-account-nav__tab {
        font-size: 0.75rem;
        padding: 0.9em 1em;
        letter-spacing: 0.05em;
    }

    /* Logout keeps its gradient but loses auto-margin on mobile wrap */
    .tccc-account-nav__tab.is-logout {
        margin-left: 0;
    }

    /* Start Enrollment — full width, readable on small screens */
    .tccc-register-cta.tccc-cta-top {
        padding: 1.6em 1em 1.4em;
        border-radius: 8px;
    }

    .tccc-register-cta.tccc-cta-top .tccc-cta-sub {
        font-size: 1rem;
        margin-bottom: 1.2em;
    }

    /* Ensure table scrolls on small screens */
    .woocommerce-MyAccount-content .tccc-table-wrapper,
    .woocommerce-MyAccount-content .woocommerce-orders-table__wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .woocommerce-MyAccount-content {
        padding: 1em 0.75em 1.5em !important;
    }

    .tccc-account-nav__tab {
        font-size: 0.7rem;
        padding: 0.85em 0.85em;
    }
}


/* -----------------------------------------------------------------------
   Single high-specificity override block.
   Beats Illdy theme's  button, .button { background: #7a1c2e }
   without using `unset` which would strip our own gradients.
   These selectors are intentionally longer than the theme's to win
   the cascade without !important abuse.
------------------------------------------------------------------------ */

/* Edit button — ocean→navy gradient */
body.woocommerce-account .woocommerce-MyAccount-content .tccc-table .edit-registration-btn,
body.woocommerce-account .woocommerce-MyAccount-content .tccc-table button.edit-registration-btn {
    background: linear-gradient(160deg, #004E7A 0%, #001729 100%) !important;
    color: #EFEFEA !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 0.55em 1.1em !important;
    font-family: 'Glacial Indifference', 'Century Gothic', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35em !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 78, 122, 0.25) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    margin-right: 0.4em !important;
    transition: filter 0.2s ease, transform 0.15s ease !important;
}
body.woocommerce-account .woocommerce-MyAccount-content .tccc-table .edit-registration-btn:hover,
body.woocommerce-account .woocommerce-MyAccount-content .tccc-table button.edit-registration-btn:hover {
    filter: brightness(1.14) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(0, 78, 122, 0.4) !important;
    color: #EFEFEA !important;
}

/* Delete button — red gradient */
body.woocommerce-account .woocommerce-MyAccount-content .tccc-table .delete-registration-btn,
body.woocommerce-account .woocommerce-MyAccount-content .tccc-table button.delete-registration-btn {
    background: linear-gradient(160deg, #A32D2D 0%, #791F1F 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 0.55em 1.1em !important;
    font-family: 'Glacial Indifference', 'Century Gothic', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35em !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(163, 45, 45, 0.25) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: filter 0.2s ease, transform 0.15s ease !important;
}
body.woocommerce-account .woocommerce-MyAccount-content .tccc-table .delete-registration-btn:hover,
body.woocommerce-account .woocommerce-MyAccount-content .tccc-table button.delete-registration-btn:hover {
    filter: brightness(1.14) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(163, 45, 45, 0.4) !important;
    color: #fff !important;
}

/* Add Guardian button — ocean→navy gradient */
body.woocommerce-account .woocommerce-MyAccount-content #add-guardian-btn,
body.woocommerce-account .woocommerce-MyAccount-content button#add-guardian-btn {
    background: linear-gradient(160deg, #004E7A 0%, #001729 100%) !important;
    color: #EFEFEA !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 0.65em 1.5em !important;
    font-family: 'Glacial Indifference', 'Century Gothic', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5em !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 3px 10px rgba(0, 78, 122, 0.3) !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: filter 0.2s ease, transform 0.15s ease !important;
}
body.woocommerce-account .woocommerce-MyAccount-content #add-guardian-btn:hover {
    filter: brightness(1.14) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 16px rgba(0, 78, 122, 0.4) !important;
    color: #EFEFEA !important;
}

/* Add Camper button — green gradient */
body.woocommerce-account .woocommerce-MyAccount-content #add-camper-btn,
body.woocommerce-account .woocommerce-MyAccount-content button#add-camper-btn {
    background: linear-gradient(160deg, #016636 0%, #014d28 100%) !important;
    color: #EFEFEA !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 0.65em 1.5em !important;
    font-family: 'Glacial Indifference', 'Century Gothic', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5em !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 3px 10px rgba(1, 102, 54, 0.3) !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: filter 0.2s ease, transform 0.15s ease !important;
}
body.woocommerce-account .woocommerce-MyAccount-content #add-camper-btn:hover {
    filter: brightness(1.14) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 16px rgba(1, 102, 54, 0.4) !important;
    color: #EFEFEA !important;
}
