#embed_upload_form {
    color: #242424;
    font-family: AlbertaSans, Roboto, sans-serif;
    line-height: 24px;

    --popup-width: 720px;
}

#embed_upload_form *::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

#embed_upload_form *::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 10px;
    box-shadow: rgba(255, 255, 255, 0.3) 0 0 0 1px;
}

#embed_upload_form *:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.55);
}
#embed_upload_form:before {
    content: none;
}

#embed_upload_form .modal-content {
    padding: 0;
    max-height: 88vh;
    font-size: 14px;
    border: 0;
    height: 100%;
}

#embed_upload_form .modal-inner {
    height: calc(100% - 240px);
    max-height: 845px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    width: var(--popup-width);
    margin-left: calc((var(--popup-width) / 2 * -1));
    top: 120px;
}

#embed_upload_form .modal-inner * {
    box-sizing: border-box;
}

#embed_upload_form .modal-close:after {
    background: url(/images/popups/close-shadow3.svg) center no-repeat;
    margin-left: calc((var(--popup-width) / 2 - 25px));
    top: 92px;
    color: #FFFFFF;
    z-index: 10000002;
    position: absolute;
    font-size: 0px;
    height: 15px;
    width: 15px;
}

#embed_upload_form .modal-close:before {
    opacity: 0.7;
    cursor: default;
    display: block;
}

@media screen and (max-height: 840px) {
    #embed_upload_form .modal-inner {
        height: calc(100% - 120px);
        max-height: 845px;
        top: 60px;
    }

    #embed_upload_form .modal-close:after {
        top: 32px;
    }
}

@media screen and (max-height: 520px) {}

@media screen and (max-width: 730px) {
    #embed_upload_form.modal-container .modal-inner {
        width: auto;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        top: 42px;
        left: 0;
        right: 0;
        padding-top: 0;
        height: calc(100% - 42px);
        -webkit-box-shadow: none;
        box-shadow: none;
        margin-left: 0 !important;
        overflow: hidden;
        max-height: unset;
    }

    #embed_upload_form.modal-container .modal-content {
        max-height: unset;
        height: 100%;
    }

    #embed_upload_form .modal-close:after {
        padding: 2px 8px;
        margin-left: 0;
        top: 12px;
        left: auto;
        right: 10px;
    }

    #embed_upload_form_content .embed_upload_form-select-content .embed_upload_form-select-wrapper {
      width: 100%;
    }


}

#embed_upload_form_header {
    background: #fff;
    padding: 30px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 10px;
}

@media screen and (max-width: 30em) {
    #embed_upload_form_header {
        padding: 30px 16px;
        padding-bottom: 10px
    }
}

#embed_upload_form_header_main_text {
    font-size: 22px;
    font-weight: bold;
    line-height: 30px;
}

#embed_upload_form_header_side_text,
#embed_upload_form_header_side_text a {
    color: #9A9A9A;
    font-size: 12px;
    text-decoration: none;
}

#embed_upload_form__subscribe_alert {
    padding: 0 20px 20px 20px;
}

#embed_upload_form__subscribe_alert .alert_container {
    display: table;
}

#embed_upload_form_content {
    padding: 0 30px 30px 30px;
    display: flex;
    flex-direction: column;
    min-height: min-content;
}

@media screen and (max-width: 30em) {
    #embed_upload_form_content {
        padding: 0 16px 16px 16px;
    }
}

