/* Cabinet profile (shop.pen D4j0q / LCd3y). Scope to .pen-profile — do not set * / body font-family. */

.pen-profile {
    font-family: var(--pen-font-body);
    color: var(--pen-text);
}

.pen-profile__card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 32px 32px;
}

.pen-profile__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.pen-profile__avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28abe2 0%, #30c4e1 100%);
    color: #ffffff;
    font-family: var(--pen-font-head);
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pen-profile__name {
    font-family: var(--pen-font-head);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--pen-ink-navy);
}

.pen-profile__meta {
    margin-top: 4px;
    font-size: 13px;
    color: var(--pen-text-muted);
}

.pen-profile__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pen-profile__group {
    margin: 0;
}

.pen-profile__group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.pen-profile__label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--pen-text-muted);
}

.pen-profile__chip {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.pen-profile__chip--ok {
    background: #e8f7e4;
    color: var(--pen-leaf);
}

.pen-profile__chip--wait {
    background: #fef4e4;
    color: #c47a12;
}

.pen-profile__phone,
.pen-profile__email {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    min-height: 52px;
    padding: 10px 14px;
    background: var(--pen-sky-50);
    border: 1px solid var(--pen-line);
    border-radius: 14px;
}

.pen-profile__icon {
    color: var(--pen-brand);
    width: 18px;
    text-align: center;
    flex: 0 0 18px;
}

.pen-profile__phone-display {
    font-family: var(--pen-font-head);
    font-size: 16px;
    font-weight: 700;
    color: var(--pen-ink-navy);
}

.pen-profile__phone-field,
.pen-profile__email-field {
    flex: 1 1 160px;
    margin: 0;
    min-width: 0;
}

.pen-profile__phone-field {
    flex: 0 0 0;
    width: 0;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.pen-profile__phone:focus-within .pen-profile__phone-field {
    flex: 1 1 160px;
    width: auto;
    max-width: none;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
}

.pen-profile__phone:focus-within .pen-profile__phone-display {
    display: none;
}

.pen-profile__phone--bare .pen-profile__phone-field {
    flex: 1 1 160px;
    width: auto;
    max-width: none;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
}

.pen-profile__phone-field .help-block,
.pen-profile__email-field .help-block {
    margin-bottom: 0;
}

.pen-profile .pen-profile__input.form-control {
    height: 32px;
    padding: 0 4px;
    border: 0;
    box-shadow: none;
    background: transparent;
    font-family: var(--pen-font-body);
    font-size: 16px;
    color: var(--pen-ink-navy);
}

.pen-profile .pen-profile__input.form-control:focus {
    box-shadow: none;
    outline: none;
}

.pen-profile__change {
    margin: 0 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--pen-brand);
    cursor: pointer;
}

.pen-profile__change:hover,
.pen-profile__change:focus {
    color: var(--pen-brand-ink);
}

.pen-profile__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.pen-profile__cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    font-family: var(--pen-font-head);
    font-size: 15px;
    font-weight: 700;
    color: var(--pen-text-muted);
    text-decoration: none;
    background: transparent;
}

.pen-profile__cancel:hover,
.pen-profile__cancel:focus {
    color: var(--pen-ink-navy);
    text-decoration: none;
}

.pen-profile__save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--pen-brand);
    color: #ffffff;
    font-family: var(--pen-font-head);
    font-size: 15px;
    font-weight: 800;
}

.pen-profile__save:hover,
.pen-profile__save:focus {
    background: var(--pen-brand-deep);
    color: #ffffff;
}

@media (max-width: 767px) {
    .pen-profile__card {
        padding: 20px 16px 24px;
        border-radius: 16px;
    }

    .pen-profile__phone,
    .pen-profile__email {
        flex-direction: column;
        align-items: stretch;
    }

    .pen-profile__change {
        margin: 0;
    }

    .pen-profile__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pen-profile__save {
        order: -1;
        width: 100%;
    }

    .pen-profile__cancel {
        width: 100%;
    }
}
