/* =========================================================
   ELRAPI — MY ACCOUNT SELLING FORMS
   Scoped front-end form refinements for My Auctions / Lots.
   ========================================================= */

.elrapi-account-form .elrapi-account-field > .elrapi-seller-autogrow {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    min-height: 154px;
    height: auto;
    box-sizing: border-box;
    overflow-y: hidden;
    resize: none;
    line-height: 1.55;
}

.elrapi-account-form .elrapi-account-field > .elrapi-seller-autogrow:disabled {
    overflow-y: auto;
}

/* =========================================================
   ELRAPI — SELLER UPLOAD / SAVE FEEDBACK
   ========================================================= */

.elrapi-seller-file-status {
    margin-top: 7px;
    min-height: 16px;
    color: #70857c;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
}

.elrapi-seller-file-status.is-working {
    color: #8a6718;
}

.elrapi-seller-file-status.is-success {
    color: #17634f;
}

.elrapi-seller-file-status.is-error {
    color: #9a3d35;
}

.elrapi-account-form.is-submitting {
    cursor: progress;
}

.elrapi-account-form .elrapi-account-button[disabled],
.elrapi-account-form button[type="submit"][disabled],
.elrapi-account-form input[type="submit"][disabled] {
    opacity: .68;
    cursor: wait !important;
    pointer-events: none;
}

/* =========================================================
   ELRAPI 0.8.0 — ROLLING LOFT SALE
   ========================================================= */

.elrapi-seller-room-summary img {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: 12px;
}

.elrapi-seller-room-summary h3 {
    margin-top: 12px;
}


/* =========================================================
   ELRAPI 0.9.14 — SHARED ACTION BUTTONS
   ========================================================= */

.elrapi-account-button,
a.elrapi-account-button,
.elrapi-account-link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #17634f;
    border-radius: 10px;
    background: #17634f;
    color: #ffffff !important;
    box-shadow: 0 5px 14px rgba(23,99,79,.13);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.elrapi-account-button:hover,
a.elrapi-account-button:hover,
.elrapi-account-link-button:hover {
    background: #103b31;
    border-color: #103b31;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(16,59,49,.16);
}

.elrapi-account-button:focus,
a.elrapi-account-button:focus,
.elrapi-account-link-button:focus {
    outline: 2px solid rgba(23,99,79,.25);
    outline-offset: 2px;
}

.elrapi-account-link-button.is-secondary {
    background: #ffffff;
    color: #17634f !important;
}

.elrapi-account-link-button.is-secondary:hover {
    background: #eff6f2;
    color: #103b31 !important;
}

.elrapi-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.elrapi-account-actions form {
    margin: 0;
}

.elrapi-bidding-box__payment-action {
    display: flex;
    margin-top: 12px;
}

@media (max-width: 600px) {
    .elrapi-account-actions {
        flex-direction: column;
    }

    .elrapi-account-actions .elrapi-account-link-button,
    .elrapi-account-actions .elrapi-account-button,
    .elrapi-bidding-box__payment-action .elrapi-account-link-button {
        width: 100%;
    }
}


/* =========================================================
   ELRAPI 0.9.29 — SELLER LOT ACTIONS
   ========================================================= */

.elrapi-seller-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 16px;
}

.elrapi-seller-lot-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e1ebe6;
}

.elrapi-seller-delete-form {
    display: inline-flex;
    margin: 0;
}

/* An expired, bid-free lot is a historical record, not an editable live lot. */
.elrapi-seller-unsold-info {
    margin: 12px 0 0;
    color: #566b61;
    line-height: 1.5;
}

.elrapi-seller-action,
a.elrapi-seller-action,
button.elrapi-seller-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 38px;
    margin: 0;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1px solid #17634f;
    border-radius: 9px;
    background: #ffffff;
    color: #17634f !important;
    box-shadow: 0 3px 10px rgba(18,71,55,.06);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.elrapi-seller-action:hover,
