/*
 * Jonny Cat — My Account page styles layered on top of style.css.
 * Enqueued only on WooCommerce account pages (see functions.php), so the
 * site header/shop are never affected. style.css is an incomplete build
 * that omits the account/login/dashboard styling; these rules fill the gaps.
 */

/* ---- Login / register: constrain the two-column section ---- */
.woocommerce-account .woocommerce > .x-container.clear.max.width {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Login FAQ block is output twice (desktop + mobile) to swap by viewport;
   hide the mobile copy on desktop and swap below 979px. */
.woocommerce-account .mobile-accordion { display: none; }
@media (max-width: 979px) {
    .woocommerce-account .desktop-accordion { display: none; }
    .woocommerce-account .mobile-accordion { display: block; }
}

/* ---- Dashboard: constrain the content sections (hero stays full-width) ---- */
.woocommerce-account .woocommerce-MyAccount-content .x-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* ---- Dashboard hero banner (ported from catspride account-page.scss) ---- */
.woocommerce-account .hero-banner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: radial-gradient(circle at 50% 100px, #7da1c0 0%, #276396 40%);
    background-color: #276396;
    padding: 60px;
}
.woocommerce-account .hero-banner__right {
    display: flex;
    align-items: center;
    justify-content: center;
}
.woocommerce-account .hero-banner__img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 767px) {
    .woocommerce-account .hero-banner__right { margin-top: 30px; }
    .woocommerce-account .hero-banner__img { max-width: 260px; }
}
@media (max-width: 1199px) {
    .woocommerce-account .hero-banner {
        padding-top: 90px;
        padding-left: 20px;
        padding-right: 20px;
    }
}
.woocommerce-account .hero-banner .container {
    width: 100%;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}
.woocommerce-account .hero-banner .row {
    display: flex;
    flex-wrap: wrap;
}
.woocommerce-account .hero-banner .col-md-6 { width: 100%; }
@media (min-width: 768px) {
    .woocommerce-account .hero-banner .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
.woocommerce-account .hero-banner .hero-banner__left {
    border: 5px solid #fff;
    border-radius: 20px;
    padding: 15px 20px;
}
.woocommerce-account .hero-banner .title-primary {
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.05;
    font-size: 45px;
}
.woocommerce-account .hero-banner .title-primary strong { font-weight: 800; }
.woocommerce-account .hero-banner .title-hero {
    color: #fff;
    font-size: 16px;
}
.woocommerce-account .hero-banner .account-box-wrapper {
    margin-top: 30px;
    color: #fff;
}
.woocommerce-account .hero-banner .account-box-wrapper p { margin-bottom: 0; }
.woocommerce-account .hero-banner .account-box-wrapper p a {
    color: #fff;
    text-decoration: underline;
}
.woocommerce-account .hero-banner .account-box-wrapper .svg-inline--fa {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    margin-right: 6px;
}
.woocommerce-account .hero-banner .account-box-wrapper ul { margin-top: 10px; }
.woocommerce-account .hero-banner .account-box-wrapper ul li {
    list-style-type: disc;
    margin-left: 40px;
}

/* ---- Choose Shelter page: full-width green hero + wide 2-column layout
   (ported from catspride account-page.scss .choose-shelter) ---- */
.woocommerce-account .choose-shelter.green {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    background: radial-gradient(circle at 50% 100px, #7da1c0 0%, #276396 40%);
    background-color: #276396;
}
.woocommerce-account .choose-shelter.green .x-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: stretch;
}
.woocommerce-account .choose-shelter.green .x-column { padding: 83px 0; }
.woocommerce-account .choose-shelter.green .x-3-5 { width: 55%; }
.woocommerce-account .choose-shelter.green .x-2-5 {
    width: 30%;
    text-align: center;
    background-color: rgba(10, 74, 120, 0.45);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: center;
    padding-left: 20px;
    padding-right: 20px;
}
.woocommerce-account .choose-shelter.green h1 {
    text-transform: uppercase;
    font-weight: 100;
    margin-bottom: 5px;
    color: #fff;
}
.woocommerce-account .choose-shelter.green h1 strong { font-weight: 800; }
.woocommerce-account .choose-shelter.green h2 {
    font-weight: 100;
    font-size: 20px;
    color: #fff;
}
.woocommerce-account .choose-shelter.green .x-2-5 h2 { text-transform: uppercase; }
.woocommerce-account .choose-shelter.green .x-text { margin: 36px 15px 18px 0; }
.woocommerce-account .choose-shelter.green #zip_code {
    border-radius: 5px;
    background-color: #fff;
    border: solid 1px #c8c8c8;
    color: #9b9b9b;
    height: 40px;
    width: 100%;
    margin-bottom: 15px;
    margin-top: 10px;
}
@media (max-width: 991px) {
    .woocommerce-account .choose-shelter.green .x-container { padding: 90px 0 50px; }
    .woocommerce-account .choose-shelter.green .x-column { padding: 0; }
    .woocommerce-account .choose-shelter.green .x-3-5 { width: 100%; text-align: center; }
    .woocommerce-account .choose-shelter.green .x-2-5 {
        width: 100%;
        background: transparent;
        padding-top: 30px;
        display: block;
    }
}

