/* 스티비의 구독폼 코드를 기반으로 수정되었습니다. */

#stb_subscribe * {
	margin: 0;
	padding: 0;
	font-size: 14px;
	color: #49515c;
	box-sizing: border-box;
	line-height: 165%;
}

#stb_subscribe .mobile_view {
  display: none;
}

#stb_subscribe ul,
#stb_subscribe ol {
	padding-left: 16px;
	white-space: initial;
}

#stb_subscribe {
	/* 최소 폭을 두지 않는다(WWW-9, 소개서와 같은 이유 — 780px 이면 창 폭 780 이하에서 가로 스크롤이 생겼다) */
	min-width: 0;
	width: 100%;
	background-color: white;
	padding: 80px;
	margin: 0;
	box-sizing: border-box;
	transition: opacity 0.3s ease-in-out;
}

#stb_subscribe textarea {
	border: 1px solid #bbbbbb;
}

#stb_subscribe .divider {
  width: 100%;
  height: 1px;
  background-color: #EEEEEE;
  margin: 24px 0;
}

#stb_subscribe .stb_notice_title {
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  color: #3D92F6;
  margin-bottom: 12px;
}

#stb_subscribe .stb_notice {
  padding: 0;
  margin: 0;
  padding-bottom: 12px;
}

#stb_subscribe .stb_notice > li {
  list-style: '•';
  padding-left: 10px;
  margin-left: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 25px;
  color: #49515C;
  margin-bottom: 4px;
}

#stb_subscribe .stb_notice > li::marker {
  color: #4299FF;
  font-size: 20px;
}

#stb_subscribe .stb_notice_description {
  color: #888888;
  font-size: 15px;
  font-weight: 400;
  line-height: 25px;
}

#stb_subscribe .stb_header {
	width: 100%;
	overflow: hidden;
	text-align: left;
	padding-bottom: 40px;
}

#stb_subscribe .stb_header img {
	display: inline-block;
	max-width: 100%;
	height: auto;
}
#stb_subscribe .stb_form_set.stb_display_none {
  display: none;
}

#stb_subscribe .stb_form_set {
  display: block;
}

#stb_subscribe .stb_form_set .stb_form_set_select {
	height: 50px;
}

#stb_subscribe .stb_form_set .stb_form_set_input {
	height: 50px;
}

#stb_subscribe .stb_form_title {
	font-size: 22px;
	color: #4299ff;
	line-break: anywhere;
	font-weight: 700;
}

#stb_subscribe .stb_form_description {
	padding-bottom: 40px;
	font-size: 14px;
	line-height: 1.71;
	color: #333;
	line-break: anywhere;
}

#stb_subscribe .stb_form_description a {
	text-decoration: underline;
	color: #3e81f6;
}

#stb_subscribe .stb_form_input_group {
	display: flex;
	gap: 40px;
}

#stb_subscribe .stb_form_input_group fieldset {
	width: 100%;
}

#stb_subscribe .stb_form_set {
	padding-bottom: 25px;
	overflow: hidden;
	position: relative;
}

#stb_subscribe .stb_form_set.last {
  padding-top: 25px;
  padding-bottom: 0;
}

#stb_subscribe .stb_form_set .stb_form_set_label {
	line-height: 165%;
	font-weight: 600;
	padding-bottom: 8px;
	display: block;
}

#stb_subscribe .stb_form_set .stb_form_set_label .stb_asterisk {
	color: #4299ff;
}

#stb_subscribe .stb_form_set .stb_form_set_input {
	display: block;
	width: 100%;
	padding: 14px 20px;
	background: white;
	font-size: 16px;
}

#stb_subscribe .stb_form_set .stb_form_set_input::placeholder {
	color: #d8d8d8;
}

#stb_subscribe .stb_form_set textarea.stb_form_set_input {
	resize: none;
	height: 106px;
}

#stb_subscribe .stb_form_set select {
	padding: 12px 20px;
	background-color: #FFFFFF;
	font-size: 16px;
	color: #333333;
	background-size: 24px 24px;
}

#stb_subscribe .stb_form_set .stb_form_radio {
	padding-bottom: 8px;
}

#stb_subscribe .stb_form_set .stb_form_radio.deselect {
	text-decoration: underline;
	cursor: pointer;
	display: none;
}

#stb_subscribe .stb_form_set .stb_form_radio.etc_input {
	display: none;
}

#stb_subscribe .stb_form_msg_error {
	display: none;
	color: #f95a1f;
	padding: 5px 0;
	font-size: 14px;
	/* position: absolute; */
	/* left: 0; */
	/* bottom: 0; */
}

#stb_subscribe .stb_form_policy {
	position: relative;
	padding-bottom: 12px;
}

#stb_subscribe .stb_form_policy.odd {
	position: relative;
	padding-bottom: 10px;
}

#stb_subscribe .stb_form_policy.last {
	padding-bottom: 0px;
}

#stb_subscribe .stb_form_policy * {
	vertical-align: middle;
}

#stb_subscribe .stb_form_policy label input {
	width: 16px;
	height: 16px;
	margin: 0 3px 0 0;
}

#stb_subscribe .stb_form_policy button.stb_form_modal_open_btn {
	cursor: pointer;
	background: none;
	text-decoration: underline;
	font-weight: 600;
}

#stb_subscribe .stb_form_policy .stb_checkbox_container {
	display: flex;
	align-items: center;
}

#stb_subscribe .stb_form_policy .stb_checkbox_container > label {
	cursor: pointer;
}

#stb_subscribe .stb_form_policy .stb_checkbox_container label {
	margin-right: 12px;
}

