/* Vendor account pages, top bar and on-page editor. Only loaded for vendors and on /vendor/ pages. */

/* Top bar */
/* The theme's header is fixed, so the bar sits above it and pushes it and the page down. */
.trm-vendor-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    z-index: 95;
    background: #0B2A4A;
    color: #fff;
    font-size: 14px;
}
.trm-vendor-bar-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
}
.trm-vendor-bar-name {
    font-weight: 700;
    margin-right: auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.trm-vendor-bar a,
.trm-vendor-bar button {
    white-space: nowrap;
}
body.trm-vendor-signed-in {
    padding-top: 38px;
}
body.trm-vendor-signed-in .header {
    top: 38px;
}
.trm-vendor-bar a,
.trm-vendor-bar button {
    color: #fff;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* Pages */
/* Top padding clears the theme's fixed header. */
.trm-vendor-page {
    padding: 110px 0 72px;
}
.trm-vendor-card {
    max-width: 640px;
    margin: 0 auto;
}
.trm-vendor-card h1 {
    font-size: 38px;
    margin-bottom: 20px;
}
.trm-vendor-card h2 {
    font-size: 22px;
    margin: 28px 0 14px;
}
.trm-vendor-form {
    margin-top: 20px;
}
.trm-vendor-field {
    margin-bottom: 18px;
}
.trm-vendor-field label,
.trm-vendor-label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}
.trm-vendor-field input,
.trm-vendor-field select,
.trm-vendor-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #8a94a0;
    border-radius: 8px;
    font: inherit;
    background: #fff;
}
.trm-vendor-field p {
    margin: 0;
}
.trm-vendor-help {
    color: #566270;
    font-size: 14px;
    line-height: 1.45;
    margin: 6px 0 0;
}
.trm-vendor-check {
    margin-bottom: 18px;
}
.trm-vendor-hp {
    position: absolute;
    left: -9999px;
    height: 1px;
    overflow: hidden;
}
.trm-vendor-form .btn-theme,
.trm-vendor-claim .btn-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    min-height: 46px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}
.trm-vendor-links {
    margin-top: 20px;
}
.trm-vendor-card a:not(.btn-theme) {
    color: var(--secondary-color);
    text-decoration: underline;
}
.trm-vendor-notice {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    line-height: 1.45;
}
.trm-vendor-notice p {
    margin: 0;
    line-height: 1.45;
}
.trm-vendor-success { background: #e6f4ea; color: #14532d; }
.trm-vendor-error   { background: #fde8e8; color: #8a1c1c; }
.trm-vendor-warning { background: #fff5d6; color: #5c4400; }
.trm-vendor-linkbtn {
    background: none;
    border: 0;
    padding: 0;
    margin-top: 4px;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.trm-vendor-claims {
    list-style: none;
    margin: 0;
    padding: 0;
}
.trm-vendor-claim {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #dfe3e8;
}
.trm-vendor-status {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    background: #eceff3;
    color: #33475b;
}
.trm-status-approved { background: #e6f4ea; color: #14532d; }
.trm-status-pending  { background: #fff5d6; color: #5c4400; }
.trm-status-rejected,
.trm-status-revoked  { background: #fde8e8; color: #8a1c1c; }

/* On-page editor */
.trm-editor-notice {
    background: #fff5d6;
    color: #5c4400;
    padding: 12px 20px;
    text-align: center;
    line-height: 1.45;
}
.trm-pencil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 6px;
    padding: 0;
    vertical-align: middle;
    color: var(--secondary-color);
    background: #eaf1f9;
    border: 1px solid #b9cde3;
    border-radius: 50%;
    cursor: pointer;
}
.trm-pencil:hover {
    background: #d5e4f4;
}
.trm-pencil[hidden] {
    display: none;
}
.company-details-box .trm-pencil {
    margin-left: 8px;
}
.trm-field-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    vertical-align: middle;
}
.trm-field-badge[hidden] {
    display: none;
}
.trm-badge-edited  { background: #dbeafe; color: #123c7a; }
.trm-badge-pending { background: #fff5d6; color: #5c4400; }
.trm-field-editor {
    margin-top: 8px;
    width: 100%;
}
.trm-field-editor input[type="text"],
.trm-field-editor input[type="email"],
.trm-field-editor input[type="url"],
.trm-field-editor textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #8a94a0;
    border-radius: 6px;
    font: inherit;
    color: #282C32;
    background: #fff;
}
.trm-field-check {
    color: inherit;
}
.trm-field-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.trm-field-done,
.trm-field-cancel {
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 14px;
    border: 1px solid var(--secondary-color);
    cursor: pointer;
}
.trm-field-done {
    background: var(--secondary-color);
    color: #fff;
}
.trm-field-cancel {
    background: #fff;
    color: var(--secondary-color);
}
.trm-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.trm-more-fields {
    padding: 40px 0;
    background: #f7f9fc;
}
.trm-more-fields h2 {
    font-size: 24px;
    margin-bottom: 8px;
}
.trm-more-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px 28px;
    margin: 18px 0 0;
}
.trm-more-row dt {
    font-weight: 700;
}
.trm-more-row dd {
    margin: 4px 0 0;
    word-break: break-word;
}
.trm-editor-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: #fff;
    border-top: 1px solid #c9d2dc;
    box-shadow: 0 -4px 16px rgba(11, 42, 74, 0.12);
}
.trm-editor-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.trm-editor-count {
    font-weight: 700;
    white-space: nowrap;
}
.trm-editor-note {
    flex: 1 1 220px;
    padding: 8px 12px;
    border: 1px solid #8a94a0;
    border-radius: 8px;
    font: inherit;
}
.trm-editor-error {
    color: #8a1c1c;
    flex-basis: 100%;
    order: 5;
}
.trm-editor-error:empty {
    display: none;
}
.trm-editor-discard {
    background: none;
    border: 0;
    padding: 4px;
    color: var(--secondary-color);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.trm-editor-discard[hidden] {
    display: none;
}
.trm-editor-submit {
    display: inline-flex;
    align-items: center;
    padding: 12px 26px;
    min-height: 46px;
    line-height: 1.2;
    cursor: pointer;
}
.trm-editor-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
body.trm-has-editor-bar {
    padding-bottom: 150px;
}
@media screen and (min-width: 768px) {
    body.trm-has-editor-bar {
        padding-bottom: 90px;
    }
}
@media screen and (max-width: 767px) {
    .trm-vendor-bar-name {
        display: none;
    }
    .trm-vendor-bar-inner {
        justify-content: space-between;
    }
}