/* ---- Choose Shelter: search-result cards (ported from account-page.scss) ---- */
.woocommerce-account .catspride-NominateShelter-wrapper .results-shelter-text,
.woocommerce-account .catspride-NominateShelter-wrapper .no-shelter-found-text {
    margin: 30px 0;
    color: #152f52;
}
.woocommerce-account .catspride-NominateShelter-wrapper .x-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.woocommerce-account .catspride-NominateShelter-wrapper .x-container.width { display: block; }
.woocommerce-account .catspride-NominateShelter-wrapper .catspride-NominateShelter-single {
    width: 30.66666%;
    float: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #1460aa;
    color: #fff;
    text-align: center;
    padding: 20px 30px;
    border-bottom: 15px solid #272e63;
    min-height: 295px;
    margin-bottom: 40px;
    box-sizing: border-box;
}
.woocommerce-account .catspride-NominateShelter-wrapper .catspride-NominateShelter-single .h-custom-headline {
    text-transform: uppercase;
    font-weight: 200;
    font-size: 20px;
    margin-bottom: 16px;
    color: #fff;
}
.woocommerce-account .catspride-NominateShelter-wrapper .catspride-NominateShelter-single .subtext {
    font-size: 18px;
    margin-bottom: 5px;
    color: #fff;
}
.woocommerce-account .catspride-NominateShelter-wrapper .catspride-NominateShelter-single .visit-shelter-link {
    display: block;
    text-decoration: underline;
    color: #fff;
}
.woocommerce-account .catspride-NominateShelter-wrapper .catspride-NominateShelter-single .catspride-NominateShelter-selected {
    font-weight: bold;
    margin-top: 30px;
    display: block;
}
.woocommerce-account .catspride-NominateShelter-wrapper .catspride-NominateShelter-single .catspride-NominateShelter-awaiting-enrollment {
    margin-top: 20px;
    font-style: italic;
}
.woocommerce-account .catspride-NominateShelter-wrapper .catspride-NominateShelter-your-shelter {
    background-color: #272e63;
}
/* Nominate button — override the X theme .x-btn blob with catspride's pill */
.woocommerce-account .catspride-NominateShelter-wrapper .primary-button--white-blue {
    display: inline-block !important;
    width: auto !important;
    min-height: 0 !important;
    color: #1460aa !important;
    background-color: #fff !important;
    border: 2px solid #fff !important;
    font-size: 16px;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 15px;
    box-shadow: none !important;
    line-height: normal;
}
.woocommerce-account .catspride-NominateShelter-wrapper .primary-button--white-blue:hover {
    background-color: #1460aa !important;
    color: #fff !important;
}
@media (max-width: 767px) {
    .woocommerce-account .catspride-NominateShelter-wrapper .catspride-NominateShelter-single { width: 100%; }
}

/* ---- "Can't find your local shelter?" banner (gray bar + purple pill) ---- */
.woocommerce-account .woocommerce-MyAccount-content .catspride-NominateShelterBanner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #f0f0f0;
    padding: 25px 30px;
    margin: 50px auto 30px;
}
.woocommerce-account .catspride-NominateShelterBanner .x-column {
    width: auto;
    float: none;
    padding: 0;
}
.woocommerce-account .catspride-NominateShelterBanner h2 {
    font-size: 20px;
    color: #152f52;
    margin: 0;
}
.woocommerce-account .catspride-NominateShelterBanner .x-1-3 { text-align: right; }
@media (max-width: 767px) {
    .woocommerce-account .catspride-NominateShelterBanner { text-align: center; }
    .woocommerce-account .catspride-NominateShelterBanner h2 { margin-bottom: 20px; }
}
/* Jonny Cat blue pill button (was Cat's Pride purple) — override the X theme .x-btn blob */
.woocommerce-account .primary-button--purple {
    display: inline-block !important;
    width: auto !important;
    min-height: 0 !important;
    color: #fff !important;
    background-color: #0e6db5 !important;
    border: 2px solid #0e6db5 !important;
    font-size: 16px;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: none !important;
    line-height: normal;
}
.woocommerce-account .primary-button--purple:hover {
    background-color: #0a5691 !important;
    color: #fff !important;
    border-color: #0a5691 !important;
}

