html.vitara-customization-ui-root * {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html.vitara-customization-ui-root {
    font-size: 62.5%;
}

body.vitara-customization-ui-body {
    background-color: #f6f8fa;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#vitara-customization-editor ul {
    list-style: none;
}

#vitara-customization-editor label {
    font-size: 1.4rem;
}

#vitara-customization-editor h3 {
    font-size: 1.4rem;
    font-weight: 500;
}

#vitara-customization-editor .table-field > label {
    margin-right: 1rem;
}

#vitara-customization-editor .info-text {
    font-size: 1.4rem;
    margin-left: 1.2rem;
}

#vitara-customization-editor .info-tooltip {
    cursor: help;
    border-bottom: 1px dotted #000;
}

#vitara-customization-editor .is-sticky {
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#vitara-customization-editor .fullwidth {
    width: 100%;
}

#vitara-customization-editor input:not([type="radio"], [type="checkbox"], [type="color"]),
#vitara-customization-editor select,
#vitara-customization-editor textarea {
    border: none;
    font-size: 1.4rem;
    outline: 1px solid #000;
    padding: 5px;
    min-width: 20rem;
}

#vitara-customization-editor input[type="text"]:disabled,
#vitara-customization-editor input[type="number"]:disabled {
    background-color: #D3D3D3 ;
    cursor: not-allowed;
    opacity: 0.5;
}

#vitara-customization-editor input.invalid {
    outline-color: #d84a38;
    outline-width: 1.5px;
}

#vitara-customization-editor button {
    background-color: transparent;
    border: 1.5px solid;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1.4rem;
    padding: 0.8rem 1.6rem;
    transition: background-color 250ms ease, color 250ms ease;
}

#vitara-customization-editor button:not(.delete-button) {
    border-color: #249b43;
    color: #249b43;
}

#vitara-customization-editor button.delete-button {
    border-color: #d84a38;
    color: #d84a38;
}

#vitara-customization-editor button.edit-button {
    margin-right: 1rem;
}

#vitara-customization-editor button:not(.delete-button):hover,
#vitara-customization-editor button:not(.delete-button):active {
    background-color: #249b43;
    color: #fff;
}

#vitara-customization-editor button.delete-button:hover,
#vitara-customization-editor button.delete-button:active {
    background-color: #d84a38;
    color: #fff;
}

#vitara-customization-editor button.add-color {
    height: 3.5rem;
    width: 3.5rem;
    padding: 0;
}

#vitara-customization-editor button.add-color svg {
    height: 70%;
    width: 70%;
}

#vitara-customization-editor input[type="color"],
#vitara-customization-editor input[type="file"] {
    cursor: pointer;
}

#vitara-customization-editor input:focus,
#vitara-customization-editor select:focus,
#vitara-customization-editor textarea:focus {
    outline-color: #249b43;
    outline-width: 1.5px;
}

#vitara-customization-editor input.invalid:focus {
    outline-color: #d84a38;
}

#vitara-customization-editor input[type="checkbox"],
#vitara-customization-editor input[type="radio"] {
    display: none;
}

#vitara-customization-editor section {
    padding: 2rem 0;
}

#vitara-customization-editor section:not(:last-of-type) {
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

#vitara-customization-editor h2 {
    font-size: 1.6rem;
    font-weight: 500;
}

#vitara-customization-editor .form-header {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 4rem 2rem;
    position: sticky;
    left: 0;
    top: 0;
    z-index: 10;
}

#vitara-customization-editor .tab-container {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.2);
    max-width: 100rem;
    margin: 8rem auto;
}

#vitara-customization-editor .tab-header {
    display: flex;
}

#vitara-customization-editor .tab-navigation {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 1.6rem;
    padding: 1.6rem;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
}

#vitara-customization-editor .tab-navigation:not(:last-of-type) {
    border-right: 1px solid rgba(0,0,0,0.2);
}

#vitara-customization-editor .tab-navigation.active {
    background-color: #249b43;
    color: #fff;
}

#vitara-customization-editor .tab {
    max-height: 100vh;
    overflow: auto;
}

#vitara-customization-editor .tab:not(.visible) {
    display: none;
}

#vitara-customization-editor .tab h1 {
    font-size: 2.4rem;
    font-weight: 500;
}

#vitara-customization-editor .chart-settings,
#vitara-customization-editor .chart-styles,
#vitara-customization-editor .chart-translations {
    padding: 0 4rem 3rem;
}

#vitara-customization-editor .table-field {
    margin-top: 1.6rem;
}

