/* Form */
.webform-submission-ev-checker-tool-form {
    position: relative;
}


.webform-submission-ev-checker-tool-form #edit-processed-text-01 img.align-right {
    display: block;
    float: none;;
}

.webform-submission-ev-checker-tool-form fieldset {
    border: 0;
}

@media screen and (min-width: 60em) {
    .webform-submission-ev-checker-tool-form #edit-processed-text-01 img.align-right {
        float: right;
        margin: 0 0 1em 1em;
    }
}

.webform-submission-ev-checker-tool-form fieldset.radios--wrapper legend span,
.webform-submission-ev-checker-tool-form .form-type-number > label,
.webform-submission-ev-checker-tool-form .webform-entity-radios--wrapper legend > span.form-required, 
.webform-submission-ev-checker-tool-form .radios--wrapper legend > span.form-required {
    font-size: 1.25rem;
}

.webform-submission-ev-checker-tool-form .form-type-number input, 
.webform-submission-ev-checker-tool-form .form-type-textfield input, 
.webform-submission-ev-checker-tool-form .form-type-date input, 
.webform-submission-ev-checker-tool-form .form-type-tel input, 
.webform-submission-ev-checker-tool-form .form-type-email input {
    max-width: 80%;
}

@media screen and (min-width: 60em) {
    #edit-processed-text-01 img.align-right {
        float: right;
    }

    .webform-submission-ev-checker-tool-form fieldset.radios--wrapper legend span,
    .webform-submission-ev-checker-tool-form .form-type-number > label,
    .webform-submission-ev-checker-tool-form .webform-entity-radios--wrapper legend > span.form-required, 
    .webform-submission-ev-checker-tool-form .radios--wrapper legend > span.form-required {
        font-size: 1.5rem;
    }
}

.webform-submission-ev-checker-tool-form #edit-current-petrol,
.webform-submission-ev-checker-tool-form #edit-current-diesel,
.webform-submission-ev-checker-tool-form #edit-current-tariff-rate{
    display: none;
}

.webform-submission-ev-checker-tool-form #edit-actions-reset {
    background-color: transparent;
    color: var(--primary);
    margin: 0;
}

.webform-submission-ev-checker-tool-form #edit-actions-reset:hover,
.webform-submission-ev-checker-tool-form #edit-actions-reset:focus-visible {
    background-color: var(--primaryDark);
    color: white;
}

.webform-submission-ev-checker-tool-form .form-type-range {
    display: block;
}

.webform-submission-ev-checker-tool-form .form-type-range label {
    width: 100%;
}

.webform-submission-ev-checker-tool-form .form-type-range input.form-range {
    margin: 0;
}

.webform-submission-ev-checker-tool-form .form-type-range output {
    display: inline-block;
    position: relative;
    top: 0 !important;
    margin-top: 0.5rem;
}

@media screen and (min-width: 60em) {
    .webform-submission-ev-checker-tool-form .form-type-range {
        display: flex;
    }

    .webform-submission-ev-checker-tool-form .form-type-range label {
        width: 25%;
    }

    .webform-submission-ev-checker-tool-form .form-type-range input.form-range {
        margin-right: 1rem;
    }
}

.webform-submission-ev-checker-tool-form .form-type-range label.form-required:after {
    display: block;
}

.webform-submission-ev-checker-tool-form .form-type-range output:after {
    content: " %"
}

.webform-submission-ev-checker-tool-form .webform-actions {
    display: flex;
}

.webform-submission-ev-checker-tool-form .webform-actions input#edit-actions-submit,
.webform-submission-ev-checker-tool-form .webform-actions input#edit-actions-wizard-next {
    order: -1;
    width: 100%;
}

@media screen and (min-width: 60em) {
    .webform-submission-ev-checker-tool-form .webform-actions input#edit-actions-submit,
    .webform-submission-ev-checker-tool-form .webform-actions input#edit-actions-wizard-next {
        order: 2;
        min-width: 35%;
        width: auto;
    }
}

.webform-submission-ev-checker-tool-form .form-item .description {
    font-size: 1em;
}

.webform-submission-ev-checker-tool-form .radios--wrapper .form-type-radio:has(input:checked) {
    background-color: white;
}