/* ---- Jonny Cat "Nominate" CTA on the member dashboard ---- */
.woocommerce-account a.jc-nominate-btn,
a.jc-nominate-btn {
    display: inline-block;
    background-color: #0e6db5;
    color: #fff !important;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 13px 34px;
    border: 2px solid #0e6db5;
    border-radius: 50px;
    text-decoration: none;
    line-height: normal;
    transition: background-color .15s ease, color .15s ease;
}
.woocommerce-account a.jc-nominate-btn:hover {
    background-color: #0a5691;
    border-color: #0a5691;
    color: #fff !important;
}
/* Outline variant used for "Choose a different shelter" */
.woocommerce-account a.jc-nominate-btn--outline {
    background-color: transparent;
    color: #0e6db5 !important;
}
.woocommerce-account a.jc-nominate-btn--outline:hover {
    background-color: #0e6db5;
    color: #fff !important;
}

/* ---- Shelter nomination modal: hidden popup (ported from account-page.scss) ----
   style.css lacked this, so the modal + loader dumped inline on the page. */
.woocommerce-account .cp-modal-wrapper {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9999;
}
.woocommerce-account .cp-modal-wrapper .cp-modal-inner-wrapper {
    background-color: #1460aa;
    color: #fff;
    margin: 15% auto;
    width: 80%;
    max-width: 700px;
    box-shadow: 5px 5px 35px -6px rgba(0, 0, 0, 0.56);
}
.woocommerce-account .cp-modal-wrapper .cp-modal-body {
    background: #3f51b5;
    padding: 30px;
}
.woocommerce-account .cp-modal-wrapper .cp-modal-body p {
    font-size: 30px;
    line-height: 35px;
    text-transform: uppercase;
    margin-bottom: 0;
}
.woocommerce-account .cp-modal-wrapper .cp-modal-body .cp-chosen-shelter-location { font-size: 18px; }
.woocommerce-account .cp-modal-wrapper .cp-modal-body .cp-bonus-code-input {
    margin-top: 20px;
    border-radius: 5px;
    font-size: 18px;
    padding: 10px 20px;
    height: 52px;
    max-width: 300px;
    width: 100%;
}
.woocommerce-account .cp-modal-wrapper .cp-modal-message { display: none; text-transform: none; }
.woocommerce-account .cp-modal-wrapper .cp-modal-loader {
    display: none;
    height: 40px;
    width: 40px;
    position: relative;
    top: 15px;
    left: 10px;
}
.woocommerce-account .cp-modal-wrapper input[type="text"].cp-bonus-code-on { display: none; }
.woocommerce-account .cp-modal-wrapper .cp-modal-continue { display: none; }
.woocommerce-account .cp-modal-wrapper .cp-modal-footer span.cp-continue-without-bonus-code { display: none; }
.woocommerce-account .cp-modal-wrapper .cp-modal-footer {
    background-color: #272e63;
    padding: 20px 40px;
}
.woocommerce-account .cp-modal-wrapper .cp-modal-submit,
.woocommerce-account .cp-modal-wrapper .cp-modal-continue {
    color: #fff;
    border: 2px solid #fff;
    background-color: #272e63;
    font-size: 18px;
    padding: 15px 25px;
    border-radius: 50px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
}
.woocommerce-account .cp-modal-wrapper .cp-modal-submit:hover,
.woocommerce-account .cp-modal-wrapper .cp-modal-continue:hover {
    background-color: #fff;
    color: #272e63;
}

