/* Start Fieldset */
.tp-field {
    width: 100%;
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.tp-field-label {
    width: 35%;
}

.tp-field .tp-field-input {
    width: calc(100% - 38%);
}

.tp-field-label label {
    font-size: 14px;
    color: #242628;
    font-weight: 500;
}

.tp-field-desc {
    margin: 0;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.5;
    color: #9e8cca;
    font-weight: 400;
    /* Keep hint text on one or two tight lines so a longer description can
       never push the fields apart the way a full paragraph would. */
    max-width: 62ch;
}

/* Inline emphasis inside a description stays the same size as the hint. */
.tp-field-desc strong {
    font-weight: 600;
    color: #7c62c0;
}

.tp-field-desc code {
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 4px;
    background: #f3f1ff;
    color: #6d4fd0;
}

.tp-field .tp-field-input {
    width: 350px;
}

.tp-field .tp-field-input input[type='text'],
.tp-field .tp-field-input input[type='email'],
.tp-field .tp-field-input input[type='number'],
.tp-field .tp-field-input input[type='password'],
.tp-field .tp-field-input input[type='text']:focus {
    width: 100%;
    border: 1px solid #bba8e7;
    border-radius: 6px;
    box-shadow: none;
    padding: 3px 10px;
}

.tp-field .tp-field-input textarea {
    min-height: 80px;
    border: 1px solid #bba8e7;
    padding: 3px 10px;
    width: 100%;
}

.tp-field .tp-field-input select {
    width: 100%;
    border: 1px solid #bba8e7;
    border-radius: 4px;
    box-shadow: none;
    padding: 3px 10px;
}

/* End fieldset */

/*== start switch style ==*/
.tp-switch-wrapper {
    position: relative;
}

.tp-switch[type='checkbox'] {
    height: 0;
    width: 0;
    visibility: hidden;
    position: absolute;
}

.tp-switch-label {
    cursor: pointer;
    text-indent: -9999px;
    width: 40px;
    height: 20px;
    background: #665f7a;
    display: block;
    border-radius: 100px;
    position: relative;
}

.tp-switch-label:after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50px;
    transition: 0.3s;
}

.tp-switch:checked+label {
    background: #814bfe;
}

.tp-switch:checked+label:after {
    left: calc(100% - 1px);
    transform: translateX(-100%);
}

.tp-switch-label:active:after {
    width: 50px;
}

/*== End switch style ==*/

.tp-image-container {
    margin-top: 10px;
}

.tp-upload-button {
    color: #814bfe !important;
    border-color: #814bfe !important;
}

.tp-upload-button:focus {
    box-shadow: none !important;
}

#tp-login-template {
    width: 100% !important;
}
/* --- Colour picker field ------------------------------------------------- */
.tp-color-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-color-wrapper .tp-color-swatch {
    width: 38px;
    height: 34px;
    padding: 2px;
    border: 1px solid #bba8e7;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    flex: 0 0 auto;
}

.tp-color-wrapper .tp-color-text {
    width: 130px;
    padding: 7px 10px;
    border: 1px solid #bba8e7;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
}
.tp-color-wrapper .tp-color-text:focus {
    outline: none;
    border-color: #814bfe;
    box-shadow: 0 0 0 2px #ece6f9;
}

.tp-color-wrapper .tp-color-clear {
    padding: 6px 12px;
    border: 1px solid #bba8e7;
    background: #fff;
    color: #814bfe;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}
.tp-color-wrapper .tp-color-clear:hover { background: #f3f1ff; }
