
:root {
    --main-color: #004652;
    --interactables-color: #0A8486;
    --passive-color: #62757C;
    --card-background-color: #F6FBFB;
    --icon-background-color: #F5F5F5;
    --label-light-background-color: #CD176C;
    --error: #CE4940;
    --table-alternating-color: #FAFBFB;
    --decorations-color: #4DF3C1;
    --label-icons-color: #033540;
}

* {
    box-sizing: border-box;
}

html {
    position: relative;
}


body {
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.15px;
    color: var(--passive-color);
    background: var(--icon-background-color);
}

a {
    color: var(--interactables-color);
}

h1 {
    color: var(--main-color);
    font-family: Lato, sans-serif;
    font-size: 30px;
    text-align: left;
    line-height: 32px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 20px;
    margin-top: 20px;
}

h2, h3, h4, h5 {
    color: var(--main-color);
    font-family: Lato, sans-serif;
    line-height: 32px;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
}

h2 .fa {
    margin-right: 4px;
}

img {
    max-width: 100%;
}

iframe {
    border: 0;
    margin: 0;
    padding: 0;
}

:target:before {
    content:"";
    display:block;
    height: 50px;
    margin:-50px 0 0;
}

input {
    accent-color: #008B92;
}

.navbar-absolute-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

@media screen and (min-width: 992px) {
    .header-wrap {
        padding-top: 70px;
    }
}

.topbar {
    min-height: 40px;
    margin: 0;
    border: 0;
    background: var(--interactables-color);
    -webkit-transition: margin-top 0.5s;
    -moz-transition: margin-top 0.5s;
    transition: margin-top 0.5s;
    font-family: Lato, sans-serif;
    font-size: 14px;
}

@media screen and (max-width: 991px) {
    .topbar {
        background: #007D8F;
    }
}

.topbar > li > a {
    height: 40px;
    line-height: 40px;
    padding: 0px 20px;
    text-transform: uppercase;
    color: white;
    font-weight: bold;
}
.topbar-left, .topbar-right{
    margin: 0;
    padding: 0;
}
.topbar-right{
    text-align: right;
    line-height: 60px;
}
.topbar-left li, .topbar-right li {
    display: inline-block;
}
.topbar-left > li > a, .topbar-right > li > a {
    height: 40px;
    line-height: 40px;
    padding: 0px 20px;
    text-transform: uppercase;
    color: white;
    font-weight: bold;
}
.topbar > li>  a:focus,
.topbar > li > a:hover {
    color: white;
    background-color: #353638;
}

.topbar li a.separator {
    border-left: 1px solid rgba(207,207,207,0.38);
}

.topbar .welcome {
    background-color: #353638;
    font-family: Lato, sans-serif;
    border: 0;
    border-radius: 0px;
    height: 40px;
    line-height: 40px;
    padding: 0px 20px;
    text-transform: uppercase;
    color: white;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
}

.topbar .welcome:hover,
.topbar .exit:hover {
    color:white;
}

.topbar .exit {
    background: #46CE95;
    font-family: Lato, sans-serif;
    border: 0;
    border-radius: 0;
}

.topbar .topbar-phone {
    color: white;
    font-weight: 700;
    margin-left: 12px;
    position: relative;
    top: 3px;
}

#main-navbar{
    padding: 0;
    border-color: #fff;
}

.navbar-inverse {
    background-color: #8CBE2B;
    border:none;
    border-radius: 0;
    color:#064325;
}

.navbar-inverse .navbar-brand {
    color:#ffffff;
}

.navbar-inverse .navbar-toggle {
    border-color: #ffffff;
    background-color: #ffffff;
}

.navbar-inverse .navbar-toggle .icon-bar {
    background-color: #8CBE2B;
}

.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
    border-color: #ffffff;
    background-color: #8CBE2B;
}

.navbar-inverse .navbar-toggle:hover .icon-bar,
.navbar-inverse .navbar-toggle:focus .icon-bar {
    background-color: #ffffff;
}

ul.nav.navbar-nav {
    display: flex;
    width: 100%;
}
ul.nav.navbar-nav li.dropdown {
    flex:1;
}

ul.nav.navbar-nav li.dropdown a {
    background-color: #8CBE2B;
    line-height: 70px;
    font-size:15px;
    border: 0;
    padding: 0;
    flex: 1;
    border-right: 2px white solid;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    color: #064325;
}

