/* =========================================================
   DC Supplies — My Account / Login / Register
   Targets WooCommerce's default markup/classes only.
   No template files touched — safe across WC updates.

   Brand colors (reuse from contact.css if already global;
   redefined here as fallback so this file works standalone)
   ========================================================= */

   :root {
    --ink: #0D0D0D;
    --steel: #9B1E22;
    --slate: #6E6E6E;
    --paper: #f6f7f5;
    --amber: #e8a23b;
    --amber-dark: #d6902b;
    --line: #e0e3e2;
    --white: #ffffff;
    --success: #2e7d4f;
    --success-bg: #eaf5ef;
    --error: #b3372c;
    --error-bg: #fbeeec;

    /* Primary brand red — used for CTA buttons on this page.
       Adjust this hex if it doesn't exactly match your logo/
       "Browse All Networking" button red. */
    --brand-red: #c0392b;
    --brand-red-dark: #a5301f;

    /* Dark sidebar (My Account nav), matched to the category
       flyout reference — near-black navy with red accents. */
    --sidebar-bg: #0D0D0D;
    --sidebar-bg-hover: #1A1A1A;
    --sidebar-text: #D0D0D0;
    --sidebar-text-active: #ffffff;
}

/* -------------------------------------------------
   Page wrapper
   ------------------------------------------------- */

.woocommerce-account {
    background: var(--paper);
}

.woocommerce-account .entry-header,
.woocommerce-account .page-header,
.woocommerce-account h1.entry-title,
.woocommerce-account .entry-title {
    display: none;
}

.woocommerce-account .woocommerce {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 24px 96px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
}

/* Guests (login/register): narrower, centered container so the
   card doesn't stretch edge-to-edge. */
.woocommerce-account:not(.logged-in) .woocommerce {
    max-width: 480px;
}

/* Logged-in dashboard: wider container, sidebar + content side by side. */
.woocommerce-account.logged-in .woocommerce {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

@media (max-width: 780px) {
    .woocommerce-account.logged-in .woocommerce {
        flex-direction: column;
    }
}

/* -------------------------------------------------
   Notices (errors / success messages)
   ------------------------------------------------- */

.woocommerce-account .woocommerce-notices-wrapper {
    max-width: 1080px;
    margin: 24px auto 0;
    padding: 0 24px;
}

.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9375rem;
    line-height: 1.5;
    padding: 14px 16px;
    border-radius: 8px;
    margin: 0 0 24px;
}

.woocommerce-account .woocommerce-error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(179, 55, 44, 0.2);
}

.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(46, 125, 79, 0.2);
}

.woocommerce-account .woocommerce-error a,
.woocommerce-account .woocommerce-message a,
.woocommerce-account .woocommerce-info a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.woocommerce-account .woocommerce-error::before,
.woocommerce-account .woocommerce-message::before,
.woocommerce-account .woocommerce-info::before {
    content: none;
}

/* -------------------------------------------------
   Login / Register layout
   ------------------------------------------------- */

.woocommerce-account .u-columns.col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 780px) {
    .woocommerce-account .u-columns.col2-set {
        grid-template-columns: 1fr;
    }
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    width: 100% !important;
    float: none !important;
}

.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(16, 35, 58, 0.06);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (max-width: 560px) {
    .woocommerce-account .woocommerce-form-login,
    .woocommerce-account .woocommerce-form-register {
        padding: 28px 20px;
    }
}

.woocommerce-account h2,
.woocommerce-account h3 {
    font-weight: 700;
    font-size: 1.375rem;
    color:#b2212c;
    margin: 0 0 16px;
}

.woocommerce-account .woocommerce-form-row {
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.woocommerce-account .woocommerce-form-row label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.woocommerce-account .woocommerce-form-row .required {
    color: var(--error);
    text-decoration: none;
}

.woocommerce-account input.woocommerce-Input,
.woocommerce-account .woocommerce-form-login input[type="text"],
.woocommerce-account .woocommerce-form-login input[type="password"],
.woocommerce-account .woocommerce-form-login input[type="email"],
.woocommerce-account .woocommerce-form-register input[type="text"],
.woocommerce-account .woocommerce-form-register input[type="password"],
.woocommerce-account .woocommerce-form-register input[type="email"] {
    width: 100%;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.woocommerce-account input.woocommerce-Input:hover {
    border-color: #D5D5D5;
}

.woocommerce-account input.woocommerce-Input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--steel);
    box-shadow: 0 0 0 3px rgba(47, 88, 113, 0.14);
}

