/** Styling page e_order **/

#btn_submit_dealer_code > a {
	padding-top: 2px !important;
	padding-bottom: 2px !important;
}

::placeholder {
  color: rgb(186, 186, 186);
}

::-ms-input-placeholder { /* Edge 12 -18 */
  color: rgb(186, 186, 186);
}

#c_type_container,
#dealer_code_container,
#dealer_name_container,
#shipto_container,
#slm_container,
#dlvby_container,
#remark_container,
#order_container {
	display: none;
	max-height: 0px;
	opacity: 0;
	transition: max-height 0.3s, opacity 0.3s;
}

#c_type_container.show,
#dealer_code_container.show,
#dealer_name_container.show,
#shipto_container.show,
#slm_container.show,
#dlvby_container.show,
#remark_container.show,
#order_container.show {
	display: block;
	max-height: 99999px;
	opacity: 1;
}

form input:read-only:not([disabled]) {
	background-color: #F2F2F2;
	border: 1px solid #666666;
	border-radius: 2px;
	padding: 3px 8px;
}

form div,
.order-item-overlay div {
	gap: 5px !important;
}
.confirm-order-overlay div {
	gap: 5px !important;
	margin-top: 3px !important;
}
.confirm-order-overlay figure {
	margin-top: 0 !important;
}
form label,
.order-item-overlay label {
	font-size: 0.95rem;
	padding: 0 5px;
}

form input,
form select,
.order-item-overlay input,
.order-item-overlay select {
	font-family: var(--wp--preset--font-family--kanit);
	font-size: 0.9rem;
	font-weight: 300;
	margin: 5px 0 0 !important;
	box-sizing: border-box;
	padding: 2px 8px;
	width: 100%;
	/*background-color: #FFFFFF;*/
	transition: background 0.2s;
}

form input[type="radio"],
.order-item-overlay input[type="radio"] {
	width: auto !important;
}

/*form input:read-only {
	background-color: #EBEBEB !important;
	color: #636363 !important;
	border: 1px solid #636363;
}*/

form input[type="radio"],
form input[type="checkbox"],
.order-item-overlay input[type="radio"],
.order-item-overlay input[type="checkbox"] {
	display: inline-block;
	margin-top: 0;
	width: auto;
}

form input[type="file"] {
	width: auto;
	border: none;
	background: none !important;
}

.err {
	display: block;
	margin: 5px 0 0;
	padding: 2px 8px;
	font-size: 0.8rem;
	color: #DD3636;
}

.desc {
	display: block;
	font-weight: bold;
	margin: 5px 0 0;
	padding: 5px 8px;
	font-size: 0.9rem;
}
#attach_file_po_container,
#attach_file_map_container {
	margin: 0;
}
.btn_browse {
	display: inline-block;
	margin: 0;
	padding: 2px 8px;
	border-radius: 2px;
	/*border: 1px solid #FF9D00;*/
	background-color: #FFAA55;
	color: #333333;
	transition: background 0.2s, color 0.2s;
	cursor: pointer;
	caret-color: transparent;
}
.btn_browse:hover {
	background-color: #FF9D00;
	color: #FFFFFF;
}
.file_name,
.file_size {
	display: inline-block;
	margin: 0;
	padding: 2px 6px;
	font-size: 0.85rem;
	color: #0000FF;
}
.btn_remove_file {
	display: inline-block;
	margin: 0;
	padding: 2px;
	background-color: #FF5555;
	caret-color: transparent;
	cursor: pointer;
	width: 14px;
	height: 14px;
	vertical-align: middle;
	border-radius: 2px;
	color: #FFFFFF;	
}
.btn_remove_file::before {
	content: 'x';
	position: relative;
	display: inline-block;
	width: 100%;
	top: -18px;
	text-align: center;
	box-sizing: border-box;
	font-size: 0.95rem;
	font-weight: 500;
}
.btn_remove_file:hover {
	background-color: #FF0000;
}

