/*
 * Login / register forms ([gig_login_form], [gig_register_form]) and the lost / reset
 * password card on My Account (gig_account_card_open() in includes/account-pages.php),
 * the logged-in My Account pages and the [my_subscriptions] table.
 * Novamira design "Gifted in Greece: playful flight": Aka-Acid-Quicksand, ink #1F2927,
 * text #928E89, accent #E71F8D, light blue #7BD0EA, yellow #F9E20D, purple #483D94.
 * Radius rule: inputs 10px, cards 12px, buttons 40px (pill).
 * Loaded only on those pages (gig_account_pages_styles()).
 */

:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form.login,
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form.register,
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form.lost_reset_password {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

/* Rows and labels */
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .form-row {
    float: none;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
}
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .form-row label {
    display: block;
    margin-bottom: 8px;
    color: #1F2927;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .required {
    color: #E71F8D;
}

/* Text fields and the "who are you" select */
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .form-row .input-text,
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .form-row select {
    width: 100%;
    height: 52px;
    padding: 13px 16px;
    border: 2px solid #7BD0EA;
    border-radius: 10px;
    background-color: #FFFFFF;
    color: #1F2927;
    font-family: "Aka-Acid-Quicksand", sans-serif;
    font-size: 16px;
    line-height: 1.3;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .form-row select {
    padding-right: 44px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%23E71F8D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 9px;
    cursor: pointer;
}
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .form-row .input-text:focus,
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .form-row select:focus {
    border-color: #E71F8D;
    box-shadow: 0 0 0 4px rgba(231, 31, 141, 0.15);
    outline: none;
}

/* Checkboxes: "remember me" and the terms */
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .form-row label.woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: #928E89;
    font-weight: 400;
    cursor: pointer;
}
/* The field itself is the box; the theme's own box (label > input::before) is hidden */
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .woocommerce-form__input-checkbox {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 2px solid #7BD0EA;
    border-radius: 5px;
    background: #FFFFFF center / 12px 9px no-repeat;
    appearance: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .woocommerce-form__input-checkbox:checked {
    border-color: #E71F8D;
    background-color: #E71F8D;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.5l3.5 3.5L11 1' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .woocommerce-form__input-checkbox:focus-visible {
    box-shadow: 0 0 0 4px rgba(231, 31, 141, 0.15);
    outline: none;
}
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .woocommerce-form__input-checkbox::before {
    display: none;
}
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .woocommerce-form__label-for-checkbox a {
    color: #E71F8D;
}

/* Login: "remember me", then a full-width button */
.woocommerce.gig-account-form form.login p.form-row:not(.form-row-wide) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: 6px;
}

/* Buttons */
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .woocommerce-form-login__submit,
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .woocommerce-form-register__submit,
.gig-account-card form.lost_reset_password .woocommerce-Button {
    width: 100%;
    margin: 0;
    padding: 18px 30px;
    border: 0;
    border-radius: 40px;
    background-color: #E71F8D;
    color: #FFFFFF;
    font-family: "Aka-Acid-Quicksand", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
    transition: background-color 0.3s, transform 0.15s;
}
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .woocommerce-form-login__submit:is(:hover, :focus-visible),
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .woocommerce-form-register__submit:is(:hover, :focus-visible),
.gig-account-card form.lost_reset_password .woocommerce-Button:is(:hover, :focus-visible) {
    background-color: #483D94;
    color: #FFFFFF;
}
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .woocommerce-form-login__submit:active,
:is(.woocommerce.gig-account-form, .gig-account-card, .woocommerce-MyAccount-content) form .woocommerce-form-register__submit:active,
.gig-account-card form.lost_reset_password .woocommerce-Button:active {
    transform: translateY(1px);
}

/* Login: "lost your password?" */
.woocommerce.gig-account-form form.login .lost_password {
    margin: 4px 0 0;
    text-align: center;
    font-size: 15px;
}
.woocommerce.gig-account-form form.login .lost_password a {
    color: #E71F8D;
}

/* Register: the "Welcome!" intro from includes/woocommerce.php */
.woocommerce.gig-account-form .custom-registration-intro {
    margin: 0 0 26px;
    text-align: center;
}
.woocommerce.gig-account-form .custom-registration-intro h2 {
    margin: 0 0 12px;
    color: #483D94;
    font-family: "Aka-Acid-Quicksand", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}
.woocommerce.gig-account-form .custom-registration-intro p {
    margin: 0;
    color: #928E89;
    font-size: 16px;
    line-height: 1.6;
}

/* Register: small print (password e-mail note, privacy text) */
.woocommerce.gig-account-form form.register > p:not(.form-row),
.woocommerce.gig-account-form .woocommerce-privacy-policy-text {
    color: #928E89;
    font-size: 14px;
    line-height: 1.5;
}
.woocommerce.gig-account-form form.register > p:not(.form-row) {
    margin: -8px 0 18px;
}
.woocommerce.gig-account-form .woocommerce-privacy-policy-text p {
    margin: 0 0 20px;
}
.woocommerce.gig-account-form .woocommerce-privacy-policy-text a {
    color: #E71F8D;
}

/* Lost / reset password card (My Account "lost-password" endpoint) */
.gig-account-card {
    position: relative;
    box-sizing: border-box;
    max-width: 560px;
    margin: 30px auto 70px;
    padding: 44px 44px 40px;
    border-radius: 12px;
    background-color: #FFFFFF;
    box-shadow: 0 18px 40px rgba(72, 61, 148, 0.10);
}
.gig-account-card__doodle {
    position: absolute;
    height: auto;
    pointer-events: none;
}
.gig-account-card__doodle--spiral {
    top: -34px;
    right: -58px;
    width: 78px;
}
.gig-account-card__doodle--exclaim {
    top: 110px;
    left: -130px;
    width: 92px;
    transform: rotate(-12deg);
}
.gig-account-card__hello {
    line-height: 0;
    text-align: center;
}
.gig-account-card__hello img {
    display: inline-block;
    width: 62px;
    height: auto;
}
.gig-account-card__title {
    margin: 14px 0 12px;
    color: #483D94;
    font-family: "Aka-Acid-Quicksand", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}
.gig-account-card--sent .gig-account-card__title {
    font-size: 26px;
}
.gig-account-card > p,
.gig-account-card form.lost_reset_password > p:first-child {
    margin: 0 0 22px;
    color: #928E89;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}
/* The confirmation prints its own notice with the same text as the card title */
.woocommerce-message:has(+ .gig-account-card--sent) {
    display: none;
}

/* "No account? Register" / "Already have an account? Log in" / back to login */
:is(.gig-account-form, .gig-account-card) .gig-account-switch {
    margin: 28px 0 0;
    padding-top: 24px;
    border-top: 2px dashed #EAEAEA;
    text-align: center;
    color: #928E89;
    font-size: 15px;
}
:is(.gig-account-form, .gig-account-card) .gig-account-switch a {
    display: inline-block;
    margin-left: 6px;
    padding: 10px 22px;
    border-radius: 40px;
    background-color: #F9E20D;
    color: #1F2927;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
}
:is(.gig-account-form, .gig-account-card) .gig-account-switch a:hover {
    background-color: #1F2927;
    color: #F9E20D;
}

/* Error and info messages */
:is(.gig-account-form, .woocommerce-account) :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
    border-radius: 10px;
}

/* Waving hand doodle (Elementor image with the CSS class gig-wave, or the card's hand) */
.gig-wave img {
    transform-origin: 70% 85%;
    animation: gig-wave 1.8s ease-in-out 0.5s 1;
}
@keyframes gig-wave {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-8deg); }
    45% { transform: rotate(14deg); }
    60% { transform: rotate(-4deg); }
    75% { transform: rotate(10deg); }
}