.webform-submission-ev-checker-tool-form .help-section {
    background: white;
    background-color: rgba(255, 255, 255, 0.7);
    border: 0;
    border-radius: 2rem;
    margin-top: 1rem;
    padding: 1.25rem 2rem;
    text-transform: inherit;
    border: 2px solid;
}

.webform-submission-ev-checker-tool-form .webform-element-more--content details {
    background: white;
    background-color: rgba(255, 255, 255, 0.7);
    border: 0;
    border-radius: 1rem;
    margin-bottom: 1rem;
    padding: 0.5em 1em;
    text-transform: inherit;
    border: 1px solid;
}

.webform-submission-ev-checker-tool-form .webform-element-more--content details[open] {
    padding-bottom: 2em;
}

.webform-submission-ev-checker-tool-form .webform-element-more--content details[open] summary {
    margin-bottom: 0.5em;
    font-family: var(--fontBold);
    color: var(--primary);
}

.webform-submission-ev-checker-tool-form .resp-table {
    overflow-x: scroll;
    max-width: 100%;
}

.webform-submission-ev-checker-tool-form .form-item-your-submission-details h3 {
    margin-top: 1em;
}

.webform-submission-ev-checker-tool-form .form-item-your-submission-details dl {
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.webform-submission-ev-checker-tool-form .form-item-your-submission-details dt {
    font-family: var(--fontBold);
    width: 100%;
}

.webform-submission-ev-checker-tool-form .form-item-your-submission-details dd {
    font-family: var(--fontBold);
    margin: 0.5em 0 1em;
    display: inline-block;
    background: var(--backgroundMagenta);
    padding: 0.5em 1em;
    border-radius: 2em;
    min-width: 6em;
    text-align: center;
}

.webform-submission-ev-checker-tool-form .node--type-consumer-tariff .field--name-node-title {
    float: left;
}

.webform-submission-ev-checker-tool-form .node--type-consumer-tariff .field--name-node-title + img {
    float: right;
    max-width: 110px;
    height: auto;
}

.webform-submission-ev-checker-tool-form .node--type-consumer-tariff .field--name-node-title h2 {
    font-size: 1.5rem
}

.webform-submission-ev-checker-tool-form .node--type-consumer-tariff > h3 {
    clear: both;
}

.webform-submission-ev-checker-tool-form .node--type-consumer-tariff table {
    width: 100%;
}

.webform-submission-ev-checker-tool-form .node--type-consumer-tariff table th {
    width: 50%;
}

@media screen and (min-width: 60em) {
    .webform-submission-ev-checker-tool-form .form-item-your-submission-details dl {
        display: block;
    }

    .webform-submission-ev-checker-tool-form .form-item-your-submission-details dt {
        clear: left;
        float: left;
        width: 31%;
        line-height: 2.5em;
    }

    .webform-submission-ev-checker-tool-form .form-item-your-submission-details dd {
        float: left;
        margin-top: 0;
    }
}

/* Response */
.view-ev-tool-response .comparison {
    text-align: center;
}

.view-ev-tool-response h1 span {
    text-transform: lowercase;
}

.view-ev-tool-response .comparison .fuel {
    border: 2px solid var(--primary);
    padding: 2em;
    border-radius: 1em;
    padding: 1em 2em 2em;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    
    width: 100%;
}

.comparison .fuel > p {
    font-family: var(--fontBold);
    color: var(--primaryDark);
}

.comparison .fuel h2 span,
.comparison .fuel h3 span {
    display: block;
    font-size: 1rem;
    font-family: var(--fontNormal);
}

.comparison .fuel .type {
    background: var(--backgroundMagenta);
    padding: 6px 12px;
    border-radius: 2em;
    margin: 1em 0 0;
}

.view-ev-tool-response .help-section {
    background: white;
    background-color: rgba(255, 255, 255, 0.7);
    border: 0;
    border-radius: 2rem;
    margin-top: 1rem;
    padding: 1.25rem 2rem;
    text-transform: inherit;
    border: 2px solid;
}

.view-ev-tool-response .economy-7 {
    text-align: left;
}

.view-ev-tool-response .economy-7 .fuel {
    border: 2px solid var(--primary);
    padding: 2em;
    border-radius: 1em;
    padding: 1em 2em;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 60%;
    width: 100%;
    align-items: center;
}

.view-ev-tool-response .economy-7 .fuel h2 {
    margin: 0;
}

.economy-7 .fuel > p {
    font-family: var(--fontBold);
    color: var(--primaryDark);
}

.economy-7 .fuel h2 span,
.economy-7 .fuel h3 span {
    display: block;
    font-size: 1rem;
    font-family: var(--fontNormal);
}

.economy-7 .fuel .type {
    background: var(--backgroundMagenta);
    padding: 6px 12px;
    border-radius: 2em;
    margin: 1em 0 0;
}

.view-ev-tool-response .help-section details {
    background: var(--backgroundMagenta);
    border: 0;
    border-radius: 1rem;
    margin-bottom: 1rem;
    padding: 0.5em 1em;
    text-transform: inherit;
    border: 1px solid;
}

.view-ev-tool-response .help-section details[open] {
    padding-bottom: 2em;
    background-color: white;
}

.view-ev-tool-response .help-section details[open] summary {
    margin-bottom: 0.5em;
    font-family: var(--fontBold);
    color: var(--primary);
}

.view-ev-tool-response .help-section.calculation {
    border-color: #cecece;
    background-color: #f1f1f1;
}

.view-ev-tool-response .help-section.calculation h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.view-ev-tool-response .help-section.calculation details {
    background: transparent;
    margin: 0 0 0.5rem;
    border-radius: 1em;
    padding: 1.25rem 1.33rem;
}

.view-ev-tool-response .help-section.calculation details p:last-child {
    margin: 0;
}

/* Switching Section */
.view-ev-tool-response .switching {
    background-color: white;
    padding: 2rem;
    margin: 4rem 0;
    border-radius: 2rem;
}

.view-ev-tool-response .switching .cta-image {
    width: auto;
    max-width: 25rem;
    height: auto;
    position: relative;
    z-index: 1
}

.view-ev-tool-response .switching .cta-image img {
    max-width: 100%;
    height: auto;
}

.view-ev-tool-response .switching .text {
    position: relative;
    z-index: 1
}

.view-ev-tool-response .switching .text h2 {
    line-height: 1.2;
    font-size: 1.5rem;
}

.view-ev-tool-response .switching .cta-link a {
    background-color: var(--highlightTeal);
    padding: 1rem 2rem;
    display: inline-block;
    color: var(--white);
    font-family: var(--fontBold);
    border-radius: 2rem;
    border: 0;
    line-height: 1.2;
    text-decoration: none;
}

.view-ev-tool-response .switching .cta-link a:after {
    font-family: 'icomoon';
    content: "\e90d";
    display: inherit;
    top: 0.125rem;
    position: relative;
    font-size: 1rem;
    margin-left: 0.5rem;
    opacity: 0.5;
}

.view-ev-tool-response .switching .cta-link a:hover,
.view-ev-tool-response .switching .cta-link a:focus-visible {
    background-color: var(--primaryDark);
}

@media screen and (min-width: 60em) {
    .view-ev-tool-response .switching {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .view-ev-tool-response .switching .cta-image {
        order: 1;
        width: 35rem;
        max-width: 50%;
        height: auto;
        text-align: right;
    }
    
    .view-ev-tool-response .switching .text {
        max-width: 50%;
        padding-right: 0%;
        font-size: 1.125rem;
    }
}

a.btn.btn-reset {
    display: inline-block;
    margin: 1em 0;
    border: 2px solid var(--backgroundMagenta);
    padding: 1em 2em;
    border-radius: 2em;
    text-decoration: none;
    font-family: var(--fontBold);
    padding-left: 1.5em;
}

a.btn.btn-reset:before {
    font-family: 'icomoon';
    content: "\e914";
    margin-right: 0.5em;
}

a.btn.btn-reset:hover,
a.btn.btn-reset:focus-visible {
    background: var(--backgroundMagenta);
    color: var(--primaryDark);
    border-color: var(--primary) !important;
}

@media screen and (min-width: 60em) {
    .view-ev-tool-response {
        padding: 3em 2em 2em 11em;
    }

    .view-ev-tool-response .comparison {
        display: flex;
        align-items: center;
        gap: 2em;
        flex-wrap: wrap;
    }

    .view-ev-tool-response .comparison .fuel {
        max-width: 45%;
    }
}