ul.nav.navbar-nav li.dropdown a:hover,
ul.nav.navbar-nav li.dropdown.open a:focus {
    color: #ffffff;
    background-color: #8CBE2B;
}

ul.nav.navbar-nav li.dropdown:last-child a {
    border:none;
}

ul.nav.navbar-nav li.dropdown .dropdown-menu {
    background-color: #8CBE2B;
    border-radius:0;
    width: 100%;
    border: none;
    padding:15px;
    border-top: 2px solid #fff;
    z-index: 99999;
}

ul.nav.navbar-nav li.dropdown .dropdown-menu a {
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    display: block;
    line-height: 23px;
    color: white;
    padding: 8px 15px;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 16px;
    white-space: normal;
}

ul.nav.navbar-nav li.dropdown .dropdown-menu a:hover,
ul.nav.navbar-nav li.dropdown .dropdown-menu a:focus {
    background-color: #ffffff;
    color:#8CBE2B;
    transition: all 0.2s linear;
}

.main-content {
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.15px;
    padding-top:30px;
    padding-bottom: 30px;
    color: var(--passive-color);
    display: flex;
}

@media (max-width: 768px) {
    .main-content.nexi {
        margin-left: 0px;
        margin-right: 0px;
    }
    .main-content.nexi .nexi-frame {
        padding-left: 0px;
        padding-right: 0px;
    }

}


.main-content .confirm {
    font-size:18px;
}
.aside-wrap {
    float: right;
    margin-bottom: 25px;
}

@media (max-width: 991px)  {
    .aside-wrap{
        display: none;
    }
}

/*left in case is needed to go back to old style
.aside {
    background-color: #edfaf3;
    color: #004652;
    font-family: Lato, sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 17px;
    padding: 0;
    margin: 0;
}

.aside h1 {
    background:linear-gradient(93.8deg,#007D8F 0%,#009787 93.78%);
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 46px;
    color:white;
    margin: 0;
    padding: 0 20px;
    text-transform: uppercase;
}*/

.aside {
    background-color: #ffffff;
    color: #006E75;
    border: 1px solid #E9ECEF;
    border-radius: 4px;
    font-size: 16px;
}

.aside h1 {
    font-size: 16px;
    font-weight: bold;
    line-height: 26px;
    margin: 0;
    padding: 10px 20px;
    text-transform: uppercase;
    border-bottom: 1px solid #E9ECEF;
    text-align: left;
    color: var(--passive-color);
}

.aside-label {
    font-weight: 500;
    white-space: nowrap;
    color: var(--passive-color);
}

.aside-name {
    font-weight: 500;
    color: var(--main-color);
}

.wizard-progress {
    list-style: none;
    margin: 0 0 40px 0;
    padding: 0;
    display: table;
    table-layout: fixed;
    width: 100%;
    color: var(--passive-color);
    font-family: Lato, sans-serif;
    text-transform: uppercase;
}

.wizard-progress > li {
    position: relative;
    display: table-cell;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
}

.wizard-progress > li.done {
    cursor: pointer;
    opacity: 0.5;
}

.wizard-progress > li:before {
    font-size: 16px;
    content: attr(data-step);
    display: block;
    background: white;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    margin: 0 auto 4px;
    border-radius: 100%;
    border: 1px solid var(--passive-color);
    position: relative;
    z-index: 1000;
}

.wizard-progress > li:after {
    content: '';
    position: absolute;
    display: block;
    background: var(--passive-color);
    width: calc(100% - 48px);
    height: 1px;
    top: 23px;
    left: 50%;
    margin-left: 24px;
    z-index: -1;
}
.wizard-progress > li:last-child:after {
    display: none;
}
.wizard-progress li.done {
    color: #46CE95;
}

.wizard-progress li.done:before {
    font-size: 16px;
    border: none;
    font-family: FontAwesome;
    content :'\f00c'
}

.wizard-progress li.done:before,
.wizard-progress li.done:after {
    color: #FFF;
    background: #46CE95;
}

.wizard-progress li.active {
    color: var(--main-color);
}

.wizard-progress li.active:before {
    color: #FFF;
    background: #46CE95;
    border: none;
}

