/*
    Popup Window
    - Sometimes the profile form appears in a popup window, e.g. when launched from the renewal process.
*/

body[class*=template-popup] {
}

    body[class*=template-popup] #Secondary,
    body[class*=template-popup] #UpgradeStatusContainer .upgradeLink,
    body[class*=template-popup] #ExpirationDateContainer .renewLink {
        display: none;
    }

/*
    Profile Form
    - The membership profile form includes some extra parts that aren't on the standard user profile form.
*/

#ProfileForm #MembershipDetails {
}

    #ProfileForm #MembershipDetails .fieldContainer > .fieldTitle {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    #ProfileForm #MembershipDetails .fieldContainer > .fieldContent {
    }

        #ProfileForm #MembershipDetails .fieldContainer > .fieldContent .fieldText {
            padding-top: 0px;
            padding-bottom: 0px;
        }

    #ProfileForm #MembershipDetails #UsernameContainer {
    }

    #ProfileForm #MembershipDetails #MembershipContainer {
    }

    #ProfileForm #MembershipDetails #UpgradeStatusContainer {
    }

    #ProfileForm #MembershipDetails #ExpirationDateContainer {
    }

        #ProfileForm #MembershipDetails #ExpirationDateContainer .upgradeLink {
            margin-left: 10px;
        }

        #ProfileForm #MembershipDetails #ExpirationDateContainer .upgradeCompletionLink {
            margin-left: 10px;
        }

        #ProfileForm #MembershipDetails #ExpirationDateContainer .renewLink {
            margin-left: 10px;
        }

    #ProfileForm #MembershipDetails #PasswordContainer {
    }

    #ProfileForm #MembershipDetails #PasswordTools {
    }
    
#ProfileForm #CompanyDetails {
}
    
#ProfileForm #PersonalDetails {
}

#ProfileForm #PrimaryContactAddress {
}

    #ProfileForm #PrimaryContactAddress #PasswordHelp {
        /* .fieldText.control-helper - See Abstracts/Mixins.css */
    }

#ProfileForm #ProfessionalDetails {
}

#ProfileForm #MemberSearch {
}

    /* Optional: Give the member search fields more horizontal space by making them one column fields */

    /*
    #ProfileForm #MemberSearch .fieldContainer > label,
    #ProfileForm #MemberSearch .fieldContainer > .fieldTitle {
        display: block;
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0px;
        padding: 5px 0px;
    }

    #ProfileForm #MemberSearch .fieldContainer > .fieldContent {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0px;
    }
    */

    #ProfileForm #MemberSearch #MemberSearchPreferencesContainer {
    }

    #ProfileForm #MemberSearch #MemberSearchInfoContainer {
    }

#ProfileForm #EmailSubscriptions {
}

#ProfileForm #AgreementsContainer {
}

/* 
    Master Account
    - Only visible if the current login is a linked/sub account
*/

#MasterAccountSection {
}

    #MasterAccountSection #MasterAccountContainer {
        /* Only appears on sub account profile pages. */
    }

        #MasterAccountSection #MasterAccountContainer .fieldTitle {
            padding-top: 0px;
        }

        #MasterAccountSection #MasterAccountContainer .fieldContent {
        }

            #MasterAccountSection #MasterAccountContainer .fieldContent .masterAccountName {
                /* It's possible this doesn't exist, but it's expected to exist. */
            }

                .masterAccountName + .masterAccountUsername {
                    /* This combination can exist in multiple places, don't target a section ID. */
                }

                    .masterAccountName + .masterAccountUsername::before {
                        content: "(";
                    }

                    .masterAccountName + .masterAccountUsername::after {
                        content: ")";
                    }

            #MasterAccountSection #MasterAccountContainer .fieldContent .masterAccountUsername {
            }

    #MasterAccountSection #MasterAccountFunctions {
    }

        #MasterAccountSection #MasterAccountFunctions .fieldTitle {
            padding-top: 0px;
        }


/*
    Associated Accounts
*/

#AssociatedAccountsSection {
}
    #AssociatedAccountsSection fieldset#AssociatedAccounts {
    }

        #AssociatedAccountsSection fieldset#AssociatedAccounts legend {
        }

        #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields {
        }

            #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .fieldTitle {
            }

                #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .fieldTitle .accountType {
                }

                #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .fieldTitle .accountsIncluded {
                    font-weight: normal;
                }

            #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .fieldContent {
            }

            #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .AssociatedAccountsUsers {
            }

                #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .AssociatedAccountsUsers table {
                    width: 100%;
                    margin-bottom: 10px;
                    border-collapse: collapse;
                    border-color: var(--site-color-1-light);
                    border-width: var(--site-border-width);
                    border-style: solid;
                    background: #ffffff;
                }

                    #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .AssociatedAccountsUsers table tr {
                    }

                        #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .AssociatedAccountsUsers table tr th {
                            background: var(--site-color-1-lighter);
                            border-color: var(--site-color-1-light);
                            border-width: var(--site-border-width);
                            border-style: solid;
                            padding: 4px;
                        }

                        #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .AssociatedAccountsUsers table tr td {
                            border-color: var(--site-color-1-light);
                            border-width: var(--site-border-width);
                            border-style: solid;
                            padding: 4px;
                        }

                #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .AssociatedAccountsUsers.noAccounts {
                    margin-bottom: 10px;
                }

            #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .createSubAccount {
                margin: 0;
            }

                #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .createSubAccount a {
                }

                #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .createSubAccount .accountsAvailable {
                    display: block;
                }

                    #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .createSubAccount .accountsAvailable::before {
                        content: "(";
                    }

                    #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .createSubAccount .accountsAvailable::after {
                        content: ")";
                    }

                #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .createSubAccount a .accountTypeName {
                }

            #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .purchaseAssociatedAccounts {
                margin: 0;
            }

                #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .purchaseAssociatedAccounts a {
                }

                    #AssociatedAccountsSection fieldset#AssociatedAccounts .formFields .purchaseAssociatedAccounts a .accountTypeName {
                    }

/* To do: Do we need to review some of the stuff above? Is the form editable sometimes? */

#AssociatedAccountsSection {
}

    #AssociatedAccountsSection .changeSubAccounts a::before,
    #AssociatedAccountsSection .purchaseSubAccounts a::before {
        content: "";
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        display: inline-block;
        margin-right: 5px;
        font-style: normal;
        font-variant: normal;
        font-family: var(--site-icon-font-family);
        font-weight: var(--site-icon-font-weight);
        text-rendering: auto;
        line-height: 1;
    }

    #AssociatedAccountsSection .changeSubAccounts {
        display: inline-block;
    }

        #AssociatedAccountsSection .changeSubAccounts a {
            margin-right: var(--site-padding-thin);
        }

            #AssociatedAccountsSection .changeSubAccounts a::before {
                content: "\f4ff";
            }

    #AssociatedAccountsSection .purchaseSubAccounts {
        display: inline-block;
    }

        #AssociatedAccountsSection .purchaseSubAccounts a {
        }

            #AssociatedAccountsSection .purchaseSubAccounts a::before {
                content: "\f234";
            }

/* To do: Should this even be on the form? */
#AuthenticatedEmailContainer {
    display: none;
}
