/* Pet Home bridge for the retained customer workspace and tracking templates.
 * Keep WooCommerce layout, authentication, notices and transaction logic intact.
 */
body.pet-home { padding-bottom: 0; }

/* The generic Pet Home link rule must not erase a legacy button's contrast. */
.pet-home .motqo-button,
.pet-home .woocommerce :is(a, button, input).button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--pet-primary);
    border-radius: 999px;
    background: var(--pet-primary);
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: normal;
}
.pet-home .motqo-button:hover,
.pet-home .woocommerce :is(a, button, input).button:hover {
    border-color: var(--pet-hover);
    background: var(--pet-hover);
    color: #fff;
}
.pet-home .motqo-button--secondary,
.pet-home .motqo-button--light {
    border-color: var(--pet-border);
    background: var(--pet-surface);
    color: var(--pet-primary);
}
.pet-home .motqo-button--secondary:hover,
.pet-home .motqo-button--light:hover {
    border-color: var(--pet-primary);
    background: var(--pet-sage);
    color: var(--pet-primary);
}
.pet-home .motqo-button--danger {
    border-color: #b42318;
    background: #b42318;
    color: #fff;
}
.pet-home .motqo-button--danger:hover {
    border-color: #8f1c14;
    background: #8f1c14;
    color: #fff;
}
.pet-home .woocommerce input.button { width: auto; }
.pet-home .woocommerce :is(a, button, input).button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* Tracking used a dark industrial hero under dark Pet Home headings. */
.pet-home .motqo-page-hero {
    padding-block: 48px;
    border-bottom: 1px solid var(--pet-border);
    background: var(--pet-sage);
    color: var(--pet-text);
}
.pet-home .motqo-page-hero h1 { color: var(--pet-text); }
.pet-home .motqo-page-hero .motqo-eyebrow { color: var(--pet-primary); }
.pet-home .motqo-page-hero p:last-child { color: var(--pet-muted); font-size: 1rem; }
.pet-home .motqo-track-form,
.pet-home .motqo-aside-card {
    border-color: var(--pet-border);
    border-radius: var(--pet-radius);
    background: var(--pet-surface);
}
.pet-home .motqo-track-form h2,
.pet-home .motqo-aside-card h2 { font-size: 1.6rem; }
.pet-home .motqo-track-form p,
.pet-home .motqo-aside-card p { color: var(--pet-muted); font-size: .95rem; }
.pet-home .motqo-track-form label > span { color: var(--pet-text); font-size: .875rem; }
.pet-home .motqo-track-form input {
    min-height: 48px;
    border-color: var(--pet-border);
    border-radius: 8px;
    color: var(--pet-text);
    font-size: 1rem;
}
.pet-home .motqo-track-result {
    border-color: var(--pet-border);
    background: var(--pet-sage);
    color: var(--pet-text);
}

/* Preserve the real accessible h1 and give its visible counterpart a clear scale. */
.pet-home .motqo-account-page { padding-block: 36px 64px; background: var(--pet-bg); }
.pet-home .motqo-account-page__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 28px;
    color: var(--pet-muted);
    font-size: .875rem;
}
.pet-home .motqo-account-page__heading strong {
    color: var(--pet-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 400;
    line-height: 1.15;
}
.pet-home.woocommerce-account .woocommerce-MyAccount-navigation {
    border-color: var(--pet-border);
    border-radius: var(--pet-radius);
    background: var(--pet-surface);
}
.pet-home.woocommerce-account .woocommerce-MyAccount-navigation a {
    min-height: 48px;
    border-radius: 8px;
    color: var(--pet-text);
    font-size: .875rem;
}
.pet-home.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.pet-home.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    background: var(--pet-sage);
    color: var(--pet-primary);
}
.pet-home.woocommerce-account .woocommerce-MyAccount-content {
    border-color: var(--pet-border);
    border-radius: var(--pet-radius);
    background: var(--pet-surface);
}
.pet-home.woocommerce-account .woocommerce form.login,
.pet-home.woocommerce-account .woocommerce form.register {
    padding: 28px;
    margin-top: 20px;
    border: 1px solid var(--pet-border);
    border-radius: var(--pet-radius);
    background: var(--pet-surface);
}
.pet-home.woocommerce-account .woocommerce .form-row label { color: var(--pet-text); }
.pet-home.woocommerce-account .woocommerce form .form-row .input-text,
.pet-home.woocommerce-account .woocommerce form .form-row select {
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--pet-border);
    border-radius: 8px;
    background: var(--pet-surface);
    color: var(--pet-text);
    font-size: 1rem;
}
.pet-home .woocommerce input[type="checkbox"],
.pet-home .woocommerce input[type="radio"] {
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    padding: 0;
    vertical-align: middle;
    accent-color: var(--pet-primary);
}
.pet-home .motqo-company-banner {
    flex-wrap: wrap;
    border-color: var(--pet-border);
    border-radius: 12px;
    background: var(--pet-sage);
}
.pet-home .motqo-account-card,
.pet-home .motqo-account-empty,
.pet-home .motqo-summary-grid > div,
.pet-home .motqo-summary-grid a {
    border-color: var(--pet-border);
    border-radius: 12px;
}
.pet-home .motqo-account-card h2,
.pet-home .motqo-account-empty h2 { font-size: 1.4rem; }
.pet-home .motqo-account-empty p,
.pet-home .motqo-quick-links a { font-size: .875rem; }
.pet-home .motqo-quick-links a {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--pet-text);
    background: var(--pet-bg);
}
.pet-home .motqo-quick-links a:hover { background: var(--pet-sage); color: var(--pet-primary); }
.pet-home .motqo-account-table > div { font-size: .8125rem; }
.pet-home .motqo-account-table__head { font-size: .75rem !important; }
.pet-home .motqo-account-panel :is(td, dd, p),
.pet-home .motqo-company-banner strong { overflow-wrap: anywhere; }

@media (max-width: 767px) {
    .pet-home .motqo-page-hero { padding-block: 32px; }
    .pet-home .motqo-account-page { padding-block: 28px 44px; }
    .pet-home .motqo-account-page__heading { padding-bottom: 24px; }
    .pet-home.woocommerce-account .woocommerce form.login,
    .pet-home.woocommerce-account .woocommerce form.register { padding: 20px; }
}