.form-group.form-group-item {
    background-color:#ffffff;
    padding: 10px;
    margin-bottom: 2px;
}


.wizard-mobile {
    padding-bottom: 20px;
    margin-bottom: 30px;
    /*border-bottom: 1px outset #62757C;*/
    box-shadow: 0 2px 2px -2px var(--passive-color);
}

.wizard-mobile .step-mobile {
    text-align: center;
    background: #46CE95;
    color: #ffffff;
    border-radius: 100%;
    padding: 15px 0 3px;
    width: 50px;
    height: 50px;
    font-size: 24px;
    font-weight: 500;
}

.wizard-mobile .step-label {
    text-transform: uppercase;
    color: var(--main-color);
    font-weight: 700;
    padding-left: 15px;
}

.form-group label {
    color: var(--main-color);
    font-family: Lato, sans-serif;
    font-size: 14px;
    line-height: 17px;
    text-align: left!important;
    padding-bottom: 5px;
}

.form-control {
    height: 40px;
    text-align: left;
    color: var(--main-color);
}

.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control{
    border: 1px solid var(--passive-color);
    box-shadow: none;
}


.form-control[readonly].boolean.checked {
    background-color: #46CE95;
    color: white;
    border:none;
}

.form-control[readonly].boolean {
    border-radius: 4px;
    text-align: center;
    font-family: Lato, sans-serif;
    border: 1px solid var(--passive-color);
    background: #E9ECEF;
    color: var(--passive-color);
}

.form-control:disabled, .form-control[readonly] {
    background-color: var(--icon-background-color);
}

/* Table Policies*/
table.policies {
    font-size: 14px;
    border-collapse:separate;
    width: 100%;
    border-spacing: 0 1em;
    font-family: Lato, sans-serif;

}

table.rg-table tr {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    text-align: left;
}

table.policies tbody tr {
    line-height: 70px;
    background-color: #edfaf3;
    color: var(--main-color);
}

table.policies th {
    text-transform: uppercase;
}

table.policies td,
table.policies th {
    padding: 0 10px 0 10px;
}

/*table.policies tbody tr:nth-child(even) {*/
/*    background-color: #EFEFEF;*/
/*    color: #666666;*/
/*}*/


table.policiy-details {
    font-size: 14px;
    border-collapse:separate;
    width: 100%;
    border-spacing: 0 2px;
    font-family: Lato, sans-serif;
    text-transform: uppercase;
    font-weight: 400;
}


table.policiy-details tr {
    background-color: #EFEFEF;
    color: var(--main-color);
    font-family: Lato, sans-serif;
    font-size: 14px;
}

table.policiy-details td {
    line-height: 46px !important;
    min-height: 60px !important;
}
table.policiy-details td:last-child {
    text-align: right;
}

.header-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    text-decoration: none;
    outline: none;
}

.header-nav:focus, .header-nav:hover {
    color: white;
}

.header-nav > ul {
    border-right: 2px white solid;
}

.no-padding {
    padding: 0;
}

.btn.back {
    border: 1px solid #008B92;
    background-color: white;
    color: #008B92;
}

@media (max-width: 767px) {
    .btn.back {

        margin-bottom: 5px;
    }
    .btn.forward {
        margin-top: 5px;
    }
}

.btn.back:after {
    content : '\f053';
    font-family: FontAwesome;
    position: absolute;
    left: 18px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    font-size: 14px;
}
.btn.forward:after {
    content: none;
    font-family: FontAwesome;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: white;
}

.conferma-rinnovo {
    text-align: center;
}
.conferma-rinnovo img {
    display: block;
    margin: 25px auto 25px;
    max-width: 150px;
}

.feedback-container {
    padding: 25px 25px 15px;
    background-color: var(--card-background-color);
    margin-bottom: 30px;
    font-size: 18px;
}

.feedback img {
    position: absolute;
    max-width: 70px;
    top:0;
    bottom:0;
    left: 0;
    right: 0;
    margin: auto auto;
}

.feedback a {
    position: relative;
    display: block;
    border-radius: 3px;
    width: 120px;
    height: 120px;
    margin: 20px auto 20px auto;
}