.woocommerce-account input::placeholder {
    color: #A8A8A8;
}

/* Remember me checkbox */

.woocommerce-account .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--slate);
    cursor: pointer;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: var(--steel);
    border-radius: 4px;
    margin: 0;
}

/* Login / register row that holds checkbox + button + nonce field */

.woocommerce-account .woocommerce-form-login p.form-row.woocommerce-form-row:last-of-type,
.woocommerce-account .woocommerce-form-register p.form-row:last-of-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* Buttons */

.woocommerce-account button.woocommerce-Button,
.woocommerce-account button.woocommerce-form-login__submit,
.woocommerce-account button.woocommerce-form-register__submit,
.woocommerce-account input.woocommerce-Button {
    align-self: flex-start;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--brand-red);
    border: none;
    border-radius: 10px;
    padding: 14px 44px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    margin-top: 10px;
}

/* Login / register submit specifically: centered, not left-aligned */
.woocommerce-account button.woocommerce-form-login__submit,
.woocommerce-account button.woocommerce-form-register__submit {
    align-self: center;
    width: 100%;
    max-width: 144px;
}

.woocommerce-account button.woocommerce-Button:hover,
.woocommerce-account input.woocommerce-Button:hover {
    background: var(--brand-red-dark);
}

.woocommerce-account button.woocommerce-Button:active,
.woocommerce-account input.woocommerce-Button:active {
    transform: translateY(1px);
}

.woocommerce-account button.woocommerce-Button:focus-visible {
    outline: 2px solid var(--steel);
    outline-offset: 2px;
}

/* Lost password link */

.woocommerce-account .woocommerce-LostPassword {
    font-size: 0.875rem;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-LostPassword a {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 600;
}

.woocommerce-account .woocommerce-LostPassword a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------
   Logged-in dashboard (nav + content)
   ------------------------------------------------- */

.woocommerce-account .woocommerce-MyAccount-navigation {
    flex-shrink: 0;
    width: 260px;
    background: var(--sidebar-bg);
    border-radius: 14px;
    padding: 14px 10px;
    box-shadow: 0 4px 24px rgba(16, 35, 58, 0.18);
}

.woocommerce-account .woocommerce-MyAccount-navigation::before {
    content: "My Account";
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    padding: 8px 16px 14px;
    margin: 0 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--brand-red);
}

@media (max-width: 780px) {
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100%;
    }
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link {
    border-left: 3px solid transparent;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 13px 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link a::after {
    content: '\203A';
    margin-left: auto;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.5;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link a:hover {
    background: var(--sidebar-bg-hover);
    color: var(--sidebar-text-active);
}

.woocommerce-account .woocommerce-MyAccount-navigation-link:hover {
    border-left-color: var(--brand-red);
}

.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active {
    border-left-color: var(--brand-red);
}

.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a {
    background: var(--sidebar-bg-hover);
    color: var(--sidebar-text-active);
}

.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a::after {
    color: var(--brand-red);
    opacity: 1;
}

.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(16, 35, 58, 0.06);
}

@media (max-width: 780px) {
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 24px 20px;
    }
}

.woocommerce-account .woocommerce-MyAccount-content a {
    color: var(--brand-red);
    font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover {
    text-decoration: underline;
}

/* Account tables (orders, addresses) */

.woocommerce-account table.shop_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.woocommerce-account table.shop_table th {
    text-align: left;
    font-weight: 700;
    color: var(--ink);
    padding: 12px;
    border-bottom: 2px solid var(--line);
}

.woocommerce-account table.shop_table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--slate);
}

