/*style.css*/
.address-address {
	margin-bottom: 10px;
}
.address-address .address-inner, .address-nums {
	display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: -5px;

}
.address-address .ai-input-wrapper {
    padding: 0 2px 10px 2px;
}
.address .street {
	width: 50%;
}
.address .house, .address .corp  {
	width: 25%;
}
.address .apartment, .address .address-dop {
	width: 25%;
}
.address .ai-input label  {
	font-size: 14px;
}
.page-delivery-calc .address .street {
	width: 70%;
}
.page-delivery-calc .address .hb {
	width: 30%;
}
.address .ai-input input {
	padding: 0 9px;
}
.address .ai-input.street label {
	left: 9px;
}
.address-nums .half, .address-nums .ai-input-wrapper {
	width: 50%;
}
a.delivery-type {
	display: flex;
	grid-gap: 5px;
	align-items: center;
}
#delivery-mode-modal a {
	text-decoration: none;
}
#delivery-mode-modal .modal-title {
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 110%;
	color: #000000;
}
@media (min-width: 700px) {
	#delivery-mode-modal .delivery-type-content {
		max-width: 600px;
	}
}
#delivery-mode-modal .delivery-type-content .modal-title {
	justify-content: space-between;
	width: 100%;
	display: none;
}
#delivery-mode-modal .subtitle {
	font-weight: 700;
	font-size: 18px;
	color: #000000;
	margin: 20px 0;
}
#delivery-mode-modal .modal-content {
	background: #fff;
}
#delivery-mode-modal  .edit, #delivery-mode-modal  .edit-inline, #delivery-mode-modal  .edit-flex {
	display: none!important;
}
#delivery-mode-modal.edit  .edit {
	display: block!important;
}
#delivery-mode-modal.edit  .edit-inline {
	display: inline!important;
}
#delivery-mode-modal.edit  .edit-flex {
	display: flex!important;
}
@media (max-width: 555px) {	
	#delivery-mode-modal.edit  .edit-inline.btn-custom {
		display: block!important;
	}
}
#delivery-mode-modal .delivery-dt {
	grid-gap: 10px;
	margin: 10px 0 0 0;
}
#delivery-mode-modal.edit .address-list-content .back,
#delivery-mode-modal.edit  .normal,
#delivery-mode-modal.edit  .delivery-type,
#delivery-mode-modal.edit  .change-time,
#delivery-mode-modal.edit  .delivery-dt,
#delivery-mode-modal.edit  .submit,
#delivery-mode-modal.edit  .my-addresses {
	display: none!important;
}
.delivery-type .change-time-wrapper {
    float: right;
    margin-top: 10px;
}
#delivery-mode-modal .footer-wrapper .change-time-wrapper {
    padding: 12px 17px;
    background: #F5F4F2;
    border-radius: 2rem;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}
#delivery-mode-modal .submit-wrapper {
	margin-top: 0;
}
.change-date {
    display: flex;
    gap: 7px;
    font-size: 16px;
    position: relative;
    font-weight: bold;
}
.change-date input {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    opacity: 0;
}
.change-date a {
    display: flex;
    gap: 7px;
    align-items: center;
    color: #D21200;
    position: relative;
    z-index: 10;
}
#delivery-mode-modal .modal-dialog {
	max-width: 95%!important;	
	justify-content: center;
}
#delivery-mode-modal .actions {
	grid-gap: 10px;
}
#delivery-mode-modal .actions .delete {
	color: #dd0000;
}
#delivery-mode-modal .address-buttons {
	margin: 0;
}
@media (min-width: 940px) {
	#delivery-mode-modal .modal-dialog {
		max-width: 900px!important;
	}
}
@media (min-width: 1300px) {
	#delivery-mode-modal .modal-dialog {
		max-width: 1200px!important;
	}
}
#delivery-mode-modal .delivery-type {
	margin-bottom: 10px;
}
.slide-buttons a.active .icon.dt-1 path{
	stroke: #fff;
	opacity: 1.0;
}
.slide-buttons a.active .icon.dt-2 path{
	fill: #fff;
	opacity: 1.0;
}