.feedback a.positive {
    border: 2px solid #46CE95;
    background-color: #46ce951f;
}
.feedback a.neutral {
    border: 2px solid #edde0a;
    background-color: #fffee1;
}
.feedback a.negative {
    border: 2px solid #ED230A;
    background-color: #ffe2e1;
}

.feedback a.disabled {
    -webkit-filter: grayscale(80%);
    -moz-filter: grayscale(80%);
    -o-filter: grayscale(80%);
    -ms-filter: grayscale(80%);
    filter: grayscale(80%);
}

.panel {
    background: none;
    box-shadow:none;
    border: none;
}
.panel-default>.panel-heading {
    background: none;
    border-bottom: 1px solid #efefef;
}
.panel-default>.panel-heading+.panel-collapse>.panel-body {
    border: none;
    text-align: justify;
    font-size:18px;
    line-height: 28px;
}

a.panel-title h4 {
    margin: 0;
    color: #8cbe2b;
    position: relative;
    font-weight: 400;
}
a.panel-title:hover, a.panel-title:focus {
    text-decoration: none;
}
a.panel-title[aria-expanded="false"] h4:after {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f078";
    color: #8cbe2b;
    font-size: inherit;
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}
a.panel-title[aria-expanded="true"] h4:after {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f078";
    color: #8cbe2b;
    font-size: inherit;
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    transition: transform 0.3s;
}

.btn.btn-radio {
    border-radius: 4px!important;
    border: 1px solid #46CE95;
    width: 135px;
    text-transform: uppercase;
    color: #46CE95;
    font-family: Lato, sans-serif;
    font-weight: 700;
}

.btn.btn-radio.no {
    margin-right: 5px;
}

.btn.btn-radio.yes {
    margin-left: 5px;
}

.btn.btn-radio.active {
    background-color: #46CE95;
    color: white;
}

.breadcrumb {
    background-color: transparent;
    color: #064325;
    font-family: Lato, sans-serif;
    font-size: 16px;
    line-height: 19px;
    text-transform: uppercase;
}

.breadcrumb > li + li:before {
    padding: 0 8px;
    color: #cccccc;
    content: ">";
}

article {
    text-align: justify;
}

article section {
    margin-left: 30px;
}

@media (max-width: 767px) {
    .topbar .welcome {
        font-size: 12px;
        font-weight: 400;
    }
    .aside-wrap{
        float: none;
    }
    .form-group.form-group-item {
        padding: 10px 0;
    }
}
/* media queries table policies*/
@media screen and (max-width: 768px) {
    .rg-container {
        max-width: 767px;
        margin: 0 auto;
    }
    table.rg-table {
        width: 100%;
    }
    table.rg-table tr.hide-mobile, table.rg-table th.hide-mobile, table.rg-table td.hide-mobile {
        display: none;
    }
    table.rg-table thead {
        display: none;
    }
    table.rg-table tbody {
        width: 100%;
    }
    table.rg-table tr, table.rg-table th, table.rg-table td {
        display: block;
    }
    table.rg-table tr {
        border-bottom: none;
        margin: 0 0 1em 0;
        padding: 0.5em;
    }
    table.rg-table td {
        border-bottom: 1px dotted #8CBE2B;
        text-align: right;
    }
    table.rg-table td[data-title]:before {
        content: attr(data-title);
        font-weight: bold;
        display: inline-block;
        content: attr(data-title);
        float: left;
        margin-right: 0.5em;
    }
    table.rg-table td:last-child {
        padding-right: 0;
        border-bottom: none;
    }
    table.rg-table td:empty {
        display: none;
    }
    table.rg-table .highlight td {
        background-color: inherit;
        font-weight: normal;
    }
}

@media screen and (max-width: 320px) {
    .btn.btn-radio{
        width: 130px;
    }

    .btn.btn-radio.no {
        margin-right: 10px;
    }

    .btn.btn-radio.yes {
        margin-left: 10px;
    }
}

section.address {
    white-space: pre-line;
    margin-left: 30px;
    margin-bottom: 10px
}

html, body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
}


body > .main-content {
    flex: 1;
}

.spinner-border {
    color: #46CE95;
    display: inline-block;
    width: 4rem;
    height: 4rem;
    vertical-align: text-bottom;
    border: .1em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: spinner-border .75s linear infinite;
    animation: spinner-border .75s linear infinite;
}
@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.login-page {
    width: 360px;
    padding: 8% 0 0;
    margin: auto;
}