.woocommerce-account table.shop_table .button {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--steel);
    background: rgba(47, 88, 113, 0.1);
    border-radius: 8px;
    padding: 8px 14px;
    text-decoration: none;
}

.woocommerce-account table.shop_table .button:hover {
    background: rgba(47, 88, 113, 0.18);
}

/* Address boxes */

.woocommerce-account .woocommerce-Addresses.addresses,
.woocommerce-account .woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 640px) {
    .woocommerce-account .woocommerce-Addresses.addresses,
    .woocommerce-account .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }
}

.woocommerce-account .woocommerce-Address {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
}

.woocommerce-account .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
}

.woocommerce-account .woocommerce-Address-title a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-red);
    text-decoration: none;
    white-space: nowrap;
}

.woocommerce-account .woocommerce-Address-title a:hover {
    text-decoration: underline;
}

.woocommerce-account .woocommerce-Address address,
.woocommerce-account .woocommerce-Address p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--slate);
    font-style: normal;
    margin: 0;
}

/* -------------------------------------------------
   Account & Address forms (Account details, Edit
   Address) — these use different markup than the
   login/register forms, so they need their own rules.
   ------------------------------------------------- */

.woocommerce-account .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-address-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.woocommerce-account .woocommerce-EditAccountForm .form-row,
.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row {
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.woocommerce-account .woocommerce-EditAccountForm .form-row-first,
.woocommerce-account .woocommerce-EditAccountForm .form-row-last,
.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row-first,
.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row-last {
    flex: 1 1 calc(50% - 10px);
    min-width: 220px;
}

.woocommerce-account .woocommerce-EditAccountForm .form-row-wide,
.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row-wide {
    flex: 1 1 100%;
}

.woocommerce-account .woocommerce-EditAccountForm fieldset {
    flex: 1 1 100%;
    border: none;
    margin: 8px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.woocommerce-account .woocommerce-EditAccountForm legend {
    flex: 1 1 100%;
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--ink);
    padding: 0;
    margin: 0 0 4px;
}

.woocommerce-account .woocommerce-EditAccountForm > p:last-of-type,
.woocommerce-account .woocommerce-address-fields > p:last-of-type {
    flex: 1 1 100%;
    margin: 4px 0 0 !important;
}

.woocommerce-account .woocommerce-EditAccountForm label,
.woocommerce-account .woocommerce-address-fields__field-wrapper label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.woocommerce-account .woocommerce-EditAccountForm input[type="text"],
.woocommerce-account .woocommerce-EditAccountForm input[type="email"],
.woocommerce-account .woocommerce-EditAccountForm input[type="password"],
.woocommerce-account .woocommerce-EditAccountForm input[type="tel"],
.woocommerce-account .woocommerce-EditAccountForm select,
.woocommerce-account .woocommerce-address-fields__field-wrapper input[type="text"],
.woocommerce-account .woocommerce-address-fields__field-wrapper input[type="email"],
.woocommerce-account .woocommerce-address-fields__field-wrapper input[type="tel"],
.woocommerce-account .woocommerce-address-fields__field-wrapper select {
    width: 100%;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.woocommerce-account .woocommerce-EditAccountForm input:hover,
.woocommerce-account .woocommerce-EditAccountForm select:hover,
.woocommerce-account .woocommerce-address-fields__field-wrapper input:hover,
.woocommerce-account .woocommerce-address-fields__field-wrapper select:hover {
    border-color: #D5D5D5;
}

.woocommerce-account .woocommerce-EditAccountForm input:focus,
.woocommerce-account .woocommerce-EditAccountForm select:focus,
.woocommerce-account .woocommerce-address-fields__field-wrapper input:focus,
.woocommerce-account .woocommerce-address-fields__field-wrapper select:focus {
    outline: none;
    background: var(--white);
    border-color: var(--steel);
    box-shadow: 0 0 0 3px rgba(47, 88, 113, 0.14);
}

.woocommerce-account .woocommerce-EditAccountForm select,
.woocommerce-account .woocommerce-address-fields__field-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%235B6B75' d='M4 6l4 4 4-4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

@media (max-width: 560px) {
    .woocommerce-account .woocommerce-EditAccountForm .form-row-first,
    .woocommerce-account .woocommerce-EditAccountForm .form-row-last,
    .woocommerce-account .woocommerce-address-fields__field-wrapper .form-row-first,
    .woocommerce-account .woocommerce-address-fields__field-wrapper .form-row-last {
        flex: 1 1 100%;
    }
}

/* -------------------------------------------------
   Reduced motion
   ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .woocommerce-account input.woocommerce-Input,
    .woocommerce-account button.woocommerce-Button,
    .woocommerce-account input.woocommerce-Button,
    .woocommerce-account .woocommerce-MyAccount-navigation-link a {
        transition: none;
    }
}

/* .button, button.button, input[type="submit"] {
    margin-top: 10px;
} */

/**
 * Minor styling fixes for the WooCommerce My Account > Addresses pages.
 * Applies to the default WooCommerce my-address.php (address cards) and
 * form-edit-address.php (single edit form).
 */

/* Address list page: center "BILLING ADDRESS" / "SHIPPING ADDRESS"
   heading, keep the Edit / Add address link pinned to the right */
   .woocommerce-Address-title.title{
	position:relative !important;
	display:flex !important;
	justify-content:center !important;
	align-items:center !important;
}
.woocommerce-Address-title.title h2{
	margin:0;
	width:100%;
	text-align:center;
}
.woocommerce-Address-title.title .edit{
	position:absolute;
	left: 0;
	top:50%;
	transform:translateY(-50%);
	white-space:nowrap;
    margin-top: 21px;
}

/* Single edit-address form page: left-align the "Billing address" /
   "Shipping address" heading and push it down below the page top */
.woocommerce-account .woocommerce-MyAccount-content > h1{
	text-align:left;
	margin:24px 0 24px;
}

/* Grey fill on the Country/State select fields (native + select2) */
.woocommerce-account select,
.woocommerce-account .select2-selection{
	background-color:#f5f6f8;
	border:1px solid #E2E2E2;
	color:#0D0D0D;
}
.woocommerce-account .woocommerce-Address-title{

    border-bottom: none;
}

.woocommerce-account .woocommerce-Addresses.addresses, .woocommerce-account .woocommerce-Addresse{
    margin-top : 16px;
}

/* Toggle login/register columns based on ?action=register */

.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
}

.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set .u-column2 {
    display: none;
}

body.registering.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set .u-column1 {
    display: none;
}

body.registering.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set .u-column2 {
    display: block;
}

/* -------------------------------------------------
   Register form — richer visual treatment
   ------------------------------------------------- */

.woocommerce-account .woocommerce-form-register {
    position: relative;
    overflow: hidden;
    padding-top: 44px;
}

.woocommerce-account .woocommerce-form-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--brand-red), var(--amber));
}