#delivery-mode-modal.edit .delivery-type-content #address-map {
	display: inline;
}
#delivery-mode-modal.edit .address-buttons {
	padding-top: 20px;
}
#delivery-mode-modal .takeaway-select, #delivery-mode-modal .address-select {
	margin: 0 0 10px 0;
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 37px;
	padding: 0 5px;
	background: #fff;
	border-radius: 8px;
	font-size: 14px;
}
.delivery-type-content .find-address-wrapper {
	display: none;
}
.address-map-content .find-address-wrapper {
	display: flex;
	grid-gap: 10px;
}
.find-address-wrapper .my-addresses {
	border-radius: 8px!important;
}
#find-address {
	border-radius: 8px;
	background-color: #D21200;
	color: #fff;
	font-size: 18px;
	display: block;
	line-height: 50px;
	width: 50px;
	height: 50px;
}
@media (max-width: 767.98px) {
	#find-address {
		line-height: 45px;
		width: 45px;
		min-width: 45px;
		height: 45px;
	}
}
#address-map, #takeaway-map {
	color: #000;
}
#address-map i, #takeaway-map i {
	color: #D21200;
    position: relative;
}
#delivery-mode-modal .address-list {
    background: #fff;
    border-radius: 16px;
    padding: 10px;
}
#delivery-mode-modal .delivery-type-content.with-addresses .address-wrapper {
	display: none!important;
}
#delivery-mode-modal.edit .delivery-type-content.with-addresses .address-wrapper {
	display: block!important;
}
#delivery-mode-modal .delivery-type-content.no-addresses #my-addresses-list {
	display: none!important;
}
#delivery-mode-modal .delivery-type-content.with-addresses .address-wrapper {
    display: none!important;
}
#delivery-mode-modal .address-list-content .modal-header, #delivery-mode-modal .takeaway-list-content .modal-header, #delivery-mode-modal .address-map-content .modal-header, #delivery-mode-modal.edit .delivery-type-content .modal-header {
	align-items: center;
	justify-content: flex-start;
}
#delivery-mode-modal .address-map-content .address-address {
	margin-bottom: 20px;
}
#delivery-mode-modal .modal-header a.back, #delivery-mode-modal .modal-header a.back-edit {
	padding: 5px 5px 5px 5px;
}
#delivery-mode-modal .flickity-button-icon {
	height: 20px;
	margin-right: 20px;
}
#delivery-mode-modal .address-list-content .modal-body {
	font-size: 18px;
}
#delivery-mode-modal .address-list-content .custom-checkbox {
	border-bottom: 1px solid #ccc;
}
#delivery-mode-modal .address-list-content  .custom-checkbox .label label {
    top: 50%;
    transform: translateY(-13px);
}