.login-page h2 {
    margin: 0 0 10px 0;
}

.login-page .form {
    border-radius: 10px;
    position: relative;
    z-index: 1;
    background: #FFFFFF;
    max-width: 360px;
    margin: 0 auto 100px;
    padding: 45px;
    text-align: center;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}
.login-page .form input,
.login-page .form select {
    outline: 0;
    background: white;
    width: 100%;
    border: 1px solid var(--passive-color);
    border-radius: 7px;
    margin: 0 0 15px;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
}
label {
    width: 100%;
    margin: 0;
    padding-bottom: 5px;
    font-size: 14px;
    text-align: left;
    color: var(--main-color);
}
.login-page .form input[type='submit'] {
    text-transform: uppercase;
    outline: 0;
    background: #46CE95;
    width: 100%;
    border: 0;
    border-radius: 40px;
    padding: 15px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    -webkit-transition: all 0.3 ease;
    transition: all 0.3 ease;
    cursor: pointer;
}
.login-page .form input[type='submit']:hover,.form input[type='submit']:active,.form input[type='submit']:focus {
    background: #46CE95;
}

.topbar .nowbanking-exit-button {
    font-family: 'Lato', sans-serif;
    height: 36px;
    width: 183px;
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
    border-radius: 40px;
    border: 1px solid #008B92;
    background: white;
    margin-top: 10px;
    padding: 0 20px;
    display: inline-block;
    vertical-align: middle;
}

.topbar .nowbanking-exit-button a {
    color: #008B92;
}

.topbar .nowbanking-exit-button a img {
    margin-top: -3px;
    margin-right: 5px;
}

.topbar .nowbanking-exit-button a:hover {
    color: #46CE95;
}

/*buttons-style*/
.btn:focus {
    box-shadow: none;
}

.btn-big-new {
    position: relative;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    width: 100%;
    height: 40px;
    border-radius: 40px;

    background-image: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transition: background-size 0.4s ease-in-out;
}

.btn-primary {
    --bs-btn-bg: var(--decorations-color);
    --bs-btn-color: var(--label-icons-color);
    --bs-btn-border-width: none;

    --bs-btn-hover-bg: #0FE6A5;
    --bs-btn-hover-color: var(--label-icons-color);

    --bs-btn-active-bg: var(--decorations-color);
    --bs-btn-active-color: var(--label-icons-color);

    --bs-btn-disabled-bg: #DFDFDF;
    --bs-btn-disabled-color: white;

    &:not(.disabled):focus{
        background-color: var(--decorations-color);
        color: var(--label-icons-color);
        border: 2px solid #0B57D0;
        border-radius: 20px;
    }

    &:active {
        background-size: 200% 200%;
        background-image: radial-gradient(circle, #1F7C7026 50%, transparent 51%);
    }

    &:focus-visible {
        outline: 2px solid #0B57D0 !important;
        outline-offset: 5px;

        border-radius: 20px;
    }
}

.btn-secondary {
    --bs-btn-bg: white;
    --bs-btn-color: var(--label-icons-color);
    --bs-btn-border-width: 2px;
    --bs-btn-border-color: var(--decorations-color);

    --bs-btn-hover-bg: #E0F8F2;
    --bs-btn-hover-color: var(--label-icons-color);
    --bs-btn-hover-border-width: 2px;
    --bs-btn-hover-border-color: var(--decorations-color);

    --bs-btn-active-bg: #E0F8F2;
    --bs-btn-active-color: var(--label-icons-color);
    --bs-btn-active-border-width: 2px;
    --bs-btn-active-border-color: var(--decorations-color);

    --bs-btn-disabled-bg: white;
    --bs-btn-disabled-color: var(--passive-color);
    --bs-btn-disabled-border-width: 2px;
    --bs-btn-disabled-border-color: var(--passive-color);

    &:not(.disabled):focus {
        background-color: #E0F8F2;
        color: var(--label-icons-color);
    }

    &:active {
        background-size: 200% 200%;
        background-image: radial-gradient(circle, #71F5CD33 50%, transparent 51%);
    }

    &:focus-visible {
        outline: 2px solid #0B57D0 !important;
        outline-offset: 5px;

        border-radius: 20px;
    }
}
/*end buttons-style*/

.aside-content {
    padding-top: 20px;
    padding-bottom: 20px;
    word-break: break-word;
    border-top: 0;
}

.aside-content .row {
    margin-bottom: 10px;
    padding-right: 15px;
    padding-left: 15px;
}

.aside-content a {
    color: #008B92;
}

.layout-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.fa.fa-phone {
    color: var(--main-color-but-lighter);
    margin-left: auto;
    margin-right: auto;
}

.phone-nr {
    color: white;
    font-size: 20px;
    font-weight: 700;
}

/*Stepper*/
.stepper-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--passive-color);
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: auto;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
}