/* ---- Nominate-shelter form (ported from account-page.scss .nominate-shelter) ---- */
.woocommerce-account .nominate-shelter { margin-top: 40px; }
.woocommerce-account .nominate-shelter h1,
.woocommerce-account .nominate-shelter h2,
.woocommerce-account .nominate-shelter h3,
.woocommerce-account .nominate-shelter h4 {
    font-weight: 300;
    font-size: 1.571em;
    padding-bottom: 4px;
    margin-bottom: 12px;
    color: #0a3055;
}
.woocommerce-account .nominate-shelter label {
    font-weight: 400;
    color: #282828;
    margin-bottom: 10px;
    margin-top: 15px;
    display: inline-block;
}
.woocommerce-account .nominate-shelter select,
.woocommerce-account .nominate-shelter textarea,
.woocommerce-account .nominate-shelter input[type=text],
.woocommerce-account .nominate-shelter input[type=email],
.woocommerce-account .nominate-shelter input[type=url],
.woocommerce-account .nominate-shelter input[type=tel],
.woocommerce-account .nominate-shelter .catspride-Input {
    display: inline-block;
    height: 3.45em;
    border: 1px solid rgba(0, 0, 0, .1);
    padding: 0 1.45em;
    font-size: 1rem;
    line-height: normal;
    color: #555;
    background-color: #fff;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}
.woocommerce-account .nominate-shelter .button-wrapper,
.woocommerce-account .nominate-shelter .x-container.button-wrapper {
    padding: 20px;
    text-align: center;
}
/* NOMINATE button (Jonny Cat blue pill) — scoped to the form so login buttons are untouched */
.woocommerce-account .nominate-shelter .primary-button--blue {
    display: inline-block !important;
    width: auto !important;
    min-height: 0 !important;
    color: #fff !important;
    background-color: #0e6db5 !important;
    border: 2px solid #0e6db5 !important;
    font-size: 16px;
    padding: 14px 34px !important;
    border-radius: 50px !important;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: none !important;
    line-height: normal;
    cursor: pointer;
}
.woocommerce-account .nominate-shelter .primary-button--blue:hover {
    background-color: #0a5691 !important;
    color: #fff !important;
    border-color: #0a5691 !important;
}

/* ---- Edit-account form (same catspride form styling) ---- */
.woocommerce-account .edit-account h1,
.woocommerce-account .edit-account h2,
.woocommerce-account .edit-account h3,
.woocommerce-account .edit-account h4 {
    font-weight: 300;
    font-size: 1.571em;
    padding-bottom: 4px;
    margin-bottom: 12px;
    color: #0a3055;
}
.woocommerce-account .edit-account label {
    font-weight: 400;
    color: #282828;
    margin-bottom: 10px;
    margin-top: 15px;
    display: inline-block;
}
.woocommerce-account .edit-account input[type=text],
.woocommerce-account .edit-account input[type=email],
.woocommerce-account .edit-account input[type=password],
.woocommerce-account .edit-account input[type=tel],
.woocommerce-account .edit-account input[type=url],
.woocommerce-account .edit-account input[type=number],
.woocommerce-account .edit-account select,
.woocommerce-account .edit-account textarea {
    display: inline-block;
    height: 3.45em;
    border: 1px solid rgba(0, 0, 0, .1);
    padding: 0 1.45em;
    font-size: 1rem;
    line-height: normal;
    color: #555;
    background-color: #fff;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}
/* keep radios/checkboxes their natural size */
.woocommerce-account .edit-account input[type=radio],
.woocommerce-account .edit-account input[type=checkbox] {
    width: auto;
    height: auto;
    margin-right: 8px;
}
/* Save changes button (navy pill) */
.woocommerce-account .edit-account button[name="save_account_details"] {
    display: inline-block !important;
    width: auto !important;
    min-height: 0 !important;
    color: #fff !important;
    background-color: #0a3055 !important;
    border: 2px solid #0a3055 !important;
    font-size: 16px;
    padding: 14px 34px !important;
    border-radius: 50px !important;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: none !important;
    line-height: normal;
    cursor: pointer;
    margin-top: 0;
}
.woocommerce-account .edit-account button[name="save_account_details"]:hover {
    background-color: #fff !important;
    color: #0a3055 !important;
}
.woocommerce-account form.woocommerce-EditAccountForm.edit-account {
    margin-top: 50px;
}

/* ---- Single shelter page: force .white regions to actually be white.
   The X-theme heading/text color was overriding the .white class, so the
   nominations box + "Help us get more nominations" panel rendered dark on
   the magenta/purple backgrounds (unreadable). ---- */
.single-cp_shelter .white,
.single-cp_shelter .white * {
    color: #fff !important;
}
/* keep the big nomination number tidy */
.single-cp_shelter .cp-nomination-count { line-height: 1 !important; }

/* Remove the "Have a bonus code?" option from the nominate popup */
.woocommerce-account .cp-modal-wrapper .cp-bonus-code-prompt,
.woocommerce-account .cp-modal-wrapper .cp-bonus-code-input {
    display: none !important;
}