.woocommerce-account .dc-register-intro {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 4px;
}

.woocommerce-account .dc-register-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(192, 57, 43, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-account .dc-register-icon svg {
    width: 22px;
    height: 22px;
}

.woocommerce-account .dc-register-subtitle {
    margin: 2px 0 0 !important;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--slate);
}

.woocommerce-account .dc-register-benefits {
    list-style: none;
    margin: 4px 0 8px !important;
    padding: 16px !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.woocommerce-account .dc-register-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}

.woocommerce-account .dc-register-benefits li::before {
    content: '✓';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Plain informational paragraph ("A link to set a new password...") */
.woocommerce-account .woocommerce-form-register p:not([class]) {
    margin: 0 !important;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--slate);
    background: var(--paper);
    border-left: 3px solid var(--steel);
    padding: 12px 14px;
    border-radius: 8px;
}

/* Privacy policy note */
.woocommerce-account .woocommerce-privacy-policy-text {
    margin: 0 !important;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--slate);
}

.woocommerce-account .woocommerce-privacy-policy-text a {
    color: var(--brand-red);
    font-weight: 600;
}

.woocommerce-account .woocommerce-form-register button.woocommerce-form-register__submit {
    width: 100%;
    max-width: none;
    padding: 15px 24px;
    font-size: 1rem;
    margin-top: 4px;
}