/*=== Attachments Common CSS ===*/
.attachments {
	
	.attachment {
		margin: 14px 0px 0px 20px;
		margin: 0 16px 20px 0;
		display: inline-block;
		vertical-align: top;
		width: 200px;
		width: 136px;
		
		&.fail {
			opacity: 0.3;
			
			.csstransitions & {
				.transition(opacity 1000ms ease 1s);
			}
		}

		.attachment_content {
			display: block;
			padding: 8px 8px 6px;
			margin-bottom: 6px;
			background: #f7f7f7;
			border-radius: 3px;
			box-shadow: 0px 1px 2px #cccccc;
		}

		.cancel {
			display: none;
			
			.upload& {
				background: url("images/sprites.png?%VERSION%") no-repeat -80px -240px;
				display: block;
				float: right;
				font-size: 0;
				height: 14px;
				width: 14px;
				overflow: hidden;
				margin-left: -14px;
				cursor: pointer;
			}
		}
		
		.spinner {
			background: url("images/wait.gif?%VERSION%") no-repeat left top;
			display:inline-block;
			width:20px;
			height:20px;
		}
		
		.progress {
			display:block;
			margin-bottom:-3px;
			height:3px;
			width:100%;
			
			span {
				display: block;
				height: 3px;
				background: #EF4A4A;
			}
		}

		.image {
			display: block;
			text-align: center;
			overflow: hidden;
			//background: #fff;
			min-height: 100px;
			border-bottom: 1px solid #dedede;
			
			img {
				vertical-align: middle;
				background: #fff;
			}
		}
		
		.text {
			color: #c7c7c7;
			text-transform: uppercase;
			font-size: 18pt;
			margin: 36px 0px 0px;
			display: inline-block;
		}

		.icon {
			vertical-align: top;
			margin: 15px 4px 0px 0px !important;
		}

		.download {
			cursor: pointer;
		}
		
		.title {
			.box-sizing;

			display: inline-block;
			max-width: 100%;
			padding: 0px 50px 0px 8px;
			word-wrap: break-word;
			font-weight: bold;
			max-height: 2.6em;
			overflow: hidden;
		}

		.ext {
			/*white-space: nowrap;*/
			display: inline-block;
		}

		.size {
			color: #929292;
			float: right;
			margin: 0px 8px -5em 0px;
		}
		
		.status_text {
			.transition(~"opacity 500ms ease 0s, visibility 1ms linear 0ms");
			display: block;
			overflow: hidden;
			white-space: normal;
			margin: 6px 0px -21px;
			height: 15px;
			opacity: 1;
			visibility: visible;
			
			&.hide {
				.transition(~"opacity 500ms ease 0s, visibility 1ms linear 600ms");
				opacity: 0;
				visibility: hidden;
			}
		}
		
		&.fail .status_text {
			color:#f00;
		}
		&.success .status_text {
			color:#308F00;
		}
		
		.buttons {
			.clearfix_helper();
			.transition(~"opacity 500ms ease 0s, visibility 1ms linear 0ms");

			border: 0px;
			padding: 0px;
			margin: 6px 0px 0px;
			display: block;
			text-align: left;
			opacity: 1;
			visibility: visible;
			
			&.hide {
				.transition(~"opacity 500ms ease 0s, visibility 1ms linear 600ms");
				opacity: 0;
				visibility: hidden;
			}

			.button {
				padding: 0px;
				font-weight: normal;
				font-size: 9pt;
				background: none;
				color: #4477BB;
				text-shadow: none;
				border: 0px;

				&.download {
					float: right;

					html.rtl & {
						float: left;
					}
				}
			}
		}
	}
}
/*=== END Attachments Common CSS ===*/