.switch {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 32px;
}

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

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

.switch .slider::before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.switch input:checked+.slider::before {
    left: -1px;
}

.switch input:checked+.slider {
    background-color: #82b697;
}

.switch input:checked+.slider::before {
    transform: translateX(22px);
}

.sticky-switch {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
}
.sticky-switch input[type="radio"],
.sticky-switch input[type="checkbox"] {
     opacity: 0;
     width: 0;
     height: 0;
 }
.sticky-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("/assets/design/svg/icon-tick.svg") !important;
    width: 24px !important;
    height: 24px !important;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.sticky-switch input:checked+.slider {
    background-image: url("/assets/design/svg/icon-tick-active.svg") !important;
    box-shadow: inset 0 0px 0px rgba(0, 0, 0, .0) !important;
}
.box-speaker {
    display: flex;
    width: 30px;
    justify-content: flex-end;
}
.speaker-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 30px;
    cursor: pointer;
    gap: 5px;
}
.speaker-switch > input {
    display: none;
}
.speaker-switch .slider {
    background-image: url("/assets/design/svg/icon-speaker-off.svg") !important;
    justify-content: center;
    width: 24px !important;
    height: 20px !important;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.speaker-switch input:checked+.slider {
    background-image: url("/assets/design/svg/icon-speaker-on.svg") !important;
    box-shadow: inset 0 0px 0px rgba(0, 0, 0, .0) !important;
}
.speaker-switch .label {
    color: var(--text-color-red);
    font-size: var(--fsize-9);
    font-family: var(--font-family);
    font-weight: 600;
    line-height: var(--line-height-9);
    word-wrap: break-word;
    justify-content: center;
}



.box-heart {
    display: flex;
    width: 55px;
    justify-content: flex-end;
}
.heart-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 55px;
    cursor: pointer;
    gap: 5px;
}
.heart-switch > input {
    display: none;
}
.heart-switch .slider {
    background-image: url("/assets/design/svg/icon-heart-border.svg") !important;
    justify-content: center;
    width: 24px !important;
    height: 20px !important;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.heart-switch input:checked+.slider {
    background-image: url("/assets/design/svg/icon-heart-red.svg") !important;
    box-shadow: inset 0 0px 0px rgba(0, 0, 0, .0) !important;
}
.heart-switch .label {
    color: var(--text-color-red);
    font-size: var(--fsize-9);
    font-family: var(--font-family);
    font-weight: 600;
    line-height: var(--line-height-9);
    word-wrap: break-word;
    justify-content: center;
}

.radio-switch {
    position: relative;
    display: inline-flex;
    height: 24px;
    width: auto;
}
.radio-switch input[type="radio"] {
     opacity: 0;
     width: 0;
     height: 0;
 }
.radio-switch .label {
    display: inline-flex;
    flex-grow: 1;
    justify-content: flex-start;
    color: var(--text-color);
    font-size: var(--fsize-15);
    font-family: var(--font-family);
    font-weight: 300;
    line-height: var(--line-height-16);
    word-wrap: break-word;
}
.radio-switch .slider {
    display: inline-flex;
    background-image: url("/assets/design/svg/icon-radio-none.svg") !important;
    width: 24px !important;
    height: 24px !important;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin-right: 10px;
}

.radio-switch .slider.gift {
    display: inline-flex;
    background-image: url("/assets/design/svg/icon-radio-none.svg") !important;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin-right: 5px;
    width: 20px !important;
    height: 20px !important;
}

.radio-switch input:checked+.slider {
    background-image: url("/assets/design/svg/icon-radio-checked.svg") !important;
    box-shadow: inset 0 0px 0px rgba(0, 0, 0, .0) !important;
}
.radio-group {
    display: flex;
    flex-direction: column;
}
.radio-group.radio-group-row {
    flex-direction: row;
    justify-content: space-between;
    min-width: 110px;
    margin-top: 20px;
    margin-left: 10px;
    margin-right: 10px;
}

.radio-toggle-switch {
    position: relative;
    display: inline-flex;
    height: 24px;
    width: auto;
    align-items: center;
}
.radio-toggle-switch > input {
    opacity: 0;
    width: 0;
    height: 0;
}
.radio-toggle-switch .label {
    display: inline-flex;
    flex-grow: 1;
    justify-content: flex-start;
    color: var(--text-color);
    font-size: var(--fsize-15);
    font-family: var(--font-family);
    font-weight: 300;
    line-height: var(--line-height-16);
    word-wrap: break-word;
}
.radio-toggle-switch .toggle {
    display: inline-flex;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin-right: 10px;
    background-color: var(--btn-color-white);
    color: var(--text-color-label);
}
.radio-toggle-switch input:checked+.toggle {
    box-shadow: inset 0 0px 0px rgba(0, 0, 0, .0) !important;
    background-color: var(--btn-color-green);
    color: var(--btn-text-color);
}

.radio-toggle-switch-tick .toggle > img {
    display: none;
}
.radio-toggle-switch-tick input:checked+.toggle > img {
    display: block;
}
.radio-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.radio-toggle-group.radio-toggle-group-row {
    flex-direction: row;
    justify-content: space-between;
    min-width: 110px;
}
