@keyframes hover-color {
  from {
    border-color: #c0c0c0; }
  to {
    border-color: #3e97eb; } }

.magic-radio,
.magic-checkbox {
  position: absolute;
  display: none; }

.magic-radio[disabled],
.magic-checkbox[disabled] {
  cursor: not-allowed; }

.magic-radio + label,
.magic-checkbox + label {
  position: relative;
  /*display: block;*/
  display: inline-block;
  /*padding-left: 30px;*/
  padding-left: 23px;
  margin-right:15px;
  cursor: pointer;
  line-height:1.2;
  vertical-align: middle; 
  font-family:'Spoqa Han Sans Neo',"ibm-kr", sans-serif;
  font-size:16px;
  }
	@media only screen and (max-width: 767px) and (min-width: 480px) { 
		.magic-radio + label,
		.magic-checkbox + label { font-size:14px; line-height:1.4; }
	}
	@media only screen and (max-width: 479px) and (min-width: 250px) { 
		.magic-radio + label,
		.magic-checkbox + label { font-size:14px; line-height:1.4; }
	}


  .magic-radio + label:hover:before,
  .magic-checkbox + label:hover:before {
    animation-duration: 0.4s;
    animation-fill-mode: both;
    animation-name: hover-color; }

  .magic-radio + label:before {
  	position: absolute;
    /* top: 0; */	
	top: 2px;
    left: 0;
    display: inline-block;
    /*width: 20px;
    height: 20px;*/
	width: 16px; 
	height: 16px; 
    content: '';
    border: 1px solid #c0c0c0;
  }
  
  .magic-checkbox + label:before {
    position: absolute;
    /*top: 0;*/
    left: 0;
    display: block;
    width: 20px;
    height: 20px;	 
    content: '';
    border: 1px solid #c0c0c0; }
	
  .magic-radio + label:after,
  .magic-checkbox + label:after {
    position: absolute;
    display: none;
    content: ''; }

.magic-radio[disabled] + label,
.magic-checkbox[disabled] + label {
  cursor: not-allowed;
  color: #e4e4e4; }
  .magic-radio[disabled] + label:hover, .magic-radio[disabled] + label:before, .magic-radio[disabled] + label:after,
  .magic-checkbox[disabled] + label:hover,
  .magic-checkbox[disabled] + label:before,
  .magic-checkbox[disabled] + label:after {
    cursor: not-allowed; }
  .magic-radio[disabled] + label:hover:before,
  .magic-checkbox[disabled] + label:hover:before {
    border: 1px solid #e4e4e4;
    animation-name: none; }
  .magic-radio[disabled] + label:before,
  .magic-checkbox[disabled] + label:before {
    border-color: #e4e4e4; }

.magic-radio:checked + label:before,
.magic-checkbox:checked + label:before {
  animation-name: none; }

.magic-radio:checked + label:after,
.magic-checkbox:checked + label:after {
  display: block; }

.magic-radio + label:before {
  border-radius: 50%; }

.magic-radio + label:after {
  /*
  top: 6px;
  left: 6px;
  */
  top:6px;
  left:4px;

  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3e97eb; }

.magic-radio:checked + label:before {
  border: 1px solid #3e97eb; }

.magic-radio:checked[disabled] + label:before {
  border: 1px solid #c9e2f9; }

.magic-radio:checked[disabled] + label:after {
  background: #c9e2f9; }

.magic-checkbox + label:before {
  border-radius: 3px; }

.magic-checkbox + label:after {
  /* top: 2px; */
  left: 7px;
  box-sizing: border-box;
  width: 6px;
  height: 12px;
  transform: rotate(45deg);
  border-width: 2px;
  border-style: solid;
  border-color: #fff;
  border-top: 0;
  border-left: 0; 
  }

.magic-checkbox:checked + label:before {border: #3e97eb; background: #3e97eb;}

.magic-checkbox:checked[disabled] + label:before {border: #c9e2f9; background: #c9e2f9;}




/* Ã¼Å©¹Ú½º °¡¿îµ¥ Á¤·ÄÀ» À§ÇØ ulk 2021. 03. 05. Ãß°¡  */
.magic-checkbox + label:before {bottom:10px !important; left:50%; margin-left:-10px; background-color:rgba(255,255,255,1); }
.magic-checkbox + label:after {bottom:14px !important; left:50%; margin-left:-3px; }

label.boxbox {width:100%; padding:20px 0 40px 0; text-align:center; vertical-align:top; border:1px solid #dbdbdb; background:#f6f6f6; border-radius:16px; -webkit-border-radius:16px; -moz-border-radius:16px; display:block; position:relative;}
label.boxbox h4 {font-size:16px; color:#000; text-align:center; vertical-align:top; display:block; font-family:'Spoqa Han Sans Neo',"ibm-kr", sans-serif;}
label.boxbox:hover {border:1px solid #4372b5; background:#f6f6f7;}
label.boxbox:hover h4 {color:#155da0;}
label.boxbox .money {font-family:'Spoqa Han Sans Neo',"ibm-kr", sans-serif; width:90%; margin:15px auto 0 auto; padding:9px; font-size:15px; color:#333; border:1px solid #ddd; background:#fff; border-radius:6px; -webkit-border-radius:6px; -moz-border-radius:6px;  text-align:center; display:block;}
label.boxbox .money span {font-size:15px;font-family:'Spoqa Han Sans Neo',"ibm-kr", sans-serif;}
.magic-checkbox:checked ~ #boxbox1 { /* ÀÏ¹Ý ÇüÁ¦ ¼±ÅÃ */ border:1px solid #4372b5; background:#f6f6f7;}
.magic-checkbox:checked ~ #boxbox1 h4 {color:#155da0; font-weight:400;}
/*ÃâÃ³: https://foodchain.tistory.com/128 */

	@media only screen and (max-width: 767px) and (min-width: 480px) { 
		label.boxbox h4 {font-size:15px;}
	}
	@media only screen and (max-width: 479px) and (min-width: 250px) { 
		label.boxbox h4 {font-size:14px;}
		label.boxbox .money {width: 96%; margin: 15px auto 0 auto; padding: 9px 1%; font-size: 14px;}
	}