.stepper-item:not(:first-child) {
    flex-shrink: 1;
    width: 100%;

    &:before {
        content: '';
        flex-grow: 1;
        height: 0;
        border-bottom: 3px dotted #C0C0C0;
        margin: 0 1rem;
    }
}

@media (max-width: 767px) {
    .stepper-item {
        flex-shrink: 1;
    }
}

.stepper-item .step-counter {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--passive-color);
    margin-bottom: 6px;
    font-size: 24px;
}

.stepper-item.completed .step-counter, .stepper-item.active .step-counter {
    background-color: #0A8184;
    color: #ffffff;
    border-color: #0A8184;
}

.step-first:before {
    content: '1';
}
.step-second:before {
    content: '2';
}
.step-third:before {
    content: '3';
}
.step-fourth:before {
    content: '4';
}

.stepper-item.completed .step-counter {
    span {
        visibility: hidden;
        &:before {
            content: url('/images/tick-stepper.svg');
            visibility: visible;
        }
    }
}

.step-name {
    margin-left: 15px;
    color: var(--main-color);
}

.step-status {
    font-size: 10px;
    color: var(--cta-color);
}

.stepper-item.completed .step-name .step-status {
    color: var(--passive-color);
}

.stepper-item.completed .step-name .step-status:before {
    content: 'COMPLETATO';
}

.stepper-item.active .step-name .step-status:before {
    content: 'IN CORSO';
}

@media (max-width: 575px) {
    .stepper-item {
        flex-direction: row;
        text-align: left;
        justify-content: left;
        font-size: 16px;
    }

    .stepper-item .step-counter {
        margin-bottom: 0;
    }
}

.stepper-item.completed .step-name, .stepper-item.active .step-name {
    color: var(--main-color);
}

.stepper-item:first-child::before {
    content: none;
}

.stepper-item:last-child::after {
    content: none;
}


@media (max-width: 575px) {
    .stepper-item::before, .stepper-item::after {
        content: none;
    }
}
/*end stepper-styles */

.content-section {
    background: white;
    border: 1px solid #E9ECEF;
    border-radius: 4px;
    padding-bottom: 30px;
    font-size: 16px;

    &:has(ca-sticky-footer){
        padding-bottom: 0;
    }

    & .product-title {
        color: var(--main-color);
        border-bottom: 1px solid #E9ECEF;
        font-size: 18px;
        line-height: 26px;
        padding: 10px 20px;
        margin-bottom: 1rem;
    }
}

/* footer-styles */
body > footer {
    padding: 10px 0;
    color: #96ADAB;
    font-size: 12px;

    background-color: white;
    text-align: center;
    align-items: center;
    margin-top: 0;

    & .copyright {
        margin-top: 8px;
        color: var(--passive-color);
    }

    & .info-privacy {
        color: var(--interactables-color);
        font-weight: 400;
        text-decoration: underline;
        cursor: pointer;
    }

    & .documenti {
        display: flex;
        & .setinfo, & .schedaprodotto {
            display: flex;
            flex-grow: 1;
            justify-content: center;
            align-items: center;
            text-align: left;
            padding: 16px;
            color: var(--main-color-but-lighter);
            text-decoration: none;
            text-transform: uppercase;
            font-size: 11px;
            font-weight: 700;
        }

    }

    & img {
        height: 25px;
    }
}


@media (min-width: 990px) {
    body > footer {
        background-color: var(--icon-background-color);
        text-align: right;
        margin-top: 25px;

        & .copyright {
            margin-top: 0;
        }
    }
}
/*end footer-styles */