#delivery-mode-modal.edit #my-addresses-list .custom-checkbox.na,
#delivery-mode-modal.edit .address-list-content .label label,
#delivery-mode-modal.edit .footer-wrapper {
	display: none;
}
#delivery-mode-modal.edit a.btn-custom {
	padding: 10px 30px;
    border-radius: 2rem;
}
#delivery-mode-modal.edit .address-list-content .label {
	display: flex;
}
#delivery-mode-modal.edit .address-list-content .custom-checkbox span {
	padding-left: 0;
	padding-right: 10px;
}
#delivery-mode-modal .new-address {
	line-height: 48px;
	color: #D21200;
	cursor: pointer;
    text-align: center;
	width: 100%;
}
#delivery-mode-modal #my-addresses-list .custom-checkbox {
    line-height: 48px;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    gap: 10px;
	margin-top: 0;
}
#delivery-mode-modal #my-addresses-list .custom-checkbox:last-child {
    border-bottom: none;
}
#delivery-mode-modal #my-addresses-list .custom-checkbox label label {
	line-height: 25px;
}
#my-addresses-list {
	margin-top: 10px;
	height: 250px;
	overflow: auto;
}
#my-addresses-list {
	margin-bottom: 10px;
	padding: 7px;
    border: 1px solid #ccc;
    border-radius: 12px;
}
#my-addresses-list .custom-checkbox > label {
	width: 100%;
}
#my-addresses-list span.text {
	width: 100%;
}
.takeaway-items {
	margin-top: 10px;
	height: 250px;
	overflow: auto;
}
.takeaway-list-content .takeaway-items {
	margin-bottom: 20px;
}
.takeaway-items .item {
	border-bottom: 1px solid #ccc;
	padding-bottom: 10px;
	margin-bottom: 10px;
	cursor: pointer;
	line-height: 1.4;
}
.takeaway-items .item .inner {
	display: flex;
	grid-gap: 10px;
}
.takeaway-items .item .takeaway-address {
	font-size: 15px;
	font-weight: bold;
	padding-bottom: 3px;
}
.takeaway-items .item  .time, .takeaway-items .item .takeaway-work {
	font-size: 12px;
}
.takeaway-items .item .takeaway-work.w-open, .takeaway-item .takeaway-work.w-open {
	color: green;
}
.takeaway-items .item .takeaway-work.w-close, .takeaway-item .takeaway-work.w-close {
	color: red;
}
.takeaway-items .item:last-child {
	border-bottom: none;
}
.takeaway-items .item .left {
	width: 100%;
	max-width: 700px;
}
.takeaway-items .item .right {
	white-space: nowrap;
}
.takeaway-items.takeaway {
	margin-bottom: 10px;
	padding: 7px;
    border: 1px solid #ccc;
    border-radius: 12px;
}
.takeaway-items.takeaway .item {
	padding: 10px 5px 10px 5px;
	margin-bottom: 0;
}
.takeaway-items.takeaway .item.flex {
	display: flex;
	justify-content: space-between;
}
.takeaway-items .takeaway-address {
	display: flex;
	grid-gap: 7px;
	align-items: center;
}
.takeaway-items.takeaway .check, .takeaway-list-content .check {
	display: inline-block;
    width: 15px;
    height: 15px;
	min-width: 15px;
    border: 1px solid #999;
    border-radius: 100%;
}
.takeaway-items .item.active .check {
	background: #D21200 url(/bitrix/templates/eshop_bootstrap_v4/images/svg/check-white.svg) no-repeat 50% 50%;
	border: none;
}
#delivery-mode-modal .map-button {
    display: block;
	line-height: 35px;
	text-align: center;
	background: #F5F4F2;
	border-radius: 10px;
	font-size: 14px;
	color: #000000;
}
#delivery-mode-modal  .sod_select, #delivery-mode-modal  .address-select .inner, #delivery-mode-modal  .takeaway-select .inner {
	/*padding-left: 30px;
	background: url(../images/select-arrow-right.svg) no-repeat 100% 50%;
	background-size: 15px 15px;*/
	padding-left: 0;
	border: none;
	line-height: 38px;
	display: inline-block;
	width: auto;
	max-width: 100%;
	position: relative;
}
#delivery-mode-modal .map-header {
	display: flex;
	grid-gap: 20px;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
