/**
 * All My Vinyl — Site styles
 *
 * Site-wide and third-party styling (Gravity Forms, Simple Ajax Chat Pro,
 * Theme My Login, Changelog as a Service, GeneratePress helpers). Moved here
 * from Customizer → Additional CSS in 2.7.3 so all site CSS ships with the
 * plugin. AMV component styles live in amv.css and amv-release.css.
 */

/* ════════════════════════════════════════════
   GENERATEPRESS
════════════════════════════════════════════ */

.logged-in .hide-on-login {
    display: none !important;
}

h5 {
    margin-bottom: 0.5rem;
}

button, input, select, textarea {
    font-family: var(--gp-font--reddit-sans);
    font-size: 1rem;
}

/* "Coming soon" hook element */
.coming-soon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 20px;
    border-radius: 20px;
    background-color: #F5F5F7;
    color: #d55256;
    font-size: 18px;
    font-weight: 600;
}


/* ════════════════════════════════════════════
   GRAVITY FORMS
════════════════════════════════════════════ */

.gform_required_legend {
    display: none;
}

/* .gform_wrapper prefix: beats GeneratePress's input[type="submit"] rule,
   which otherwise wins on forms using the legacy "gravity-theme" (Top 5). */
.gform_wrapper .gform_button,
.gform_wrapper .gform_next_button {
    display: inline-flex;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 50px;
    background-color: var(--accent);
    color: var(--base-3);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.5s ease 0s;
}

.gform_wrapper .gform_button:hover,
.gform_wrapper .gform_next_button:hover {
    opacity: 0.85;
    color: var(--base-3);
}

.gform_wrapper.gravity-theme .field_description_above .description,
.gform_wrapper.gravity-theme .field_description_above .gfield_description,
.gform_wrapper.gravity-theme .field_description_above .gsection_description,
.gform_wrapper.gravity-theme .field_description_above .instruction {
    padding-bottom: 4px;
}

.gform_wrapper.gravity-theme .description,
.gform_wrapper.gravity-theme .gfield_description,
.gform_wrapper.gravity-theme .gsection_description,
.gform_wrapper.gravity-theme .instruction {
    clear: both;
    width: 100%;
    padding-top: 0;
    font-family: inherit;
    font-size: 15px;
    letter-spacing: normal;
    line-height: inherit;
}

/* GP Word Count */
.gp-word-count-label {
    font-size: 14px;
    margin-top: 20px !important;
}


/* ════════════════════════════════════════════
   SIMPLE AJAX CHAT PRO
════════════════════════════════════════════ */

.sacpro-box {
    position: relative;
    float: left;
    box-sizing: border-box;
    width: 60%;
    min-width: 340px;
    margin: 0 !important;
    padding: 0;
}

#sacpro .sacpro-form {
    float: left;
    box-sizing: border-box;
    width: 40%;
    min-width: 220px;
    margin: 20px 0;
    padding: 0 0 0 40px !important;
}

#sacpro .sacpro-form .sacpro-form-submit-button {
    margin: 0;
    border-radius: 40px;
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
}

img.sacpro-chat-image {
    border: 2px solid #eee;
    padding: 4px;
}

.sacpro .sacpro-latest-message {
    display: none;
}


/* ════════════════════════════════════════════
   THEME MY LOGIN
════════════════════════════════════════════ */

.tml-links li {
    display: none !important;
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Was a site-wide `ul` reset; scoped to the login forms in 2.7.3. */
.tml ul {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.tml-button {
    border-radius: 20px;
}

.tml {
    font-size: 1em;
}

.tml * {
    box-sizing: border-box;
}

.tml .tml-field-wrap {
    margin-bottom: 1em;
}

.tml .tml-label {
    display: block;
    margin: 0.5em 0;
}

.tml .tml-checkbox + .tml-label {
    display: inline;
}

.tml .tml-field {
    width: 100%;
}

.tml .tml-description {
    display: block;
    margin: 0.5em 0;
    font-size: 0.85em;
    font-style: italic;
}

.tml .tml-errors,
.tml .tml-messages {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tml .tml-error,
.tml .tml-message,
.tml .tml-success,
.tml .tml-action-confirmaction .success {
    display: block;
    margin: 0 0 1em;
    padding: 0.75em;
    border-left: 5px solid #d55256 !important;
    box-shadow: none !important;
}

.tml .tml-error {
    border-left-color: #dc3232;
}

.tml .tml-success,
.tml .tml-action-confirmaction .success {
    border-left-color: #46b450;
}

#pass-strength-result {
    margin-bottom: 1em;
    padding: 0.5em;
    border: 1px solid #ddd;
    background-color: #eee;
    color: #23282d;
    font-weight: bold;
    opacity: 0;
}

#pass-strength-result.strong {
    background-color: #c1e1b9;
    border-color: #83c373;
    opacity: 1;
}

#pass-strength-result.good {
    background-color: #ffe399;
    border-color: #ffc733;
    opacity: 1;
}

#pass-strength-result.bad {
    background-color: #fbc5a9;
    border-color: #f78b53;
    opacity: 1;
}

#pass-strength-result.short {
    background-color: #f1adad;
    border-color: #e35b5b;
    opacity: 1;
}


/* ════════════════════════════════════════════
   CHANGELOG AS A SERVICE
════════════════════════════════════════════ */

.caas-badge {
    padding: 6px 8px !important;
    border-radius: 20px !important;
    color: #1a1a1a !important;
    font-size: 11px;
    font-weight: 700 !important;
}

.caas-item-text {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    line-height: 22px;
}
