/**
 * WooCommerce My Account — Archetipa Child Theme
 * Based on qwery craftsman skin + custom refinements.
 */

/* ==========================================================================
   1. Layout: Navigation + Content
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 22%;
    float: left;
    padding-right: 30px;
    box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 78%;
    float: right;
}

.woocommerce-account .woocommerce::after {
    content: "";
    display: block;
    clear: both;
}

/* ==========================================================================
   2. Navigation
   ========================================================================== */

.woocommerce-MyAccount-navigation {
    font-size: 1em;
    line-height: 1.3em;
    font-weight: 500;
}

.woocommerce-MyAccount-navigation ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.woocommerce-MyAccount-navigation ul li {
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li + li {
    border-top: 1px solid #E2E2E2;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.8em 0;
    color: #63656A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    color: #1D1D1B;
}

.woocommerce-MyAccount-navigation ul li:first-child a {
    padding-top: 0;
}

.woocommerce-MyAccount-navigation li.is-active a {
    color: #1D1D1B;
    font-weight: 700;
}

/* ==========================================================================
   3. Content Area
   ========================================================================== */

.woocommerce-account h2,
.woocommerce-account .address .title h3 {
    margin: 1em 0 0.4em;
}

.woocommerce-account .addresses .title h3 {
    font-size: 1em;
    line-height: 1.2em;
}

.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info {
    margin: 0 0 20px 0;
    text-align: left;
    padding: 1em 1.5em;
    border-left: 3px solid #63656A;
    background: #F2F2F2;
}

.woocommerce-MyAccount-content p {
    line-height: 1.6em;
}

/* ==========================================================================
   4. Orders Table
   ========================================================================== */

.woocommerce table.my_account_orders {
    font-size: 1em;
    width: 100%;
    border-collapse: collapse;
}

.woocommerce table.my_account_orders td,
.woocommerce table.my_account_orders th {
    padding: 12px 10px;
    text-align: left;
}

.woocommerce table.my_account_orders th {
    font-weight: 500;
    line-height: 1.5em;
    border: none !important;
    color: #fff;
    background-color: #63656A;
}

.woocommerce table.my_account_orders td {
    border-bottom: 1px solid #E2E2E2;
}

.woocommerce-MyAccount-content .my_account_orders .button {
    padding: 0;
    background-color: transparent !important;
    color: #63656A;
    box-shadow: none;
    border-radius: 0;
    text-decoration: underline;
}

.woocommerce-MyAccount-content .my_account_orders .button:hover {
    color: #1D1D1B;
}

.woocommerce-MyAccount-content .my_account_orders .button + .button:before {
    content: '|';
    display: inline-block;
    line-height: inherit;
    margin: 0 0.5em;
    text-decoration: none;
}

/* ==========================================================================
   5. Addresses
   ========================================================================== */

.woocommerce-MyAccount-content .woocommerce-Address-title {
    position: relative;
}

.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
    display: inline-block;
    margin-top: 0.5em;
}

.woocommerce-MyAccount-content .woocommerce-Address-title a {
    margin: 0 0 0 5px;
    text-decoration: underline;
    font-size: 1em;
    line-height: 1.2em;
    font-weight: 500;
}

.woocommerce-account .woocommerce-MyAccount-content .addresses.col2-set .col-1,
.woocommerce-account .woocommerce-MyAccount-content .addresses.col2-set .col-2 {
    width: 48%;
}

.woocommerce-account .woocommerce-MyAccount-content .addresses.col2-set .col-1 {
    float: left;
}

.woocommerce-account .woocommerce-MyAccount-content .addresses.col2-set .col-2 {
    float: right;
}

.woocommerce-MyAccount-content address {
    padding: 1.2em;
    border: 1px solid #E2E2E2;
    border-radius: 5px;
    background: #FAFAFA;
    font-style: normal;
    line-height: 1.6em;
}

/* ==========================================================================
   6. Edit Account Form
   ========================================================================== */

.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset {
    margin-top: 2em;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset legend {
    top: -1em;
    font-weight: 700;
}

.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E2E2E2;
    border-radius: 5px;
    font-size: 1rem;
    color: #63656A;
    background: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content input:focus,
.woocommerce-account .woocommerce-MyAccount-content select:focus {
    border-color: #63656A;
    outline: none;
}

.woocommerce-account .woocommerce-MyAccount-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #1D1D1B;
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"] {
    background: #63656A;
    color: #fff;
    border: 2px solid #63656A;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button:hover,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"]:hover {
    background: #fff;
    color: #63656A;
}

/* ==========================================================================
   8. Login / Register Forms
   ========================================================================== */

.woocommerce form.login,
.woocommerce form.register {
    border: 1px solid #E2E2E2;
    border-radius: 5px;
    padding: 2em;
}

/* ==========================================================================
   9. Shop Table (shared)
   ========================================================================== */

.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
    font-weight: 400;
}

.woocommerce table.shop_table tfoot tr:last-child td {
    font-weight: 700;
}

/* ==========================================================================
   10. Responsive
   ========================================================================== */

@media screen and (max-width: 767px) {
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100%;
        float: none;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        padding-right: 0;
        border-top: 1px solid #E2E2E2;
        border-bottom: 1px solid #E2E2E2;
        margin-bottom: 2em;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        width: 100%;
        text-align: center;
        padding: 0.8em 0;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li {
        display: inline-block;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li + li {
        border-top-width: 0;
    }

    .woocommerce-MyAccount-navigation ul li a {
        padding: 8px 10px;
        font-size: 14px;
    }

    .woocommerce-account .woocommerce-MyAccount-content .addresses.col2-set .col-1,
    .woocommerce-account .woocommerce-MyAccount-content .addresses.col2-set .col-2 {
        width: 100%;
        float: none;
        margin-bottom: 1.5em;
    }

    .woocommerce table.my_account_orders td,
    .woocommerce table.my_account_orders th {
        padding: 8px 6px;
        font-size: 14px;
    }
}