#vitara-customization-editor .chart-styles .table-field {
    display: flex;
    align-items: center;
}

#vitara-customization-editor .chart-styles label {
    flex-basis: 15%;
}

#vitara-customization-editor .chart-styles .styling-component {
    font-family: inherit;
    flex-basis: 85%;
    padding: 1rem;
    resize: vertical;
}

#vitara-customization-editor .saved-palettes-section:not(.visible),
#vitara-customization-editor .saved-fonts-section:not(.visible) {
    display: none;
}

#vitara-customization-editor .palette-label {
    flex-basis: 12%;
}

#vitara-customization-editor .palette-colors {
    flex-basis: 73%;
    display: flex;
    flex-wrap: wrap;
    width: fit-content;
}

#vitara-customization-editor .color-tile {
    height: 3rem;
    width: 3rem;
    outline: 1px solid #000;
}

#vitara-customization-editor .action-buttons {
    display: flex;
    align-items: center;
}

#vitara-customization-editor .action-buttons .custom-check,
.action-buttons .custom-radio {
    margin-right: 2rem;
}

#vitara-customization-editor .saved-palette .action-buttons {
    flex-basis: 15%;
}

#vitara-customization-editor .saved-palette,
#vitara-customization-editor .saved-font {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 1rem;
    column-gap: 1.2rem;
}

#vitara-customization-editor .palette-label,
#vitara-customization-editor .custom-font-label {
    font-size: 1.4rem;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

#vitara-customization-editor .section-header {
    display: flex;
    justify-content: space-between;
}

#vitara-customization-editor .section-header .action-labels {
    margin-right: 14rem;
}

#vitara-customization-editor .action-labels li {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 500;
    margin-right: 1rem;
}

#vitara-customization-editor .color-picker-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

#vitara-customization-editor .font-file {
    margin-right: 5px;
}

#vitara-customization-editor .color-picker-wrapper {
    position: relative;
}

#vitara-customization-editor .color-picker {
    border: 1px solid #000;
    height: 3.5rem;
    width: 3.5rem;
    padding: 0;
    outline: none;
}

#vitara-customization-editor .color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
    background-color: #fff;
}

#vitara-customization-editor .color-picker::-webkit-color-swatch {
    border: none;
}

#vitara-customization-editor .add-color:hover svg {
    fill: #fff;
}

#vitara-customization-editor .remove-color {
    height: 1.5rem;
    width: 1.5rem;
    border: none;
    border-radius: 100%;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    padding: 0;
    position: absolute;
    left: 100%;
    top: 0;
    transform: translate(-50%, -50%);
}

#vitara-customization-editor .remove-color svg {
    height: 90%;
    width: 90%;
}

#vitara-customization-editor .remove-color:hover svg {
    fill: #fff;
}

#vitara-customization-editor .other-settings .table-field,
#vitara-customization-editor .translation-fields .table-field,
#vitara-customization-editor .upload-font-section .table-field,
#vitara-customization-editor .create-palette-section .table-field {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 1rem;
}

#vitara-customization-editor .upload-font-section label,
.create-palette-section label,
.upload-font-section .hidden-block,
.create-palette-section .hidden-block {
    flex-basis: 10%;
    margin-right: 1rem;
}

#vitara-customization-editor .clear-palette,
#vitara-customization-editor .clear-font {
    margin-right: 5px;
}

#vitara-customization-editor .translation-fields .table-field:first-of-type {
    margin-top: 0;
}

#vitara-customization-editor .metric-suffix {
    font-size: 1.4rem;
    text-align: center;
    width: 4rem;
    min-width: unset !important;
}

#vitara-customization-editor .metric-suffix:focus {
    position: relative;
    z-index: 10;
}

#vitara-customization-editor .current-language {
    font-size: 1.6rem;
    display: inline-block;
    color: #249b43;
}

#vitara-customization-editor .custom-check,
#vitara-customization-editor .custom-radio {
    cursor: pointer;
}

#vitara-customization-editor .custom-check-icon,
#vitara-customization-editor .custom-radio-icon {
    border: 1.5px solid #249b43;
    display: inline-block;
    align-items: center;
    height: 2rem;
    width: 2rem;
    vertical-align: text-top;
}

#vitara-customization-editor .custom-radio-icon {
    border-radius: 100%;
    position: relative;
}

