/* ------------ Stamp design widget styles ------------ */
#stamp_widget {
	padding: 20px 20px 30px 20px;
	margin: 0 0 10px;
	position: relative;
	border: 1px solid #CCC;
	border-radius: 8px;
	box-shadow: inset 1px 1px 3px rgba(150, 150, 150, 0.1), 1px 1px 5px rgba(30, 30, 30, 0.15);	
}
#stamp_widget .title {
	display: block;
	font-size: 2em;
	margin: 0.67em 8px 0.67em 0;
	font-weight: bold;	
	color: #C0150B;
}
#stamp_widget > p {
	margin: 0 0 20px 3px;
}
#stamp_widget h2 {
	color: #C0150B;
}
#stamp_widget #arrows {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 125px;
	height: 50px;
	padding: 8px 60px 8px 8px;
	background: url(../images/stamp_widget/arrows.png) 139px center no-repeat #EFEFEF;
	border-radius: 4px;
	font-size: 10px;
	line-height: 16px;
	color: #666;
}
.touch_device #stamp_widget #arrows {
	display: none !important;
}
#stamp_widget #mobile_arrows {
	display: none;
	position: absolute;
	top: 15px;
	right: 15px;
	width: 60px;
	height: 59px;	
	background: url(../images/stamp_widget/arrows_mobile.png) center center no-repeat transparent;
}
#stamp_widget #mobile_arrows a {
	display: block;
	width: 25px;
	height: 25px;
	position: absolute;
	text-indent: -9999px;
}
#stamp_widget #mobile_arrows .top {
	top: 0; 
	left: 17px;
	width: 26px;
	height: 16px;
}
#stamp_widget #mobile_arrows .bottom {
	bottom: 0; 
	left: 17px;
	width: 26px;
	height: 16px;
}
#stamp_widget #mobile_arrows .left {
	top: 17px; 
	left: 0;
	width: 17px;
	height: 26px;
}
#stamp_widget #mobile_arrows .right {
	top: 17px; 
	right: 0;
	width: 17px;
	height: 26px;
}
#stamp_widget .widget_form {
	position: relative;
	margin: 0 0 0;
}
#stamp_widget #warning_container {
	text-align: center;
}
#stamp_widget #overlap_warning {
	display: none;
	width: 400px;
	position: absolute;
	bottom: -31px;
	left: 50%;
	padding: 3px 0;
	margin: 10px 0 0 -200px;
	background-color: #c1150b;
	border-radius: 3px;
	color: #fff;
	font-size: 14px;
	font-weight: bold;
	text-align: center;
}
#stamp_widget #controls {
	clear: both;
}
#stamp_widget .add_to_cart_in_design {
	position: absolute;
	bottom: -15px;
	right: 128px;
	z-index: 10;
}
#stamp_widget #design_area {
	position: relative;
}
#stamp_widget #unfocuser {
	position: absolute;
	left: -9999px;
}
#stamp_widget #stamp_area {
	position: relative;
	margin: 40px auto;
	z-index: 10;
	overflow: hidden;
	border: 1px solid #1F4B5A;
	background-repeat: repeat;
	background-color: transparent;
	background-position: left top;
}
#stamp_widget #grid {
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: 5;
	background-repeat: repeat;
	background-position: 0 0;
	background-color: transparent;
}
#stamp_widget #grid.grid_10 {
	background-image: url(../images/stamp_widget/grid_10.gif);
}
#stamp_widget #grid.grid_9 {
	background-image: url(../images/stamp_widget/grid_9.gif);
}
#stamp_widget #grid.grid_8 {
	background-image: url(../images/stamp_widget/grid_8.gif);
}
#stamp_widget #grid.grid_7 {
	background-image: url(../images/stamp_widget/grid_7.gif);
}
#stamp_widget #grid.grid_6 {
	background-image: url(../images/stamp_widget/grid_6.gif);
}
#stamp_widget #grid.grid_5 {
	background-image: url(../images/stamp_widget/grid_5.gif);
}
#stamp_widget #grid.grid_4 {
	background-image: url(../images/stamp_widget/grid_4.gif);
}
#stamp_widget #grid.grid_3 {
	background-image: url(../images/stamp_widget/grid_3.gif);
}
#stamp_widget #frame {
	display: none;
}
#stamp_widget #hole {
	text-align: center;
	font-size: 16px;
	text-transform: uppercase;
	font-weight: bold;
	color: #1F4B5A;
	border: 1px solid #1F4B5A;
	background-color: #eee;
}
#stamp_widget #hole span {
	text-align: center;
	padding: 0 !important;	
}

