
:root {
    --secmi-color-primary-lightest: #e8ecf1;
    --secmi-color-primary-lighter: #d1d9e2;
    --secmi-color-primary-light: #bbc6d4;
    --secmi-color-primary: #002b57;
    --secmi-color-secondary: #d71926;
    --secmi-color-secondary-dark: #bf2c37;
    --secmi-spacing: 0.75rem;
    --secmi-rounded: 8px;
}

.space-y-1 > * + * {
    margin-top: 0.50rem;
}

.space-y-2 > * + * {
    margin-top: 1rem;
}

.space-y-3 > * + * {
    margin-top: 1.50rem;
}

.space-y-4 > * + * {
    margin-top: 2rem;
}

.space-y-5 > * + * {
    margin-top: 2.5rem;
}

.space-y-6 > * + * {
    margin-top: 3rem;
}

/* --- Dropdown --- */

.ui-dropdown-wrapper {
    position: relative;
}

.ui-dropdown-menu {
    position: absolute;
    z-index: 2;
    width: 100%;
    left: 0;
    top: 100%;
    margin-top: 0.75rem;
    background-color: white;
    border-radius: 8px;
    visibility: hidden;
    opacity: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    transform: translateY(-1rem);
    transition-property: opacity, transform, visibility;
    transition-timing-function: ease-in;
    transition-duration: 75ms;
}

.ui-dropdown-menu.is-active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-timing-function: ease-out;
    transition-duration: 300ms;
}

.ui-btn-dropdown {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background-color: #efefef;
    color: var(--secmi-color-primary);
    font-weight: 500;
}

.dropdown-icon {
    font-size: 1.4rem;
    transition-property: transform;
    transition-timing-function: ease-in;
    transition-duration: 200ms;
}

.ui-dropdown-wrapper.opened .dropdown-icon {
    transform: rotate(180deg);
}

/* --- End Dropdown --- */

.secmi--module {
    display: flex;
    flex-direction: row;
}

.secmi--instructions {
    flex-basis: 40%;
    padding: 2rem;
    background-color: var(--secmi-color-primary);
}

.secmi--instructions * {
    color: white;
}

.secmi--title {
    font-size: 2rem;
    text-align: center;
}

.secmi-steps * + * {
    margin-top: 0.75rem;
}

.secmi-step-item {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.2;
}

.secmi-step-item.valid {
    color: #90c08c;
}

.secmi--configurator {
    position: relative;
    flex-basis: 60%;
    padding: 2rem;
    background-color: #fafafa;
}

.secmi-loader {
    position: absolute;
    background-color: white;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 40%;
    visibility: hidden;
    z-index: 2;
}

html.is-fetching .secmi--configurator--form {
    opacity: 0.40;
    pointer-events: none;
}

html.is-fetching-partial .secmi-cart-widget {
    opacity: 0.40;
    pointer-events: none;
}

.field-row {

}

.field-row > * + * {
    margin-top: 0.50rem !important;
}

.secmi--module ul {
    padding: 0 0;
    list-style: none;
}

.dropdown-2-columns-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem !important;
}

.dropdown-2-columns-options input {
    display: none;
}

.dropdown-2-columns-options input:checked + .secmi-label-option {
    background-color: var(--secmi-color-primary);
    color: white;
}

.field-errors {
    padding-left: 0.75rem;
}

.field-errors li {
    font-size: 1.4rem;
    list-style: none;
    color: #800000;
    line-height: 1.2;
}

.switch-wrapper {
    display: inline-flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.secmi-label {
    color: var(--secmi-color-primary);
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0;
}

.secmi-label-option {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 1rem;
    font-size: 1.6rem;
    line-height: 1;
    border-radius: 0.5rem;
    color: black;
    transition: all 0.3s ease;
}

.secmi-label-option {
    background-color: var(--secmi-color-primary-lightest);
}

.secmi-label-option:hover {
    background-color: var(--secmi-color-primary-lighter);
    color: var(--secmi-color-primary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 5rem;
    height: 2.8rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 100rem;
}

.slider:before {
    position: absolute;
    content: "";
    height: 2rem;
    width: 2rem;
    left: 0.4rem;
    bottom: 0.4rem;
    background-color: white;
    border-radius: 50%;
    -webkit-transition: .3s;
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--secmi-color-primary);
}

input:checked + .slider:before {
    -webkit-transform: translateX(2.2rem);
    -ms-transform: translateX(2.2rem);
    transform: translateX(2.2rem);
}

.secmi-choice-wrapper {

}

.secmi-choice-wrapper input {
    display: none;
}

.secmi-input-text-wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

label.field-letter {
    display: flex;
    align-items: center;
    color: var(--secmi-color-primary);
    font-weight: 500;
    padding: 0 1.25rem;
    margin: 0 0;
    background-color: #e4e4e4;
    cursor: pointer;
}

.secmi-input-text {
    border: 2px solid #e4e4e4;
    transition: all 0.3s ease;
}

.secmi-input-text:focus {
    border: 2px solid var(--secmi-color-primary);
    outline: 0;
}

.secmi-input-text::placeholder {
    color: #767676;
}

.field-unit {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    padding: 5px;
    right: 3px;
    background-color: white;
    z-index: 1;
}

.field--description.is-invalid {
    color: var(--secmi-color-secondary);
}

.secmi--submit {
    width: 100%;
    background-color: var(--secmi-color-secondary);
    color: white;
    padding: 1.2rem 1.5rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease;
}

.secmi--submit:hover {
    background-color: var(--secmi-color-secondary-dark);
}

/* --- Cart widget --- */
.secmi-cart-widget  > * + * {
    margin-top: 1rem !important;
}

.ui-product-quantity  {
    flex: none;
    width: 7rem;
    text-align: center;
}

.secmi-cart-quantity {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
    justify-content: start;
}

.secmi-btn-quantity {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 600;
    background-color: var(--secmi-color-primary);
    color: white;
    border-radius: 1000px;
    line-height: normal;
}

.secmi-quantity-display {
    display: inline-block;
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
}

.secmi-summary-amount-total {
    font-size: 1.8rem;
}

.secmi-summary-amount-unit {
    font-size: 1.4rem;
}


/* --- Responsive --- */
@media only screen and (max-width : 720px) {
    .secmi--module {
        flex-direction: column;
    }

    .secmi--instructions, .secmi--configurator {
        flex-basis: 100%;
    }
}