/*modal-style*/
.modal-header {
    border-bottom: 0;
}

.modal-backdrop.in {
    filter: alpha(opacity=70);
    opacity: .7;
}

.modal-backdrop {
    background-color: #ffffff;
}

.modal-title {
    color: var(--main-color);
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    text-align: left;
}

.modal-content {
    text-align: center;
    border: none;
    -webkit-box-shadow: 0px 0px 50px 0px rgba(0, 0, 0, .3);
    box-shadow: 0px 0px 50px 0px rgba(0, 0, 0, .3);
}

.modal-text {
    color: var(--main-color);
    text-align: left;
    margin-bottom: 15px;
    font-weight: normal;
}

.modal {
    z-index: 2000;
}

.modal-body tbody,
.modal-body td,
.modal-body tfoot,
.modal-body th,
.modal-body thead,
.modal-body tr {
    border-color: #96ADAB40 !important;
}

.modal-body .table > :not(:last-child) > :last-child > * {
    border-bottom-color: #ccc;
}

.modal-body th.table-title {
    background: #3b3b3b;
    color: white;
    text-align: center;
}

.modal-body thead th {
    text-align: right;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.15px;
    color: var(--main-color);
}

.modal-body thead th:first-child {
    text-align: center;
}

.modal-body tbody th {
    color: #008B92;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.15px;
    color: var(--main-color-but-lighter);
}

.modal-body td {
    color: var(--main-color);
    text-align: right;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.15px;
}

.modal-body .table-striped>tbody>tr:nth-of-type(odd) {
    --bs-table-accent-bg: var(--table-alternating-color);
    color: var(--table-alternating-color);
}


.modal-body .btn,
.modal-footer .btn {
    text-transform: uppercase;
    color: #96ADAB;
    font-size: 12px;
    font-weight: 700;
}

.modal-footer {
    padding-top: 0;
    border-top: 0;
}

.modal-body .btn.primary,
.modal-footer .btn.primary {
    color: var(--main-color);
    margin-left: auto;
}

.modal-body .btn.secondary:focus-visible, .modal-body .btn.primary:focus-visible,
.modal-footer .btn.secondary:focus-visible, .modal-footer .btn.primary:focus-visible {
    outline: 2px solid #0B57D0;
    outline-offset: 1px;
}

.modal-body th span {
    color: var(--main-color-but-lighter)
}
/*end modal-style*/

.proposal-box {
    color: white;
    background-color: #0A8486;
    font-size: 12px;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
}

.proposal-line-box {
    background-color: var(--card-background-color);
    padding: 15px;
    margin: 0;
}

.proposal-line {
    margin: 0 0 3px 0;
    text-transform: uppercase;
    color: var(--main-color);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 29px;
}

.proposal-premio {
    min-height: 84px;
    text-align: center;
    padding: 15px;
    margin-top: 15px;
}

.proposal-premio-text {
    text-transform: uppercase;
    font-size: 18px;
    line-height: 21px;
    color: var(--main-color);
}

.proposal-premio-price {
    font-size: 28px;
    font-weight: bold;
    line-height: 33px;
    color: var(--interactables-color);
}

.radio-primary {
    &>fieldset {
        &>legend {
            color: var(--main-color);
            margin: 0;
        }

        &>section {

            & label {
                border: 1px solid #96ADAB;
                background-color: transparent;
                color: var(--main-color);
            }
            & label:has(input[type=radio]:checked) {
                background-color: var(--card-background-color);
                border-color: #0A8184;
            }
            & label:has(input[type=radio]:disabled) {
                background-color: white;
                border-color: #0A8184;
            }

            &>div {
                &>label {
                    & input[type=radio]:focus-visible {
                        -webkit-appearance: none;
                        
                        padding: 0;

                        border: 1px solid #767676;

                        border-radius: 50% !important;
                        outline-offset: 5px;
                        outline: 2px solid #0B57D0;
                    }

                    & input[type=radio]:checked:focus-visible {
                        -webkit-appearance: none;

                        width: 16px;
                        height: 16px;
                        
                        padding: 0;

                        box-shadow: inset 0 0 0 2px #F6FBFB;

                        border: 1px solid #008B92;
                        background-color: #008B92;

                        border-radius: 50% !important;
                        outline-offset: 5px;
                        outline: 2px solid #0B57D0;
                    }

                    & input[type=radio]:active {
                        -webkit-appearance: none;
                        
                        padding: 0;

                        border: 1px solid #2B9595;

                        border-radius: 50% !important;
                        box-shadow: 0 0 0 10px #6FCB991A !important;
                        outline:none;
                    }
                    & input[type=radio]:checked:active {
                        -webkit-appearance: none;
                        
                        padding: 0;

                        width: 16px;
                        height: 16px;

                        border: 1px solid #008B92;
                        background-color: #008B92;

                        border-radius: 50% !important;
                        outline-offset: -3px;
                        outline: 2px solid #F6FBFB;
                    }

                }
            }
        }
    }
}