a.elrapi-seller-action:hover,
button.elrapi-seller-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(18,71,55,.11);
}

.elrapi-seller-action:focus-visible,
a.elrapi-seller-action:focus-visible,
button.elrapi-seller-action:focus-visible {
    outline: 2px solid rgba(23,99,79,.28);
    outline-offset: 2px;
}

.elrapi-seller-action--back,
a.elrapi-seller-action--back {
    border-color: #d4e3dc;
    background: #f7faf8;
    color: #355c4e !important;
}

.elrapi-seller-action--back:hover,
a.elrapi-seller-action--back:hover {
    border-color: #bcd4c8;
    background: #eef6f2;
    color: #153f33 !important;
}

.elrapi-seller-action--edit,
a.elrapi-seller-action--edit {
    background: #17634f;
    color: #ffffff !important;
}

.elrapi-seller-action--edit:hover,
a.elrapi-seller-action--edit:hover {
    border-color: #103b31;
    background: #103b31;
    color: #ffffff !important;
}

.elrapi-seller-action--danger,
button.elrapi-seller-action--danger {
    border-color: #d8aaa5;
    background: #fff8f7;
    color: #9b342d !important;
}

.elrapi-seller-action--danger:hover,
button.elrapi-seller-action--danger:hover {
    border-color: #b6463d;
    background: #b6463d;
    color: #ffffff !important;
}

@media (max-width: 600px) {
    .elrapi-seller-toolbar,
    .elrapi-seller-lot-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .elrapi-seller-delete-form {
        display: flex;
        width: 100%;
    }

    .elrapi-seller-action,
    a.elrapi-seller-action,
    button.elrapi-seller-action {
        width: 100%;
    }
}


/* =========================================================
   ELRAPI 0.9.32 — MY SALES ACTIONS + FILE UPLOADS
   ========================================================= */

.elrapi-seller-room-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
    margin-top: 14px;
}

.elrapi-seller-room-actions .elrapi-account-button,
.elrapi-seller-room-actions .elrapi-seller-action {
    min-height: 42px;
    margin: 0;
}

.elrapi-seller-manage-all {
    min-width: 154px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    white-space: nowrap;
}