#delivery-mode-modal .map-header h5 {
	margin: none;
}
#delivery-mode-modal .map-header .btn-custom {
	font-weight: bold;
}
.address-map-content .slide-button.dt,
.takeaway-list-content .slide-button.dt {
	display: none;
}
#delivery-mode-modal #delivery-map {
	margin: 0 0 20px 0;
}
#delivery-mode-modal .select-dm {
	width: 100%;
}
@media (min-width: 701px) {
	.select-dm {
		margin-bottom: 5px;
	}
	#delivery-mode-modal .delivery-type .slide-buttons {
		float: left;
		margin-right: 20px;
	}
	#delivery-mode-modal .takeaway-select, #delivery-mode-modal .address-select {
		margin: 0px 0 0 350px;
	}
	#delivery-mode-modal .delivery-type-content .modal-header h5.desktop {
		display: flex;
	}
	.address-map-content .modal-body {
		overflow: hidden;
		border-radius: var(--bs-modal-border-radius);
	}
	.address-map-content .modal-body {
		padding: 0;
	}
	.address-map-content .footer {
		padding: 16px;
		width: 50%;	
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}
	.address-map-content .modal-header {
		padding: 0;
		padding-bottom: 16px;
		margin-bottom: 20px;
	}
	.address-map-content .map {
		display: flex;
		gap: 10px;
		width: 100%;
	}
	.address-map-content .address-wrapper {
		margin-bottom: 116px;
		height: 100%;
	}
	.address-map-content .map .address .street {
		width: 100%;
	}
	.address-map-content .map .address .house, .address-map-content .map .address .corp {
		width: 50%;
	}
	.address-map-content .map .address .house {
		padding-right: 5px;
	}
	.address-map-content .map .address .corp {
		padding-left: 5px;
	}
	#delivery-mode-modal #delivery-map {
		min-width: 50%;
		width: 50%;
		margin: 0;
	}
	.address-map-content .map .address .apartment {
		padding-right: 5px;
	}
	.address-map-content .map .address .address-dop {
		padding-left: 5px;
		padding-right: 5px;
	}
	.address-map-content .map .address .intercom {
		padding-right: 2px;
	}
}
@media (max-width: 700px) {
	.slide-buttons a {
		width: 49.2%;
		text-align: center;
	}
	#delivery-mode-modal .delivery-type-content .modal-header h5.mobile {
		display: flex;
		justify-content: space-between;
		width: 100%;
	}
	#delivery-mode-modal .address-map-content .address-address {
		margin-bottom: 10px;
	}
	#delivery-mode-modal .address-wrapper .btn-custom {
		white-space: normal!important;
		font-size: 12px;
		line-height: 13px;
		font-family: Arial;
		text-align: center;
	}
	#delivery-mode-modal .modal-dialog {
		max-width: 100%!important;
		height: 100%;
		margin: 0;
	}
	#delivery-mode-modal .modal-dialog .modal-content {
		max-height: 100%!important;
	}	
	#delivery-mode-modal .takeaway-items {
		height: 250px;
	}
	#delivery-mode-modal .modal-content.takeaway-list-content .modal-header,
	#delivery-mode-modal .modal-content.address-map-content .modal-header {
		display: none;
	}
	#delivery-mode-modal .modal-content.takeaway-list-content .modal-body,
	#delivery-mode-modal .modal-content.address-map-content .modal-body {
		padding: 0;
	}
	#delivery-mode-modal .modal-content.takeaway-list-content,
	#delivery-mode-modal .modal-content.address-map-content
	{
		max-height: 100%;
		height: 100%;
		border-radius: 20px;
		background: transparent;
	}
	#delivery-mode-modal .takeaway-list-content .takeaway-items-wrapper,
	#delivery-mode-modal .modal-content.address-map-content #map-error,
	#delivery-mode-modal .modal-content.address-map-content .footer {
		padding: 0 15px;
	}
	#delivery-mode-modal .takeaway-list-content .takeaway-items {
		padding: 0 5px;
	}
	.address-map-content .slide-button.dt,
	.takeaway-list-content .slide-button.dt {
		display: block;
		margin-bottom: 10px;
	}
	.edit .address-map-content .slide-button,
	.edit .takeaway-list-content .slide-button {
		display: none;
	}
	#delivery-mode-modal #delivery-map {
		margin: 0;
	}
	#delivery-mode-modal .modal-content.address-map-content .footer,
	#delivery-mode-modal .modal-content.takeaway-list-content .takeaway-items-wrapper{
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		background: #fff;
		border-radius: 10px 10px 0 0;
		padding: 10px 15px 15px 15px;
	}
	.address-map-content .modal-body,
	.takeaway-list-content .modal-body ,
	#contacts-map-modal .modal-body{
		background: transparent!important;
	}
	#delivery-mode-modal .address-map-content .line,
	#delivery-mode-modal .takeaway-list-content .line {
		width: 57px;
		height: 4px;
		margin: 0 auto 5px auto;
		content: "";
		opacity: 1.0;
		z-index: 2;
		border-radius: 2.5px;
		background-color: #bbb;
	}
	.address-map-content .change-time-wrapper .subtitle, 
	.takeaway-items-wrapper .change-time-wrapper .subtitle {
		display: none;
	}
	.address-map-content .change-time-wrapper {
		margin-top: 7px;
	}
	.takeaway-list-content .takeaway-items {
		margin-bottom: 0;
	}
}