.radio-form {
    &>fieldset {
        &>section {
            & label {
                height: 40px;
            }
        }
    }
}

.radio-primary[readonly] {
    &>fieldset {
        &>section {
            & label {
                background-color: var(--icon-background-color);
            }
        }
    }
}

.consensi {
    &>fieldset {
        &>legend {
            font-weight: 700;
            font-size: 12px;
            line-height: 16px;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: var(--passive-color);
            margin-bottom: 12px;
        }
    }
}

.trasmissione {
    & .label-wrapper {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .label-wrapper:first-child:after{
        content: url(/images/scelta-green-big.svg);
        line-height: 0;
    }

    .label-wrapper:last-child:after{
        content: url(/images/scelta-nongreen-big.svg);
        line-height: 0;
    }

    & label {
        flex-grow: 1;
    }
}

.form-row-label {
    color: var(--main-color);
    font-size: 16px;
    font-weight: 600;
    padding-top: 7px;
    padding-bottom: 7px;
    text-align: left !important;
}

.confirm-text {
    text-align:center;
    margin-bottom: 10px;
    font-weight: bold;
}

.proceeding-form {
    &>fieldset {
        &>section {
            & input[type=radio] {
                width: 16px;
            }
        }
    }
}

/*consent-box*/
.consent-box {
    padding: 0 0 37px 4px;
    background-color: inherit;
}

.consent-box label {
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    text-transform: uppercase;
    color: var(--main-color);
    padding: 0 0 0 12px;
}

.consent-box label.selected{
    color: var(--main-color-but-lighter);
}

.consent-box .info {
    border: 1px solid #00b050;
    color: #00b050;
    padding: 12px;
    border-radius: 10px;
    margin: 10px;
    font-size: 14px;
    line-height: 28px;
    font-weight: normal;
    text-align: justify;
}


.consent-box h3 {
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
    color: var(--passive-color);
    padding: 0;
    margin: 0 0 20px 0;
}

.consent-box p {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--passive-color);
    border-radius: 3px;
    background-color: #FFFFFF;
    border: none;
    padding: 0;
}

.consent-box label.mail-label {
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    color: #96ADAB;
    text-transform: none;
}

.consent-box input[type=radio] {
    border: 0;
}
/*end consent-box*/

h1.section-header {
    text-transform: none;
    text-align: left;
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
    margin-top: 24px;
    margin: 20px 0 20px 0;
}

div.has-error input.form-control.boolean {
    border-color: var(--error);
}

div.has-error label, div.has-error legend {
    color: var(--error) !important;
}

.has-error input,
.has-error select {
    border-color: var(--error);
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
}

.has-error .form-control {
    border: 1px solid var(--error)!important;
}

.modalita-input {
    width: 16px;
    height: 16px;
}

.modalita-input-text {
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--main-color);
}

.iban {
    font-size: 16px;
    text-transform: uppercase;
}

.no-outline {
    outline: none !important;
}

.modal-phone:focus-visible {
    outline: 2px solid #0B57D0 !important;
    outline-offset: 5px;
}

.basic-outline:focus-visible {
    outline: 2px solid #0B57D0 !important;
}

.variazioni-title {
    margin-top: 15px;
    color: var(--interactables-color);
    font-size: 18px;
    line-height: 23px;
    text-transform: uppercase;
}

.variazioni-detail {
    border: 1px solid #c7c7c7;
    background-color: #eee;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.42857143;
    padding: 6px 12px;
    color: #555;
}

.conferma-acquisto-title {
    font-size: 24px;
    line-height: 29px;
}