/* ------------ Stamp objects and areas ------------ */
#stamp_widget #objects div {
	z-index: 20;
}
#stamp_widget #objects_boxes div {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 14;
	background: #000;
	opacity: 0.15;
}
#stamp_widget #objects_boxes div.active_box {
	border: 1px solid #ff0000;
}
#stamp_widget.singlecolor_design .selected_element {
	background-color: rgba(220,220,220);
	background-color: rgba(0,0,0,.15);
}
#stamp_widget.singlecolor_design #button_boxes{
	display: none;
}

/* ------------ Control buttons ------------ */
#stamp_widget .control_buttons {
	float: left;
	width: 135px;
	padding: 10px;
	margin: 0 0 10px;
	background-color: #f0f0f0;
	border-radius: 7px;
}
#stamp_widget .control_buttons ul {
	list-style: none outside;
}
#stamp_widget .control_buttons ul li {
	padding: 4px 0;
}
#stamp_widget .control_buttons ul li a {
	display: block;
}
#stamp_widget .control_buttons ul li .button {
	padding-right: 30px;
	background: url(../images/stamp_widget/sprites_controls.png) 0 0 no-repeat #204C59;
}
#stamp_widget .control_buttons ul li .button.active {
	background: url(../images/stamp_widget/sprites_controls.png) 0 0 no-repeat #C0150B;
	box-shadow: inset 1px 1px 3px rgba(0,0,0, 0.4);
}
#stamp_widget .control_buttons a#button_text {
	background-position: right 3px;
}
#stamp_widget .control_buttons a#button_line {
	background-position: right -18px;
}
#stamp_widget .control_buttons a#button_image {
	background-position: right -39px;
}
#stamp_widget .control_buttons a#button_frame {
	background-position: right -66px;
}
#stamp_widget .control_buttons a#button_frame.circle_frame {
	background-position: right -137px;
}
#stamp_widget .control_buttons a#button_grid {
	background-position: right -91px;
}
#stamp_widget .control_buttons a#button_boxes {
	background-position: right -117px;
}
#stamp_widget #submit_preview {
	width: 120px;
	height: 23px;
	margin: 10px 0 4px 5px;
	padding: 0 0 0 33px;
	font-size: 10px;
	border: none;
	background: url(../images/pdf_icon.png) 10px 1px no-repeat transparent;
	cursor: pointer;
}
.touch_device #stamp_widget #submit_preview {
	display: none;
}

/* ------------ Multicolor switch ------------ */
#multicolor_switch .singlecolor_select {
	display: none;
}

/* ------------ Color list ------------ */
#stamp_widget .color_select {
	height: 50px;
}
#stamp_widget .color_select input {
	width: 15px !important;
	height: 15px !important;
	border: 2px solid #ccc;
	border-radius: 3px;
}
#stamp_widget .color_select input:hover {
	cursor: pointer;
}
#stamp_widget .color_select td {
	position: relative;
}
#stamp_widget .color_list {
	display: none;
	position: absolute;
	left: 0;
	top: 17px;
	list-style: none outside;
	overflow: auto;
}
#stamp_widget .color_list li {
	display: block;
	width: 15px;
	height: 15px;
	float: left;
}
#stamp_widget .color_list li:hover {
	cursor: pointer;
}
#stamp_widget div.fontSelector ul.fonts {
	z-index: 100;
}

/* ------------ Stamp forms ------------ */
.stamp_form {
	display: none;
	width: 100%;
	float: left;
	padding: 20px;
	margin: 0 0 20px 10px;
	background-color: #f0f0f0;
	border-radius: 7px;
}
.stamp_form h2 {
	color: #204c59;
}
.stamp_form .button {
	margin: 0 5px 0 0;
}
.front .stamp_form td label {
	display: block;
}