.embed_upload_form__textarea_wrap {
    background: #F7F7F7;
    border-radius: 10px;
    padding: 13px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.embed_upload_form__textarea_wrap textarea {
    display: none;
}
.embed_upload_form__textarea_wrap .code-snip {
    border: unset;
    color: #737373;
    /* background: transparent; */
    font-size: 12px;
    line-height: 16px;
    flex: 1;
    font-weight: 500;
    word-break: break-all;
}

.embed_upload_form__textarea_wrap+.embed_upload_form__textarea_label {
    margin-top: 10px;
}


.embed_upload_form__textarea_wrap .copy_button_embed {
    display: inline-flex;
    height: 38px;
    border-radius: 8px;
    align-items: center;
    transition: background-color 0.5s ease;
    color: white;
    background: #417FF2;
    min-width: fit-content;
    overflow: hidden;
    padding: 0 20px;
    cursor: pointer;
}

.embed_upload_form__textarea_wrap .copy_button_embed:hover:not(.copied) {
     background: #1F68EF;
}

.embed_upload_form__textarea_wrap .copy_button_embed .copy_text {
    overflow: hidden;
    max-width: 300px;
}

.embed_upload_form__textarea_wrap .copy_button_embed .copy_text div {
    height: 36px;
    line-height: 36px;
    transition: background 0.5s ease, max-width 0.5s ease;
    display: inline-block;
    white-space: nowrap;
    font-size: 14px;
    font-weight: bold;
}

.embed_upload_form__textarea_wrap .copy_button_embed .copy_text div.copied {
    display: none;
}

.embed_upload_form__textarea_wrap .copy_button_embed.copied {
    background: #42c689;
    color: white;
}

.embed_upload_form__textarea_wrap .copy_button_embed.copied .copy_text {
    max-width: 200px;
    display: inline;
    color: white;
    font-size: 12px;
    padding-right: 0;
}

.embed_upload_form__textarea_wrap .copy_button_embed .copy_text div.mobile {
    display: block;
}

.embed_upload_form__textarea_wrap .copy_button_embed.copied .copy_text div.hover {
    display: none;
}

.embed_upload_form__textarea_wrap .copy_button_embed.copied .copy_text .copied {
    display: inline-block;
}




#embed_upload_form_select-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 10px;
    gap: 5px 15px;
    z-index: 10000999;
}

.embed_upload_form_select-label {
    display: inline-block;
    font-size: 14px;
    width: max-content;
}

.embed_upload_form_iframe-label {
    padding-top: 20px;
    font-size: 14px;
}

#embed_upload_form_select {
    display: flex;
    flex-direction: column;
    user-select: none;
    display: inline-block;
    flex: 1;
    max-width: 260px;
    position: relative;
}

.select__trigger {
    font-size: 16px;
    border: 1px solid #D8D8D8 !important;
    height: 50px;
    width: 100%;
    background-repeat: no-repeat;
    background-position-x: 18px, calc(100% - 15px);
    background-position-y: center, calc(50% + 1px);
    background-image: url(/images/UI_icons/inputs/dropdown_grey.svg);
    background-size: 20px 20px, 10px;
    line-height: 50px;
    padding: 0 40px 0 55px;
    border-radius: 10px !important;
}

.select__trigger.img-grid {
    background-image: url(/images/UI_icons/layout/grid_black.svg), url(/images/UI_icons/inputs/dropdown_grey.svg);
}

.select__trigger.img-list {
    background-image: url(/images/UI_icons/layout/list_black.svg), url(/images/UI_icons/inputs/dropdown_grey.svg);
}

.select__trigger.img-horizontal {
    background-image: url(/images/UI_icons/layout/horizontal_black.svg), url(/images/UI_icons/inputs/dropdown_grey.svg);
}

.select__trigger.img-vertical {
    background-image: url(/images/UI_icons/layout/vertical_black.svg), url(/images/UI_icons/inputs/dropdown_grey.svg);
}

.select__trigger.img-slideshow {
    background-image: url(/images/UI_icons/layout/slideshow_black.svg), url(/images/UI_icons/inputs/dropdown_grey.svg);
}

.custom-options {
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 0px 30px 0px #07265f1a;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 99;
    border-radius: 20px;
    display: none;
    padding: 10px 0;
    width: 290px;
}

#embed_upload_form_select.open .custom-options {
    display: block;
}

.custom-option {
    padding: 0 50px 0 55px;
    height: 50px;
    display: flex;
    font-size: 12px;
    line-height: 14px;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: 0.5s ease;
    background-image: url(/images/UI_icons/layout/grid.svg);
    background-repeat: no-repeat;
    background-position-x: 18px;
    background-position-y: center;
    background-size: 20px 20px;
    flex-direction: column;
    justify-content: center;
}

.custom-option.selected {
    background-image: url(/images/UI_icons/layout/grid_black.svg);
}

.custom-option[data-value="list"] {
    background-image: url(/images/UI_icons/layout/list.svg);
}

.custom-option.selected[data-value="list"] {
    background-image: url(/images/UI_icons/layout/list_black.svg);
}

.custom-option[data-value="horizontal"] {
    background-image: url(/images/UI_icons/layout/horizontal.svg);
}

.custom-option.selected[data-value="horizontal"] {
    background-image: url(/images/UI_icons/layout/horizontal_black.svg);
}