#vitara-customization-editor .custom-check-icon::before {
    content: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzI0OWI0MyI+PHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik0xOSAzSDVjLTEuMTEgMC0yIC45LTIgMnYxNGMwIDEuMS44OSAyIDIgMmgxNGMxLjExIDAgMi0uOSAyLTJWNWMwLTEuMS0uODktMi0yLTJ6bS05IDE0bC01LTUgMS40MS0xLjQxTDEwIDE0LjE3bDcuNTktNy41OUwxOSA4bC05IDl6Ii8+PC9zdmc+DQo=);
    display: inline-block;
    height: 100%;
    width: 100%;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 200ms ease, transform 200ms ease;
}

#vitara-customization-editor .custom-check input:checked ~ .custom-check-icon::before {
    opacity: 1;
    transform: scale(1.4);
}

#vitara-customization-editor .custom-radio-icon::before {
    content: "";
    display: inline-block;
    height: 70%;
    width: 70%;
    background-color: #249b43;
    border-radius: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: opacity 200ms ease, transform 200ms ease;
}

#vitara-customization-editor .custom-radio:has(input:checked) .custom-radio-icon::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#vitara-customization-editor .custom-check:has(input:disabled),
#vitara-customization-editor .custom-radio:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.5;
}

#vitara-customization-editor .custom-check-label,
#vitara-customization-editor .custom-radio-label {
    margin-right: 2px;
}

#vitara-customization-editor .color-picker-field.table-field {
    align-items: start;
    flex-wrap: nowrap;
}

#vitara-customization-editor .color-picker-field label {
    flex-shrink: 0;
    margin-top: 6px;
}

#vitara-customization-editor .color-picker-field + .table-field {
    margin-top: 0.6rem;
}

#vitara-customization-editor .popup-container {
    background-color: rgba(0,0,0,0.2);
    height: 100dvh;
    width: 100dvw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

#vitara-customization-editor .popup-container {
    display: none;
}

#vitara-customization-editor .info .action-buttons,
#vitara-customization-editor .confirm .action-buttons {
    justify-content: flex-end;
    column-gap: 1rem;
    margin-top: 2rem;
}

#vitara-customization-editor .info,
#vitara-customization-editor .confirm {
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    padding: 2.4rem;
}

#vitara-customization-editor .info .message,
#vitara-customization-editor .confirm .message {
    font-size: 1.6rem;
}

@media screen and (max-width: 1200px) {
    body.vitara-customization-ui-body {
        padding: 0 4rem;
    }

    #vitara-customization-editor .upload-font-section label,
    #vitara-customization-editor .create-palette-section label,
    #vitara-customization-editor .upload-font-section .hidden-block,
    #vitara-customization-editor .create-palette-section .hidden-block {
        flex-basis: 9rem;
    }
}

@media screen and (max-width: 900px) {
    #vitara-customization-editor .saved-palette {
        flex-wrap: wrap;
        gap: 1rem;
    }

    #vitara-customization-editor .palette-label {
        flex-basis: 45%;
    }

    #vitara-customization-editor .palette-colors {
        flex-basis: 100%;
        order: 1;
    }

    #vitara-customization-editor .section-header .action-labels {
        margin-right: 12rem;
    }

    #vitara-customization-editor .action-buttons .custom-check,
    #vitara-customization-editor .action-buttons .custom-radio {
        margin-right: 1.2rem;
    }
}

@media screen and (max-width: 600px) {
    html.vitara-customization-ui-root {
        font-size: 55%;
    }

    body.vitara-customization-ui-body {
        padding: 0 2rem;
    }

    #vitara-customization-editor .tab-container {
        margin: 4rem auto;
    }

    #vitara-customization-editor .chart-settings,
    #vitara-customization-editor .chart-styles,
    #vitara-customization-editor .chart-translations {
        padding: 0 3rem 3rem;
    }

    #vitara-customization-editor .form-header {
        padding: 2rem 3rem;
    }

    #vitara-customization-editor .custom-check input:checked ~ .custom-check-icon::before {
        transform: scale(1.6);
    }

    #vitara-customization-editor .chart-settings,
    #vitara-customization-editor .chart-styles,
    #vitara-customization-editor .chart-translations {
        padding: 0 2rem 2rem;
    }

    #vitara-customization-editor .form-header {
        padding: 2rem;
    }

    #vitara-customization-editor .palette-label {
        flex-basis: 32%;
    }
}

@media screen and (max-width: 350px) {
    html.vitara-customization-ui-root {
        font-size: 50%;
    }

    #vitara-customization-editor .palette-label {
        flex-basis: 32%;
    }
}

@media screen and (min-width: 1600px) {
    html.vitara-customization-ui-root {
        font-size: 70%;
    }
}