@media (max-width: 1023px) {
    .gig-account-card__doodle--exclaim {
        display: none;
    }
}
@media (max-width: 767px) {
    .woocommerce.gig-account-form .custom-registration-intro h2,
    .gig-account-card__title {
        font-size: 26px;
    }
    .gig-account-card {
        margin: 20px 0 40px;
        padding: 32px 22px 28px;
    }
    .gig-account-card__doodle--spiral {
        top: -30px;
        right: -4px;
        width: 56px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .gig-wave img {
        animation: none;
    }
}

/* ---------- My Account (logged in): menu and content as cards ---------- */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
    position: relative;
    box-sizing: border-box;
    border-radius: 12px;
    background-color: #FFFFFF;
    box-shadow: 0 18px 40px rgba(72, 61, 148, 0.10);
}
.woocommerce-account .woocommerce-MyAccount-navigation {
    padding: 24px 18px 18px;
}
.woocommerce-account .woocommerce-MyAccount-content {
    padding: 40px 44px;
    color: #928E89;
    font-size: 16px;
    line-height: 1.6;
}
/* Waving hand above the menu, paper plane over the content card */
.woocommerce-account .woocommerce-MyAccount-navigation::before {
    content: "";
    display: block;
    width: 52px;
    height: 50px;
    margin: 0 auto 14px;
    background: url("/wp-content/uploads/2026/02/Group-24.svg") center / contain no-repeat;
}
.woocommerce-account .woocommerce-MyAccount-content::after {
    content: "";
    position: absolute;
    top: -46px;
    right: -50px;
    width: 110px;
    height: 100px;
    background: url("/wp-content/uploads/2026/02/Group-41.svg") center / contain no-repeat;
    pointer-events: none;
}

