body.has-popup {
    overflow: hidden
}

.text-uppercase {
    text-transform: uppercase
}

.text-lowercase {
    text-transform: lowercase
}

.text-capitalize {
    text-transform: capitalize
}


/* addresses list showing */

.addresses-section .sg-del-address-list-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.addresses-section .sg-del-address-list-inner>.address-inline {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc(95% / 2);
    padding: 3%;
    margin-bottom: 5%;
    border-radius: 4px;
    transition: 350ms all;
    position: relative;
    min-height: 200px;
}

.single-address.address-inline.sg-del-add-add-new-opt {
    justify-content: center;
    align-items: center;
}

.addresses-section.mobile-cards>.single-address.address-inline {
    width: 100%;
    box-shadow: 1px 3px 9px 0 #0000001a;
}

.single-address:not(.available-address) {
    border: 1px solid #e9e9eb;
    cursor: pointer
}

.single-address.add-new-address {
    border: 1px dashed #e9e9eb
}

.single-address:hover {
    box-shadow: 1px 3px 9px 0 #0000001a
}

.single-address .title {
    font-size: 16px;
    margin: auto;
    margin-bottom: 20px;
    font-weight: 600;
}

.single-address p {
    font-size: 16px;
    margin-bottom: 0px !important;
}

.addresses-section .single-address .address {
    color: #93959f;
    font-size: 14px;
    margin-bottom: 1.15em !important
}

.addresses-section .single-address .distance {
    color: #282c3f;
    font-weight: 900
}