/* ------------ Text form ------------ */
#text_form {
	max-width: 710px;
	height: auto;
	overflow: visible;
}
#text_form #text {
	width: 200px;
	height: 50px;
	padding: 5px;
}
#text_form #button_delete_text {
	display: none;
}
#text_form table td {
	padding: 0 5px 5px 0;
}
#text_form .text_input {
	float: left;
	display: block;
	width: 280px;
}
#text_form .font-styling {
	float: right;
	width: 420px;
	overflow: visible;
}
#text_form .font-styling .font_styling_col {
	float: left;
}
#text_form .font-styling .font_styling_col.first_col {
	margin-right: 13px;
}
#text_form .font-styling .text_alginment {
	display: none;
}
#text_form .font-styling .label {
	width: 88px;	
}
#text_form .checkboxes input[type=checkbox],
#text_form .checkboxes input[type=radio] {
	display: none;
}
#text_form .checkboxes label {
	float: left;
	display: block;
	width: 22px;
	height: 20px;
	margin: 0 3px 0 0;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: url("../images/stamp_widget/sprites_buttons_bckg.png") 0 -1px repeat-x;
}
#text_form .checkboxes label:hover {
	background-position: 0 -22px;
	cursor: pointer;
}
#text_form .checkboxes label.checked {
	background-position: 0 -45px;
}
#text_form .checkboxes label span {
	display: block;
	width: 100%;
	height: 100%;
}
#text_form .checkboxes #label_bold span {
	background: url("../images/stamp_widget/sprites_buttons.png") 2px center no-repeat;
}
#text_form .checkboxes #label_italic span {
	background: url("../images/stamp_widget/sprites_buttons.png") -17px center no-repeat;
}
#text_form .checkboxes #label_underline span {
	background: url("../images/stamp_widget/sprites_buttons.png") -33px center no-repeat;
}
#text_form .checkboxes #label_left span {
	background: url("../images/stamp_widget/sprites_buttons.png") -73px center no-repeat;
}
#text_form .checkboxes #label_center span {
	background: url("../images/stamp_widget/sprites_buttons.png") -53px center no-repeat;
}
#text_form .checkboxes #label_right span {
	background: url("../images/stamp_widget/sprites_buttons.png") -92px center no-repeat;
}

/* ------------ Line form ------------ */
#line_form {
	display: none;
	max-width: 370px;
}
#line_form table td {
	padding: 0 8px 5px 0;
}
#line_form input[type=text],
#line_form select {
	width: 100px;
}

/* ------------ Image form ------------ */
#image_form {
	display: none;
	max-width: 410px;
}
#image_form table td {
	padding: 0 8px 5px 0;
}
#image_form input#image_size {
	width: 30px;
	padding-left: 3px;
}

/* ------------ Frame form ------------ */
#frame_form {
	display: none;
	max-width: 370px;
}

/* ------------ Stamp templates ------------ */
#stamp_templates {
	padding: 5px;
	margin: 0 0 10px;
	position: relative;
	overflow: auto;
	border: 1px solid #CCC;
	border-radius: 8px;
	box-shadow: inset 1px 1px 3px rgba(150, 150, 150, 0.1), 1px 1px 5px rgba(30, 30, 30, 0.15);
}
#stamp_templates .title {
	display: block;
	font-size: 2em;
	line-height: 1.2em;
	margin: 1.1em 8px 0.3em 15px;
	font-weight: bold;
	color: #C0150B;
}
#stamp_templates .note {
	float: right;
	margin: 15px 15px 0 0; 
	padding: 8px;
	border-radius: 4px;
	font-size: 10px;
	line-height: 16px;
	color: #666;
	background-color: #efefef;
}
#stamp_templates .template_list {
	display: block;
	overflow: auto;
	clear: both;
	list-style: none outside;
}
#stamp_templates .template_design {
	display: none !important;	
}
#stamp_templates li.stamp_template {
	float: left;
	display: block;
	/*width: 30%;*/
	margin: 1.5%;
	box-shadow: 0 0 5px rgba(30, 30, 30, 0.15);
	transition: all 0.3s;
}
#stamp_templates li.stamp_template:hover {
	box-shadow: 0 0 5px rgba(30, 30, 30, 0.4);
}
#stamp_templates li.stamp_template a {
	display: block;	
	width: 100%;
	height: 100%;
	text-align: center;
}
#stamp_templates li.stamp_template a.active {
	box-shadow: 0 0 5px #C1150B;	
}
#stamp_templates li.stamp_template img {
	width: 150px;	/*fallback*/
	height: auto;
}
#stamp_widget img.template_preview {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 99;
	width: 100% !important;
	height: 100% !important;
}
.template_controls {
	display: none;
	position: absolute;
	right: 250px;
	top: 24px;
}
.template_controls a {
	display: block;	
	margin-bottom: 10px;	
	font-size: 16px;
	text-align: left;
	text-decoration: none;
}
.template_controls a i {
	padding: 0 4px;
	float: left;
	margin-right: 5px;
	border-radius: 4px;
	text-align: center;
	font-style: normal;
}
.template_controls #hide_template_preview {
	color: #C1150B;
}
.template_controls #hide_template_preview i {
	background: #C1150B;
	color: #fff;
}
.template_controls #use_template_preview {
	color: green;
}
.template_controls #use_template_preview i {
	background: green;
	color: #fff;
}