/* Menu: pills, the current page in magenta */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0 0 6px;
    padding: 0;
    border: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 20px;
    border: 0;
    border-radius: 40px;
    background: none;
    color: #1F2927;
    font-family: "Aka-Acid-Quicksand", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    transition: background-color 0.3s, color 0.3s;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background-color: rgba(123, 208, 234, 0.25);
    color: #1F2927;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #E71F8D;
    color: #FFFFFF;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 2px dashed #EAEAEA;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #928E89;
    font-weight: 400;
}

/* Content: greeting, links, the account details form */
.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
    color: #1F2927;
    font-size: 18px;
}
.woocommerce-account .woocommerce-MyAccount-content strong {
    color: #483D94;
}
.woocommerce-account .woocommerce-MyAccount-content a:not(.button) {
    color: #E71F8D;
}
.woocommerce-account .woocommerce-MyAccount-content fieldset {
    margin: 30px 0 10px;
    padding: 26px 0 0;
    border: 0;
    border-top: 2px dashed #EAEAEA;
}
.woocommerce-account .woocommerce-MyAccount-content legend {
    margin: 0 0 18px;
    padding: 0;
    color: #483D94;
    font-family: "Aka-Acid-Quicksand", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}
.woocommerce-account .woocommerce-MyAccount-content .form-row em {
    display: block;
    margin-top: 6px;
    color: #928E89;
    font-size: 14px;
}
.woocommerce-account .woocommerce-MyAccount-content form .woocommerce-Button {
    padding: 18px 40px;
    border: 0;
    border-radius: 40px;
    background-color: #E71F8D;
    color: #FFFFFF;
    font-family: "Aka-Acid-Quicksand", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
    transition: background-color 0.3s, transform 0.15s;
}
.woocommerce-account .woocommerce-MyAccount-content form .woocommerce-Button:is(:hover, :focus-visible) {
    background-color: #483D94;
    color: #FFFFFF;
}

/* Subscriptions table ([my_subscriptions] in includes/woocommerce.php) */
.my-subscriptions {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
}
/* Doubled class: beats the theme's zebra rule (table > tbody > tr:nth-child(2n) > td) */
table.my-subscriptions.my-subscriptions th,
table.my-subscriptions.my-subscriptions td {
    padding: 16px 12px;
    border: 0;
    border-bottom: 2px dashed #EAEAEA;
    background: none;
    text-align: left;
    vertical-align: middle;
}
.my-subscriptions th {
    color: #1F2927;
    font-size: 15px;
    font-weight: 700;
}
.my-subscriptions td:first-child {
    color: #483D94;
    font-size: 22px;
    font-weight: 700;
}
.my-subscriptions th:last-child,
.my-subscriptions td:last-child {
    text-align: right;
}
.my-subscriptions tr:last-child td {
    border-bottom: 0;
}
.gig-sub-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.gig-sub-status--paid {
    background-color: rgba(123, 208, 234, 0.30);
    color: #1F2927;
}
.gig-sub-status--unpaid {
    background-color: rgba(231, 31, 141, 0.12);
    color: #E71F8D;
}
/* a.button: beats WooCommerce's .woocommerce a.button */
table.my-subscriptions a.button {
    display: inline-block;
    padding: 10px 22px;
    border: 0;
    border-radius: 40px;
    background-color: #E71F8D;
    color: #FFFFFF;
    font-family: "Aka-Acid-Quicksand", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 19px;
    transition: background-color 0.3s;
}
table.my-subscriptions a.button:hover {
    background-color: #483D94;
    color: #FFFFFF;
}

@media (max-width: 1023px) {
    .woocommerce-account .woocommerce-MyAccount-content::after {
        display: none;
    }
}
@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 20px;
    }
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 30px 22px;
    }
    table.my-subscriptions.my-subscriptions th,
    table.my-subscriptions.my-subscriptions td {
        padding: 14px 6px;
    }
    .my-subscriptions td:first-child {
        font-size: 18px;
    }
}