.elrapi-account-form .elrapi-seller-file-input {
    display: block;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    margin: 4px 0 0;
    padding: 6px 8px;
    border: 1px solid #d6e4dd;
    border-radius: 10px;
    outline: 0;
    background: #f8fbf9;
    color: #60766d;
    font: inherit;
    font-size: 12px;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.elrapi-account-form .elrapi-seller-file-input:hover {
    border-color: #b9d2c6;
    background: #f3f8f5;
}

.elrapi-account-form .elrapi-seller-file-input:focus-visible {
    border-color: #17634f;
    box-shadow: 0 0 0 3px rgba(23,99,79,.12);
}

.elrapi-account-form .elrapi-seller-file-input::file-selector-button {
    min-height: 32px;
    margin: 0 12px 0 0;
    padding: 0 13px;
    border: 1px solid #c8ddd3;
    border-radius: 8px;
    background: #ffffff;
    color: #17634f;
    font: inherit;
    font-size: 11.5px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.elrapi-account-form .elrapi-seller-file-input:hover::file-selector-button {
    border-color: #17634f;
    background: #eef6f2;
    color: #103b31;
    box-shadow: 0 3px 9px rgba(18,71,55,.07);
}

/* Safari / older Chromium fallback. */
.elrapi-account-form .elrapi-seller-file-input::-webkit-file-upload-button {
    min-height: 32px;
    margin: 0 12px 0 0;
    padding: 0 13px;
    border: 1px solid #c8ddd3;
    border-radius: 8px;
    background: #ffffff;
    color: #17634f;
    font: inherit;
    font-size: 11.5px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 600px) {
    .elrapi-seller-room-actions {
        grid-template-columns: 1fr;
    }

    .elrapi-seller-room-actions .elrapi-account-button,
    .elrapi-seller-room-actions .elrapi-seller-action,
    .elrapi-seller-manage-all {
        width: 100% !important;
        min-width: 0 !important;
    }

    .elrapi-account-form .elrapi-seller-file-input {
        min-height: 50px;
        padding: 7px;
    }
}

/* =========================================================
   ELRAPI 0.9.39 — STRIPE CONNECT FULLY EMBEDDED
   ========================================================= */

.elrapi-account-gate--wide {
    width: min(100%, 920px);
    max-width: 920px;
}

.elrapi-stripe-embedded {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #d8e6df;
    border-radius: 14px;
    background: #fbfdfc;
    box-shadow: 0 10px 28px rgba(18, 61, 49, .06);
}

.elrapi-stripe-embedded__loader {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 10px;
    background: #f1f7f4;
    color: #173f34;
}

.elrapi-stripe-embedded__loader strong {
    font-size: 14px;
    font-weight: 850;
}

.elrapi-stripe-embedded__loader span,
.elrapi-stripe-embedded__note {
    color: #61776f;
    font-size: 12px;
    line-height: 1.55;
}

.elrapi-stripe-embedded__mount {
    width: 100%;
    min-height: 80px;
}

.elrapi-stripe-embedded__error {
    padding: 12px 14px;
    border: 1px solid #efc9c9;
    border-radius: 10px;
    background: #fff3f3;
    color: #8b2525;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
}

.elrapi-stripe-embedded__note {
    margin: 12px 2px 0;
    text-align: center;
}

@media (max-width: 600px) {
    .elrapi-stripe-embedded {
        padding: 10px;
        border-radius: 10px;
    }
}


/* Fully embedded Stripe account maintenance (no hosted Dashboard). */
.elrapi-stripe-management {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.elrapi-stripe-management__notice:empty {
    display: none;
}

.elrapi-stripe-management__panel {
    border: 1px solid #d8e6df;
    border-radius: 12px;
    background: #fbfdfc;
    overflow: hidden;
}

.elrapi-stripe-management__panel > summary {
    cursor: pointer;
    padding: 13px 15px;
    color: #173f34;
    font-weight: 800;
    list-style-position: inside;
}

.elrapi-stripe-management__panel > p {
    margin: 0;
    padding: 0 15px 10px;
    color: #61776f;
    font-size: 12px;
    line-height: 1.55;
}

.elrapi-stripe-management__panel > div {
    padding: 0 10px 12px;
}


/* =========================================================
   ELRAPI 0.9.40 — SELLER TYPE CLARITY BEFORE STRIPE
   ========================================================= */
.elrapi-seller-type {
    margin: 18px 0;
    padding: 0;
    border: 0;
}

.elrapi-seller-type legend,
.elrapi-seller-type h3 {
    margin: 0 0 6px;
    color: #103b31;
    font-size: 16px;
    font-weight: 900;
}

.elrapi-seller-type--setup {
    padding: 16px;
    border: 1px solid #dfe9e4;
    border-radius: 12px;
    background: #fbfdfc;
}

.elrapi-seller-type--setup > p {
    margin: 0 0 13px;
    color: #60766d;
    font-size: 12px;
    line-height: 1.55;
}

.elrapi-seller-type__option {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 9px 0;
    padding: 13px 14px;
    border: 1px solid #d7e4de;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}

.elrapi-seller-type__option:has(input:checked) {
    border-color: #17634f;
    box-shadow: 0 0 0 1px #17634f;
    background: #f5faf7;
}

.elrapi-seller-type__option input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.elrapi-seller-type__option span {
    display: block;
    min-width: 0;
}

.elrapi-seller-type__option strong,
.elrapi-seller-type__option small {
    display: block;
}

.elrapi-seller-type__option strong {
    color: #103b31;
    font-size: 13px;
    font-weight: 900;
}

.elrapi-seller-type__option small {
    margin-top: 4px;
    color: #60766d;
    font-size: 11px;
    line-height: 1.5;
}

.elrapi-seller-type--setup .elrapi-account-button {
    margin-top: 12px;
    width: 100%;
}

.elrapi-stripe-entity-summary {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 14px 0 10px;
    padding: 11px 13px;
    border: 1px solid #cfe1d8;
    border-radius: 10px;
    background: #f0f7f3;
}

.elrapi-stripe-entity-summary strong {
    color: #17634f;
    font-size: 12px;
    font-weight: 900;
}

.elrapi-stripe-entity-summary span {
    color: #60766d;
    font-size: 11px;
    line-height: 1.45;
}

/* =========================================================
   ELRAPI 0.9.41 — ACCOUNT CAPABILITIES
   ========================================================= */
.elrapi-account-purpose {
    margin: 18px 0;
    padding: 0;
    border: 0;
}

.elrapi-account-purpose legend {
    margin: 0 0 4px;
    color: #103b31;
    font-size: 16px;
    font-weight: 900;
}

.elrapi-account-purpose__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.elrapi-account-purpose__option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 92px;
    padding: 14px;
    border: 1px solid #d7e4de;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.elrapi-account-purpose__option:has(input:checked) {
    border-color: #17634f;
    box-shadow: 0 0 0 1px #17634f;
    background: #f5faf7;
}

.elrapi-account-purpose__option input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.elrapi-account-purpose__option span,
.elrapi-account-purpose__option strong,
.elrapi-account-purpose__option small {
    display: block;
}

.elrapi-account-purpose__option strong {
    color: #103b31;
    font-size: 13px;
    font-weight: 900;
}

.elrapi-account-purpose__option small {
    margin-top: 5px;
    color: #60766d;
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .elrapi-account-purpose__grid {
        grid-template-columns: 1fr;
    }

    .elrapi-account-purpose__option {
        min-height: 0;
    }
}


/* =========================================================
   ELRAPI 0.9.46 — SEPARATE SIGN-IN / REGISTRATION VIEWS
   ========================================================= */
.elrapi-account-auth--single {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: minmax(0, 1fr) !important;
}

.elrapi-account-auth--single .elrapi-account-auth__panel {
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.elrapi-account-auth-switch {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #dfe9e4;
}

.elrapi-account-auth-switch > span {
    color: #60766d;
    font-size: 13px;
    font-weight: 700;
}

.elrapi-account-auth-switch .elrapi-account-button--secondary {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-decoration: none;
    background: #f5faf7;
    color: #103b31;
    border: 1px solid #bcd3c8;
    box-shadow: none;
}

.elrapi-account-auth-switch .elrapi-account-button--secondary:hover,
.elrapi-account-auth-switch .elrapi-account-button--secondary:focus {
    background: #eaf4ef;
    color: #103b31;
}

.elrapi-account-auth-switch--compact {
    align-items: center;
    text-align: center;
}

.elrapi-account-back-link {
    color: #17634f;
    font-weight: 800;
    text-decoration: none;
}

.elrapi-account-back-link:hover,
.elrapi-account-back-link:focus {
    text-decoration: underline;
}

/* 0.9.67 — public Upcoming Auction countdown */
.elrapi-auction-card__countdown--start {
  display: grid;
  gap: 4px;
  margin: 14px 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(4, 77, 61, 0.18);
  border-radius: 10px;
  background: rgba(4, 77, 61, 0.05);
}

.elrapi-auction-card__countdown--start span,
.elrapi-auction-detail__start-countdown span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.elrapi-auction-card__countdown--start strong {
  font-size: 18px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.elrapi-auction-detail__start-countdown {
  display: grid;
  gap: 6px;
  width: fit-content;
  margin: 14px 0;
  padding: 14px 18px;
  border: 1px solid rgba(4, 77, 61, 0.18);
  border-radius: 12px;
  background: rgba(4, 77, 61, 0.05);
}

.elrapi-auction-detail__start-countdown strong {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