.addresses-section .single-address .sg-button {
    background-color: #60b246;
    color: #fff;
    padding: 4px 16px;
    display: inline-block;
    cursor: pointer;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.addresses-section .single-address .sg-button.button-outline {
    background-color: transparent;
    color: #60b246;
    border: 1px solid #60b246;
    padding: 4px 16px;
    display: inline-block
}


/* popup content */

.sg-overlay {
    width: 0;
    height: 0;
    position: fixed;
    background: #000000b8;
    top: 0;
    left: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 1;
    transition: opacity .3s ease-in
}

.sg-overlay.show {
    width: 100%;
    height: 100%;
    transition: opacity .3s ease-in
}

.sg-overlay>div {
    width: 500px;
    height: 100%;
    position: relative;
    background: #fff;
    left: -100%;
    transition: .5s ease-in
}

.sg-overlay.is_mobile>div {
    left: 0px;
    right: 0px;
    bottom: -100%;
    background: transparent;
    width: 100%;
}

.sg-overlay>div.show {
    left: 0
}

.sg-overlay.is_mobile>div.show {
    bottom: 0px;
}

.sg-overlay.show .sg-left-slider {
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
}

.sg-overlay.show .sg-bottom-slider {
    position: absolute;
    width: 100%;
    height: 80%;
    bottom: 0px;
    background: #fff;
    overflow-y: scroll;
    border-radius: 32px 32px 0px 0px;
}

.sg-action-container .sg-popup-header,
.sg-action-container .sg-popup-footer {
    position: sticky;
    box-shadow: 0 2px 4px 0 #e9e9eb;
    background: #fff;
    padding: 20px 60px;
    z-index: 2;
}

/* .sg-action-container .sg-popup-content {
    padding: 30px 60px 8px;
} */

.sg-action-container .sg-popup-header {
    top: 0px;
    box-shadow: 0 2px 4px 0 #e9e9eb;
    display: flex;
    align-items: center;
}

.sg-action-container .sg-popup-footer {
    bottom: 0px;
    box-shadow: 0 -2px 4px 0 #e9e9eb;
}

.sg-action-container.is_mobile .sg-popup-header,
.sg-action-container.is_mobile .sg-popup-footer,
.sg-action-container.is_mobile .sg-popup-content {
    padding-left: 35px;
    padding-right: 35px;
}

.sg-del-add-map-container {
    color: #fff;
    background-color: #000;
    height: 250px;
    width: 100%;
}

.sg-del-add-map-container p {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sg-action-container .sg-popup-footer .sg-button {
    width: 100%;
    background-color: #60b246;
    text-align: center;
    line-height: 50px;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    margin: 0px;
}

.sg-popup-close-button {
    background-color: transparent;
    padding: 4px 16px;
    cursor: pointer;
}

.sg-popup-close-button.close-text {
    color: #60b246;
    border: 1px solid #60b246;
}

.sg-popup-close-button.close-img img {
    width: 24px;
}

.sg-popup-header .title {
    margin-left: 25px;
    font-weight: 700;
    color: #282c3f;
}

.sg-action-container .sg-button:focus,
.sg-action-container .sg-button:hover {
    text-decoration: none;
    outline: 0
}

.sg-overlay.show .sg-left-slider #ship-to-different-address,
.sg-overlay.show .sg-bottom-slider #ship-to-different-address {
    display: none
}

.sg-field.m-0 {
    margin: 0 !important
}

.sg-field {
    position: relative
}

.sg-mark-address-container {
    border-top: 1px solid #ddd;
}

.sg-mark-address-container>.sg-field {
    border: 1px solid #ddd;
    border-top: 0px;
}

body.has-popup .sg-field label.sg-field-label {
    position: absolute;
    left: 0;
    top: 24px;
    padding-left: 20px;
    line-height: 20px;
    font-size: 17px;
    cursor: text;
    transition: .2s ease;
    width: 100%;
    color: #93959f;
    will-change: transform, color, font-size;
    pointer-events: none;
    font-weight: 400;
    margin: 0px;
}

body.has-popup .sg-del-add-card-title.sg-field label.sg-field-label {
    font-size: 24px;
}

body.has-popup .sg-del-add-card-title.sg-field {
    border: 1px solid #ddd;
}

body.has-popup .sg-del-add-card-title.sg-field.has-error {
    border-color: #ff1010;
}

body.has-popup .sg-field label.sg-field-label.active {
    font-size: 12px;
    font-weight: 500;
    color: #7e808c;
    -ms-transform: translateY(-70%);
    transform: translateY(-70%);
}

.sg-field.sg-address-container {
    border: 1px solid #ddd;
    border-top: 0px;
    border-bottom: 0px;
}

.sg-field .sg-error {
    display: none;
}

.sg-field.has-error .sg-error {
    color: red;
    border-bottom: 1px solid #ddd;
    display: block;
    padding-left: 20px;
    padding-bottom: 10px;
    margin-top: -10px;
    font-size: 16px;
    font-weight: bold;
}

body.has-popup .sg-field:not(.sg-other-address-type) input[type="text"] {
    background-color: transparent;
    line-height: normal;
    border: none !important;
    outline: none;
    height: 70px;
    width: 100%;
    font-size: 17px;
    margin: 0;
    padding: 0 20px;
    padding-top: 22px;
    box-shadow: none;
    box-sizing: border-box;
    border-radius: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.sg-marked-default {
    padding: 14px 0px;
}

.sg-marked-default input {
    outline: none;
}

.sg-marked-default label {
    cursor: pointer;
}

.sg-address-type {
    position: relative;
    border: 1px solid #ddd;
    border-top: 0px;
}

.sg-address-type .sg-address-inner {
    display: flex;
    height: 52px;
    align-items: center;
    justify-content: center;
    width: 0px;
    transition: 350ms ease-in-out;
    overflow: hidden;
}

.sg-address-type .sg-address-inner.show {
    width: 100%;
}

.address-other-option {
    position: absolute;
    width: 0px;
    background: #fff;
    top: 0px;
    overflow: hidden;
    transition: 350ms ease-in-out;
}

.address-other-option.show {
    width: 100%;
}

.sg-address-type .sg-address-inner input[type="radio"] {
    display: none;
}

.sg-address-type .sg-address-inner:not(.address-other-option) label {
    margin: 0px;
    /* background: grey; */
    padding: 12px 0px;
    width: calc(100% / 3);
    text-align: center;
    border-right: 1px solid #ddd;
    cursor: pointer;
    height: 100%;
}

.sg-address-type .sg-address-inner:not(.address-other-option) label:last-child {
    border-right: 0px;
}

.sg-address-type .sg-address-inner:not(.address-other-option) label:hover {
    background: #000;
    color: #fff;
}

.sg-address-type .sg-address-inner:not(.address-other-option) input[type="radio"]:checked+label {
    background: #000;
    color: #fff;
}

.sg-field.sg-other-address-type {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0px;
    align-content: center;
}

label.sg-field.sg-other-address-type .sg-field-label {
    white-space: nowrap;
    background: #000;
    color: #fff;
    padding: 0px 19px;
    height: 100%;
    display: block;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

label.sg-field.sg-other-address-type .sg-btn {
    white-space: nowrap;
    padding: 0px 19px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    border-left: 1px solid #ddd;
    cursor: pointer;
}

label.sg-field.sg-other-address-type input {
    background-color: transparent;
    line-height: normal;
    border: none !important;
    outline: none;
    font-size: 17px;
    margin: 0;
    padding: 0 20px;
    box-shadow: none;
    box-sizing: border-box;
    border-radius: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}


/* stored address cards */

.sg-header-action-container {
    display: flex;
    width: 24px;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 20px;
    right: 20px;
}

.sg-menu-action {
    width: 24px;
    height: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-menu-option {
    cursor: pointer;
    width: 100%;
}

.sg-dropdown-list {
    display: none;
    position: absolute;
    min-width: 150px;
    max-width: 250px;
    background: #fff;
    right: -9px;
    top: 44px;
}

.sg-dropdown-list.active {
    display: block;
    box-shadow: 0 -3px 15px 0px #0000001f;
    border-radius: 4px;
}

.sg-dropdown-list.active:before {
    content: '';
    background-color: transparent;
    border-right: 8px solid transparent;
    position: absolute;
    border-left: 8px solid transparent;
    border-bottom: 8px solid #fff;
    border-top: 8px solid transparent;
    top: -15px;
    right: 18px;
}

.sg-dropdown-list.active:after {
    content: '';
    background-color: transparent;
}

.sg-dropdown-item {
    padding: 8px 20px;
    cursor: pointer;
}

.sg-dropdown-item.danger {
    color: red;
}

.sg-dropdown-item:hover {
    background: #f1f1f1;
}

.available-address {
    border: 1px solid #e9e9eb;
}

.available-address.removed {
    background: #ffb0b02e;
    border-color: red;
}

.available-address.removed p {
    color: #bf0202;
    font-size: 14px;
}

.available-address input[type="radio"] {
    display: none;
}

.available-address input[type="radio"]+label {
    display: none;
    margin: 0px;
}

.sg-header-action-container .label-overlay {
    width: calc(100% - 35px);
    position: absolute;
    left: 0px;
    background: transparent;
    top: 0px;
    bottom: 0px;
}

.available-address input[type="radio"]:checked+label {
    display: block;
    position: absolute;
}


/* selected box styles */

.sg-del-add-selected-address {
    padding: 25px;
    border: 1px solid #e9e9eb;
    cursor: pointer;
    position: relative;
    margin-bottom: 25px;
}

.sg-del-add-selected-address:hover {
    box-shadow: 1px 3px 9px 0 #0000001a;
}

.sg-del-add-selected-address .change-option {
    color: #60b246;
    font-weight: 600;
    font-size: 16px;
    position: absolute;
    background: #fff;
    padding: 12px;
    right: 9px;
    top: 5px;
}

.sg-del-add-selected-address p {
    color: #93959f;
    font-size: 14px;
    margin: 0px !important;
}

.sg-del-add-selected-address .sg-del-add-type {
    margin: 0px;
    font-size: 16px;
    margin-bottom: 9px;
    font-weight: 600;
}

.sg-del-add-title {
    margin-top: 0px !important;
    width: 100%;
    margin-left: 0px !important;
}

.sg-field.has-error {
    border: 2px solid #ff1010;
}