#table_order_item,
#co_order_item_container {
	border: none !important;
}
#table_order_item + hr,
#co_order_item_container + hr {
	margin-top: 0 !important;
	border-top: 1px solid #666666;
}
#table_order_item thead,
#co_order_item_container thead {
	border-bottom: 2px solid #666666;
}
#table_order_item thead > tr > th:nth-child(1)  {
	width: 45% !important;
}
#table_order_item thead > tr > th:nth-child(2)  {
	width: 10% !important;
	text-align: right;
}
#table_order_item thead > tr > th:nth-child(3)  {
	width: 15% !important;
	text-align: right;
}
#table_order_item thead > tr > th:nth-child(4)  {
	width: 20% !important;
	text-align: right;
}
#table_order_item thead > tr > th:nth-child(5)  {
	width: 10% !important;
	text-align: center;
}
#table_order_item #table_order_item_tbody > tr,
#co_order_item_container #co_table_order_item_tbody > tr{
	background-color: #FFFFFF !important;
	vertical-align: top;
}
#table_order_item #table_order_item_tbody > tr > td {
	border-bottom: 1px solid #E8E8E8;
}
#table_order_item #table_order_item_tbody > tr:last-child > td {
	border-bottom: none;
}
#table_order_item #table_order_item_tbody > tr > td:nth-child(1)  {
	text-align: left;
}
#table_order_item #table_order_item_tbody > tr > td:nth-child(2)  {
	text-align: right;
}
#table_order_item #table_order_item_tbody > tr > td:nth-child(3)  {
	text-align: right;
}
#table_order_item #table_order_item_tbody > tr > td:nth-child(4)  {
	text-align: right;
}
#table_order_item #table_order_item_tbody > tr > td:nth-child(5)  {
	text-align: center;
}
#table_order_item #table_order_item_tbody span.cloud-detail {
	font-size: 0.95rem !important;
	color: #0B1FD6 !important;
}
#table_order_item #table_order_item_tbody span.badge-gray {
	display: inline-block;
	padding: 0 4px;
	font-size: 0.75rem !important;
	background-color: #D8D8D8;
	border-radius: 2px;
}
#co_order_item_container thead > tr > th:nth-child(1)  {
	width: 8% !important;
	text-align: center;
}
#co_order_item_container thead > tr > th:nth-child(2)  {
	width: 52% !important;
	text-align: center;
}
#co_order_item_container thead > tr > th:nth-child(3)  {
	width: 10% !important;
	text-align: right;
}
#co_order_item_container thead > tr > th:nth-child(4)  {
	width: 15% !important;
	text-align: right;
}
#co_order_item_container thead > tr > th:nth-child(5)  {
	width: 15% !important;
	text-align: right;
}
#co_order_item_container #co_table_order_item_tbody > tr:last-child > td {
	border-bottom: none;
}
#co_order_item_container #co_table_order_item_tbody > tr > td:nth-child(1)  {
	text-align: center;
}
#co_order_item_container #co_table_order_item_tbody > tr > td:nth-child(2)  {
	text-align: left;
}
#co_order_item_container #co_table_order_item_tbody > tr > td:nth-child(3)  {
	text-align: right;
}
#co_order_item_container #co_table_order_item_tbody > tr > td:nth-child(4)  {
	text-align: right;
}
#co_order_item_container #co_table_order_item_tbody > tr > td:nth-child(5)  {
	text-align: right;
}

#table_order_item #table_order_item_tbody .btn_edit_item,
#table_order_item #table_order_item_tbody .btn_remove_item {
	font-family: var(--wp--preset--font-family--kanit) !important;
	font-size: var(--wp--preset--font-size--micro) !important;
	padding: 2px 4px;
	transition: background 0.3s, color 0.3s;
	cursor: pointer;
}
#table_order_item #table_order_item_tbody {
	.btn_edit_item {
		background-color: #C5E8FC;
	}
	.btn_edit_item:hover {
		background-color: #A7DCFA;
		color: #166B9C !important;
	}
	.btn_remove_item {
		background-color: #FCC8C5;
		margin-top: 2px;
	}
	.btn_remove_item:hover {
		background-color: #FAB5B1;
		color: #8C2A24 !important;
	}
}
#table_order_item #table_order_item_tbody tr.picked_item_to_edit {
	background-color: #EBF8FF !important;
}
#table_order_item #table_order_item_tbody tr.picked_item_to_remove {
	/*background-color: #FFE0E0 !important;*/
	background: repeating-linear-gradient(-55deg, #ff7474, #ff7474 1px, rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 20px);
}

.order-item-overlay,
.confirm-order-overlay {
	position: fixed;
	display: none;
	margin: 0 !important;
	padding-top: 60px !important;
	top: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	overflow: auto;
	z-index: 9999;
}

input.stricted,
div.stricted {
	animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
	animation-iteration-count: infinite;
	background-color: #FFCFCF;
	border-radius: 3px;
  /*transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;*/
}

#cus_addr02, #cus_addr03, #cus_addr04, #cus_zipcod {
	background-color: revert !important;
}
.twitter-typeahead {
	margin-top: 0 !important;
}
.tt-menu {
	border-bottom-right-radius: 5px;
	border-bottom-left-radius: 5px;
	box-shadow: 3px 3px 0px 0 rgba(36, 36, 36, 0.2);
	margin-top: -5px !important;
}
.tt-suggestion {
	font-size: 0.8rem;
	background-color: #f6f6f6 !important;
}
.tt-cursor {
	background-color: #ffe8d1 !important;
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}