.custom-option[data-value="vertical"] {
    background-image: url(/images/UI_icons/layout/vertical.svg);
}

.custom-option.selected[data-value="vertical"] {
    background-image: url(/images/UI_icons/layout/vertical_black.svg);
}

.custom-option[data-value="slideshow"] {
    background-image: url(/images/UI_icons/layout/slideshow.svg);
}

.custom-option.selected[data-value="slideshow"] {
    background-image: url(/images/UI_icons/layout/slideshow_black.svg);
}

.custom-option.selected:before {
    position: absolute;
    content: "";
    top: calc(50% - 10px);
    right: 14px;
    width: 20px;
    height: 15px;
    background: transparent url(/images/embed_popup/check-thick.svg);
    right: 20px;
    background-repeat: no-repeat;
    background-size: contain;
}

.custom-option .value {
    font-size: 16px;
    line-height: 20px;
    padding: 0;
    font-weight: 500;
}

.custom-option.selected .value {
    font-weight: 800;
}

.custom-option .desc {
    font-size: 10px;
    line-height: 13px;
    color: #787A7C;
    padding: 0;
    font-weight: 500;
}

.custom-option:hover {
    background-color: #f7f7f7;
}

#embed_upload_form_content .embed_upload_form-select-content {
  margin-bottom: 10px;
  display: grid;
  margin-bottom: 10px;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
}

#embed_upload_form_content .embed_upload_form-select-wrapper {
	display: inline-grid;
	margin: 5px;
	position:relative;
	width: 310px;
}
#embed_upload_form_content .embed_upload_form-select-wrapper span {
	position:relative;
	top:10px;
	left: 10px;
	z-index:1;
	background: #FFFFFF;
	width: fit-content;
	padding: 0 5px;
	color: #919191;
	font-size: 12px;
  transition: color 300ms;
}

#embed_upload_form_content .styled-select {
	border-radius: 10px;
  width: 100%;
	height: 50px;
  transition: border 300ms;
}

.styled-select:hover {
    border: 1px solid #242424;
}

/* has() is used to change the span color if the sibling div is hovered */
/* not() to let blue-span override the hover color */
#embed_upload_form_content .embed_upload_form-select-wrapper span:has(+ .styled-select:hover):not(.blue-span) {
  color: #242424;
}

#embed_upload_form_content .styled-select.blue-border {
    border: 1px solid #1389FE;
}

#embed_upload_form_content .embed_upload_form-select-wrapper span.blue-span {	
    color: #1389FE;
}

#embed_upload_form_content .styled-select .select-items {
    border-radius: 20px;
    box-shadow: 0px 0px 30px 0px #07265f1a;
    padding: 8px 0;
}

#embed_upload_form_content .styled-select .select-items div,
#embed_upload_form_content .styled-select .select-selected {
    font-size: 16px;
    align-items: center;
    position: relative;
    flex-direction: column;

    font-size: 16px;
    transition: 0.5s ease;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2px;
    color: #242424;
}

#embed_upload_form_content .styled-select .select-items div {
    height: 35px;
}

@media screen and (max-width: 730px) {
    #embed_upload_form_content .embed_upload_form-select-content {
      display: inline-table;
    }

    #embed_upload_form_content .styled-select .select-items div {
        height: 40px;
    }
}

#embed_upload_form_content .styled-select .select-items div[data-img],
#embed_upload_form_content .styled-select .select-selected.select-image {
    padding: 0px 50px 0px 55px;
    height: 50px;
    font-weight: 500;
}


#embed_upload_form_content .styled-select .select-items img,
#embed_upload_form_content .styled-select .select-selected img {
  position: absolute;
  left: 20px;
  height: 20px;
  width: 20px;
}

#embed_upload_form_content .styled-select .select-items span,
#embed_upload_form_content .styled-select .select-selected span {
  position: unset;
  padding: 0;
  background: none;
  font-size: 10px;
  font-weight: 500;
}

#embed_upload_form_content .styled-select .select-selected:after {
    background: transparent url(/images/UI_icons/inputs/dropdown_lgrey.svg) no-repeat center center;
    background-size: contain;
    transition: background-image 300ms;
    width: 7px;
    height: 4px;
}

#embed_upload_form_content .styled-select:hover .select-selected:after {
    background-image: url(/images/UI_icons/inputs/dropdown.svg);
    background-size: contain;
    width: 7px;
    height: 4px;
}