.map-custom-controls .close-button {
    position: static!important;
    margin: 0!important;
}
.map-custom-controls .city-select {
	position: absolute;
	left: 10px;
	top: 10px;
	background: #fff;
	border-radius: 12px;
	padding: 0 10px;
}
@media (min-width: 701px) {
	#delivery-mode-modal .slide-buttons a {
		width: 170px;
		text-align: center;
	}
	.map-custom-controls .close-button {
		display: none!important;
	}
}
@media (max-width: 701px) {
	#delivery-mode-modal .delivery-type {
		text-align: center;
	}
	#delivery-mode-modal .takeaway-select, #delivery-mode-modal .address-select {
		margin: 0px 0 10px 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		grid-gap: 10px;
		margin: 15px 0 0 0;
	}
	#delivery-mode-modal .takeaway-select i, #delivery-mode-modal .address-select i {
		color: red;
	}
	#delivery-mode-modal .sod_select,
	#delivery-mode-modal .address-select .inner,
	#delivery-mode-modal .takeaway-select .inner {
		margin: 0;
	}
	#delivery-mode-modal .address-map-content {
		position: fixed;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
	}
	#delivery-mode-modal .address-buttons {
		padding-top: 0;
	}
	#delivery-mode-modal .address-buttons .btn-custom {
		margin-top: 10px;
		display: block;
	}
}
@media (max-width: 600px) {
	#delivery-mode-modal.edit #save-address, #delivery-mode-modal.edit #delete-address {
		margin-top: 10px;
	}
	#delivery-mode-modal.edit #address-map, #delivery-mode-modal.edit #save-address, #delivery-mode-modal.edit #delete-address, #delivery-mode-modal.edit .delivery-type-content #address-map {
		display: block;
		text-align: center;
		max-width: 100%
	}
	#delivery-mode-modal.edit #delete-address {
		max-width: 200px;
		margin-left: auto;
		margin-right: auto;
	}
}
#delivery-mode-modal  .address-select .inner, #delivery-mode-modal  .takeaway-select .inner {
	cursor: pointer;
}
#delivery-mode-modal  .address-select .inner .label, #delivery-mode-modal  .takeaway-select .inner .label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 20px;
}
#delivery-mode-modal .sod_select.open {
	width: 100%;
}
#delivery-mode-modal  .sod_select::after,
#delivery-mode-modal  .address-select .inner::after {
	content: "";
	width: 20px;
	height: 20px;
	background: url(/bitrix/templates/eshop_bootstrap_v4/images/svg/arrow-right.svg) no-repeat;
	background-size: 10px 10px;
	position: absolute;
	margin-top: -7px;
	top: 17px;
    right: -30px;
}
#delivery-mode-modal  .address-select .inner::after,
#delivery-mode-modal  .takeaway-select .inner::after   {
	right: -3px;
    top: 50%;
    transform: translateY(-23%);
    margin-top: 0;
 }
#delivery-mode-modal  .sod_select.open::after {
	display: none;
}
#delivery-mode-modal  .sod_select::before {
	display: none;
}
#delivery-mode-modal .sod_select .sod_option.active {
	background-color: green;
}
@media (max-width: 520px) {
	#delivery-mode-modal .btn-custom {
		width: 100%;
		display: block;
		text-align: center;
	}
}
.submit-wrapper {
	margin-top: 20px;
}

#os-order-form .delivery-dt {
	margin-top: 10px;
	grid-gap: 10px;
}