#stb_subscribe .stb_form_policy .stb_checkbox_container label > label {
	width: 20px !important;
}

#stb_subscribe .stb_form_policy .stb_checkbox_container .stb_asterisk {
	color: #4299ff;
	margin-right: 4px;
}

#stb_subscribe .stb_form_modal {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 100000;
}

#stb_subscribe .stb_form_modal.blind {
	display: none !important;
}

#stb_subscribe .stb_form_modal_bg {
	position: absolute;
	width: 100%;
	height: 100%;
	background: #000;
	opacity: 0.5;
	z-index: 1;
}

#stb_subscribe .stb_form_ad_modal_bg {
	position: absolute;
	width: 100%;
	height: 100%;
	background: #000;
	opacity: 0.5;
	z-index: 1;
}

#stb_subscribe .stb_form_modal_body {
	background: white;
	width: 94%;
	max-width: 500px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
}

#stb_subscribe .stb_form_modal_body p {
	margin-block-start: 0em;
	margin-block-end: 0em;
}

#stb_subscribe .stb_form_modal_title {
	font-size: 18px;
	padding: 30px;
	color: #333;
}

#stb_subscribe .stb_form_modal_text {
	font-size: 16px;
	line-height: 1.71;
	color: #333;
	margin: 0 30px;
	max-height: 200px;
	overflow-y: auto;
	white-space: initial !important;
}

#stb_subscribe .stb_form_modal_btn {
	padding: 30px;
	text-align: center;
}

#stb_subscribe .stb_form_modal_btn button {
	width: 100px;
	height: 40px;
	line-height: 40px;
	font-size: 14px;
	background: #e6e6eb;
	color: #333;
	cursor: pointer;
}

#stb_subscribe .stb_form_set_submit {
	text-align: center;
	padding-top: 80px;
}

#stb_subscribe .stb_form_submit_button {
	width: 240px;
	height: 58px;
	padding: 16px 20px;
	border-radius: 16px;
	font-size: 16px;
	font-weight: 700;
	background: #3d92f6;
	color: white;
}

#stb_subscribe .stb_form_submit_button.disabled {
	pointer-events: none;
	opacity: 0.5;
}

#stb_subscribe.theme-page .stb_form_submit_button {
	display: flex;
	width: 240px;
	padding: 16px 20px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	border-radius: 16px;
	background: #bad3f2;
}

#stb_subscribe .stb_form_result {
	display: none;
	padding: 16px 0 0 0;
	text-align: left;
}

#stb_subscribe .stb_form_result p {
	line-height: 1.4;
	font-size: 14px;
}

#stb_subscribe .stb_form_result.fail p {
	color: #f95a1f;
}

#stb_subscribe .stb_form_result.success p {
	color: #3e81f6;
}

#stb_subscribe_success {
	width: 100%;
	position: fixed;
	left: 0;

	display: none;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
	flex-direction: column;
	justify-content: center;
	height: 100%;
}

#stb_subscribe_success .img-container{
  height: 60%;
  min-height: 300px;
  max-height: 550px;
  position: relative;
  transform: translate(0px, -10%);
}

#stb_subscribe_success img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#stb_subscribe_success #close_btn{
  width: 120px;
  position: absolute;
  bottom:0;
  left:50%;
  transform: translate(-50%, 0);
  background-color: #4299ff;
  border-radius: 16px;
  padding: 16px 20px;
  color: white;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 600px) {
	#stb_subscribe {
		min-width: 320px;
		padding: 40px 20px;
	}

	#stb_subscribe * {
		font-size: 13px;
	}

  #stb_subscribe .mobile_view {
    display: block;
  }

	#stb_subscribe .stb_form_title {
		font-size: 16px;
		text-align: center;
	}

  #stb_subscribe .divider {
    margin: 20px 0;
  }
  
  #stb_subscribe .stb_notice_title {
    font-size: 14px;
    line-height: 23px;
    text-align: center;
    
  }
  
  #stb_subscribe .stb_notice {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
  }
  
  #stb_subscribe .stb_notice > li {
    font-size: 13px;
    line-height: 21px;
    margin-bottom: 2px;
  }
  
  #stb_subscribe .stb_notice > li::marker {
    font-size: 15px;
  }
  
  #stb_subscribe .stb_notice_description {
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    line-height: 21px;
  }

	#stb_subscribe .stb_form_input_group {
		display: block;
	}

	#stb_subscribe .stb_form_set {
		padding-bottom: 16px;
	}

	#stb_subscribe .stb_form_set select {
		background-size: 20px 20px;
		font-size: 13px;
	}

	#stb_subscribe .stb_form_set .stb_form_set_select {
		border: solid 1px #BBBBBB;
		padding: 14px 20px;
		height: 51px;
	}

	#stb_subscribe .stb_form_set .stb_form_set_input {
		font-size: 13px;
		height: 49px;
	}

	#stb_subscribe .stb_form_set textarea.stb_form_set_input {
		height: 128px;
	}

	#stb_subscribe .stb_form_policy {
		padding-bottom: 13px;
	}

	#stb_subscribe .stb_form_policy button.stb_form_modal_open_btn,
	#stb_subscribe .stb_form_policy .stb_checkbox_container label {
		color: #333333;
	}

	#stb_subscribe .stb_form_msg_error {
		font-size: 13px;
	}

	#stb_subscribe .stb_form_set_submit {
		padding-top: 40px;
	}

	#stb_subscribe .stb_form_submit_button {
		width: 100%;
		max-width: 320px;
	}

	#stb_subscribe .stb_form_result p {
		font-size: 13px;
	}
}
