/* ==========================================================================
   Proxiva team pages: login extras and the list of shops
   ========================================================================== */

.team-code-input {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-status {
    margin-bottom: var(--space-3);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: #E3F5EA;
    color: #15803D;
    font-size: 14px;
    font-weight: 700;
}

.team-shops {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-shops__head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-shops__title {
    font-size: 20px;
    font-weight: 800;
    color: #1C1530;
}

.team-shops__count {
    min-width: 26px;
    height: 24px;
    padding: 0 8px;
    border-radius: var(--radius-pill);
    background: #EDE4FF;
    color: #5B21B6;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.team-shops__password {
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
}

.team-search {
    margin-bottom: 4px;
}

.team-shop {
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(28, 21, 48, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-shop__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-shop__name {
    font-size: 16px;
    font-weight: 800;
    color: #1C1530;
}

.team-shop__sub {
    font-size: 13px;
    color: #6A6080;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-shop__off {
    color: #B0124A;
}

.team-shop__open {
    height: 44px;
    padding: 0 16px;
    font-size: 15px;
}

.team-empty {
    padding: 24px 0;
    text-align: center;
    font-size: 15px;
    color: #6A6080;
}

/* ---------- Waiting too long: new orders 15+ minutes, pickups not collected ---------- */

.team-waiting {
    margin-bottom: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-waiting__title {
    margin: 0;
    color: #B0124A;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.team-waiting__card {
    padding: 12px 14px;
    border: 1.5px solid #F5B8CC;
    border-radius: var(--radius-lg);
    background: #FFF0F5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-waiting__card--not-collected {
    border-color: #FCD9A8;
    background: #FFF7EB;
}

.team-waiting__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-waiting__shop {
    color: #1C1530;
    font-size: 15px;
    font-weight: 800;
}

.team-waiting__order {
    color: #6A6080;
    font-size: 12px;
}

.team-waiting__tag {
    color: #B0124A;
    font-size: 12px;
    font-weight: 800;
}

.team-waiting__card--not-collected .team-waiting__tag {
    color: #B45309;
}

/* ---------- Add a shop and its setup page ---------- */

.team-add-shop {
    margin-bottom: 4px;
    text-decoration: none;
}

.team-back {
    align-self: flex-start;
    color: #5B21B6;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.team-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-form__title {
    margin: 0;
    color: #1C1530;
    font-size: 22px;
    font-weight: 800;
}

.team-form__section,
.team-card__section {
    margin: 0 0 8px;
    color: #6A6080;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.team-form__two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* Web address when adding a shop: "proxiva.in/" then the shop's name */
.team-address {
    height: 48px;
    padding: 0 14px;
    border: 1px solid #DCD4E8;
    border-radius: 12px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
}

.team-address.is-invalid {
    border-color: #DC2626;
}

.team-address__start {
    flex: 0 0 auto;
    color: #6A6080;
    font-size: 14px;
}

.team-address__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
}

.team-setup {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-card {
    padding: 14px;
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.team-card__title {
    margin: 0;
    color: #1C1530;
    font-size: 19px;
    font-weight: 800;
}

.team-card__sub {
    color: #5B21B6;
    font-size: 13px;
    font-weight: 700;
}

.team-card__line {
    margin: 0;
    color: #3E3650;
    font-size: 14px;
}

.team-card__actions {
    display: flex;
}

/* Outline button on team pages: #2A1052 text, #E2D4F7 border */
.team-button {
    min-height: 44px;
    padding: 0 16px;
    border: 1.5px solid #E2D4F7;
    border-radius: 12px;
    background: #FFFFFF;
    color: #2A1052;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.team-button:hover {
    background: #F6F1FF;
}

.team-card__actions .team-button {
    flex: 1 1 auto;
}

/* Stage tags: setting up #B45309 on #FFF6E5, trial #5B21B6 on #F1ECFB,
   trial ended #B0124A on #FFF0F5, subscribed #15803D on #E8F7EE */
.team-stage {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
}

.team-stage--setting_up {
    background: #FFF6E5;
    color: #B45309;
}

.team-stage--trial {
    background: #F1ECFB;
    color: #5B21B6;
}

.team-stage--trial_ended {
    background: #FFF0F5;
    color: #B0124A;
}

.team-stage--subscribed {
    background: #E8F7EE;
    color: #15803D;
}

.team-shop__name {
    text-decoration: none;
}

.team-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-checklist__item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6A6080;
    font-size: 14px;
}

.team-checklist__item.is-done {
    color: #1C1530;
}

.team-checklist__mark {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 11px;
    background: #E2DCEB;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-checklist__item.is-done .team-checklist__mark {
    background: #15803D;
}

.team-history {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-history li {
    padding-top: 8px;
    border-top: 1px solid #F1EDF7;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #1C1530;
    font-size: 14px;
}

.team-history__who {
    color: #6A6080;
    font-size: 12px;
}

.team-whatsapp {
    height: 48px;
    border-radius: 12px;
    background: #25D366;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-help {
    margin: 0;
    color: #6A6080;
    font-size: 12px;
    line-height: 1.5;
}

/* ---------- My shops: Set up and Open admin side by side ---------- */

.team-shop__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-shop__setup {
    height: 44px;
}

@media (max-width: 420px) {
    .team-shop {
        flex-wrap: wrap;
    }

    .team-shop__actions {
        width: 100%;
    }

    .team-shop__actions > * {
        flex: 1 1 0;
    }

    .team-shop__actions .team-shop__open {
        width: 100%;
    }
}

/* Amber note: #92400E on #FFF6E5 */
.team-warning {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #FFF6E5;
    color: #92400E;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

/* ---------- Add products from the catalogue ---------- */

.team-link-button {
    padding: 0;
    border: 0;
    background: none;
    color: #5B21B6;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.admin-button:disabled {
    background: #C9C1D6;
    cursor: default;
}

/* ---------- Products card on the setup page ----------
   Live #15803D on #E8F7EE, Not live yet #B45309 on #FFF6E5, Hidden #5E5670 on #EFEDF3 */

.team-products__total {
    margin: 0;
    color: #3E3650;
    font-size: 14px;
}

.team-products__number {
    margin-right: 4px;
    color: #1C1530;
    font-size: 28px;
    font-weight: 800;
}

.team-progress {
    width: 100%;
    height: 10px;
    border: 0;
    border-radius: 5px;
    background: #FFF6E5;
    overflow: hidden;
    appearance: none;
}

.team-progress::-webkit-progress-bar {
    border-radius: 5px;
    background: #FFF6E5;
}

.team-progress::-webkit-progress-value {
    border-radius: 5px;
    background: #15803D;
}

.team-progress::-moz-progress-bar {
    border-radius: 5px;
    background: #15803D;
}

.team-progress--small {
    height: 6px;
}

.team-products__boxes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.team-products__box {
    padding: 8px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 700;
}

.team-products__box strong {
    font-size: 17px;
    font-weight: 800;
}

.team-products__box--live {
    background: #E8F7EE;
    color: #15803D;
}

.team-products__box--notlive {
    background: #FFF6E5;
    color: #B45309;
}

.team-products__box--hidden {
    background: #EFEDF3;
    color: #5E5670;
}

.team-products__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #EEE8F5;
    border-radius: 12px;
}

.team-products__list > li + li {
    border-top: 1px solid #F1EDF7;
}

.team-products__summary {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    cursor: pointer;
}

.team-products__summary::-webkit-details-marker {
    display: none;
}

.team-products__row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.team-products__name {
    color: #1C1530;
    font-size: 14px;
}

.team-products__live {
    flex-shrink: 0;
    color: #3E3650;
    font-size: 12px;
}

.team-products__live strong {
    color: #15803D;
}

.team-products__brands {
    margin: 0;
    padding: 0 12px 10px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-products__brands li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #6A6080;
    font-size: 12px;
}

.team-products__more {
    font-style: italic;
}

.team-products__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.team-shops__links {
    margin-left: auto;
    display: flex;
    gap: 14px;
}

.team-shops__links .team-shops__password {
    margin-left: 0;
}

/* Red outline button: #B0124A on #FFFFFF, border #F5C2D3 */
.team-button--red {
    border-color: #F5C2D3;
    color: #B0124A;
}

.team-button--red:hover {
    background: #FFF0F5;
}

/* ---------- Trial and subscription card ----------
   Trial #5B21B6 on #F1ECFB; near the end or ended #B0124A on #FFF0F5; subscribed #15803D on #E8F7EE */

.team-trial {
    border: 1.5px solid #E2D4F7;
}

.team-trial.is-near {
    border-color: #F5B8CC;
}

.team-trial__ended {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #FFF0F5;
    color: #B0124A;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.team-trial__meter {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-trial__meter-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #1C1530;
    font-size: 14px;
}

.team-trial__left {
    color: #5B21B6;
    font-weight: 800;
}

.team-trial.is-near .team-trial__left {
    color: #B0124A;
}

.team-trial__used {
    color: #6A6080;
    font-size: 12px;
}

.team-progress--trial,
.team-progress--trial::-webkit-progress-bar {
    background: #F1ECFB;
}

.team-progress--trial::-webkit-progress-value {
    background: #5B21B6;
}

.team-progress--trial::-moz-progress-bar {
    background: #5B21B6;
}

.team-trial.is-near .team-progress--trial::-webkit-progress-value {
    background: #B0124A;
}

.team-trial.is-near .team-progress--trial::-moz-progress-bar {
    background: #B0124A;
}

.team-trial__buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.team-subscribed {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #E8F7EE;
    color: #15803D;
    font-size: 15px;
    font-weight: 800;
}

.team-sub-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-sub-form__button {
    background: #2A1052;
}

.team-sub-form__button:hover {
    background: #1C1530;
}

/* ---------- Team members and the "Can add shops" switch ---------- */

.team-members {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-member {
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-member.is-off {
    opacity: 0.6;
}

.team-member__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-member__name {
    color: #1C1530;
    font-size: 15px;
}

.team-member__sub {
    color: #6A6080;
    font-size: 12px;
}

.team-member__always {
    color: #15803D;
    font-size: 12px;
    font-weight: 800;
}

/* Switch: off #C9C1D6, on #15803D */
.team-switch {
    padding: 4px 0;
    border: 0;
    background: none;
    font: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.team-switch__label {
    color: #3E3650;
    font-size: 12px;
    font-weight: 700;
}

.team-switch__track {
    width: 44px;
    height: 26px;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 13px;
    background: #C9C1D6;
    display: flex;
    transition: background 0.15s;
}

.team-switch__knob {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #FFFFFF;
    transition: transform 0.15s;
}

.team-switch.is-on .team-switch__track {
    background: #15803D;
}

.team-switch.is-on .team-switch__knob {
    transform: translateX(18px);
}

/* ---------- Renewal: due #B45309 on #FFF6E5; extra days and paused #B0124A on #FFF0F5 ---------- */

.team-renewal {
    border: 1.5px solid #FCE3B0;
}

.team-renewal--grace,
.team-renewal--paused {
    border-color: #F5B8CC;
}

.team-renewal__note {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #FFF6E5;
    color: #92400E;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.team-renewal--grace .team-renewal__note,
.team-renewal--paused .team-renewal__note {
    background: #FFF0F5;
    color: #B0124A;
}

/* Unpaid extension: amber #B45309 */
.team-unpaid,
.team-renewal-card__unpaid {
    margin: 0;
    color: #B45309;
    font-size: 12px;
    font-weight: 800;
}

.team-history li.is-unpaid > span:first-child {
    color: #B45309;
    font-weight: 700;
}

.team-extend {
    border-top: 1px solid #F1EDF7;
    padding-top: 10px;
}

.team-extend__summary {
    color: #B45309;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.team-extend[open] .team-extend__summary {
    margin-bottom: 10px;
}

.team-extend__days {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-extend__days .field__label {
    width: 100%;
}

.team-extend__day {
    min-height: 40px;
    padding: 0 12px;
    border: 1.5px solid #FCE3B0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #92400E;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.team-extend__day input {
    accent-color: #B45309;
}

.team-extend__day:has(input:checked) {
    background: #FFF6E5;
    border-color: #B45309;
}

.team-button--amber {
    border-color: #FCE3B0;
    color: #B45309;
}

.team-button--amber:hover {
    background: #FFF6E5;
}

/* Renewals due list on My shops */
.team-renewals__title {
    color: #B45309;
}

.team-renewal-card {
    border-color: #FCE3B0;
    background: #FFF7EB;
}

.team-renewal-card--grace,
.team-renewal-card--paused {
    border-color: #F5B8CC;
    background: #FFF0F5;
}

.team-renewal-card .team-button {
    flex-shrink: 0;
    min-height: 40px;
}
