#cropTool {
	position: relative;
	margin: 0 auto;
}

DIV.PSCropTool {
	position: absolute;
	z-index: 8500;
	background-color: #434343;
	width: 600px; /* Default width to force good layout calcs */
	text-align: left;
	top: 0;
	left: 0;
	-moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.ui-dialog .cropbg {
	width: 100%;
	padding: 30px 0;
	background-color: #434343;
}

DIV.PSCropTool .canvas {
	position: relative;
	border: 1px solid #000;
}

DIV.PSCropTool DIV.cropui {
	z-index: 30;
}

DIV.PSCropTool .canvas .psctMask {
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgba(67,67,67,.40);
	background-image: url('/img/cart/crop-mask.png');
	background-image: -moz-linear-gradient(
		to bottom right,
		rgba(0, 0, 0, 0.25) 25%,
		transparent 25%,
		transparent 50%,
		rgba(0, 0, 0, 0.25) 50%,
		rgba(0, 0, 0, 0.25) 75%,
		transparent 75%,
		transparent);
	background-image: -webkit-linear-gradient(
		to bottom right,
		rgba(0, 0, 0, 0.25) 25%,
		transparent 25%,
		transparent 50%,
		rgba(0, 0, 0, 0.25) 50%,
		rgba(0, 0, 0, 0.25) 75%,
		transparent 75%,
		transparent);
	background-image: -ms-linear-gradient(
		to bottom right,
		rgba(0, 0, 0, 0.25) 25%,
		transparent 25%,
		transparent 50%,
		rgba(0, 0, 0, 0.25) 50%,
		rgba(0, 0, 0, 0.25) 75%,
		transparent 75%,
		transparent);
	background-image: linear-gradient(
		to bottom right,
		rgba(0, 0, 0, 0.25) 25%,
		transparent 25%,
		transparent 50%,
		rgba(0, 0, 0, 0.25) 50%,
		rgba(0, 0, 0, 0.25) 75%,
		transparent 75%);
	background-size: 4px 4px;
	background-position: fixed;
	width: 100%;
	height: 100%;
}

DIV.PSCropTool DIV.cropui DIV.cropBox {
	position: absolute;
	z-index: 50;
	border: 3px solid #e0360f;
	cursor: move;
	background-color: #fff;
	background-repeat: no-repeat;
}

DIV.PSCropTool DIV.cropui DIV.cropBox DIV.psctGuide {
	position: absolute;
	border: 2px solid rgba(255,255,255,.5);
	/*pointer-events: none;*/
}

DIV.PSCropTool DIV.cropui DIV.cropBox DIV.psctGuide.gvert {
	border-top: 0;
	border-bottom: 0;
}

DIV.PSCropTool DIV.cropui DIV.cropBox DIV.psctGuide.ghoriz {
	border-left: 0;
	border-right: 0;
}

DIV.PSCropTool DIV.cropui DIV.cropBox DIV.psctHandle {
	position: absolute;
	width: 60px;
	height: 60px;
}

DIV.PSCropTool DIV.cropui DIV.cropBox DIV.psctHandle .handle {
	position: absolute;
	width: 8px;
	height: 8px;
	background-color: #ef6545;
	border: 3px solid #e0360f;
	-webkit-border-radius: 8px;
	border-radius: 8px;
}

DIV.PSCropTool DIV.cropui DIV.cropBox DIV.psctHandle.active .handle {
	background-color: #fff;
}

DIV.PSCropTool DIV.cropui DIV.cropBox DIV.nw { top: -24px; left: -24px; }
DIV.PSCropTool DIV.cropui DIV.cropBox DIV.nw .handle { top: 14px; left: 14px; cursor: nw-resize; }
DIV.PSCropTool DIV.cropui DIV.cropBox DIV.ne { top: -24px; right: -24px;}
DIV.PSCropTool DIV.cropui DIV.cropBox DIV.ne .handle { top: 14px; right: 14px; cursor: ne-resize; }
DIV.PSCropTool DIV.cropui DIV.cropBox DIV.sw { bottom: -24px; left: -24px;}
DIV.PSCropTool DIV.cropui DIV.cropBox DIV.sw .handle { bottom: 14px; left: 14px; cursor: sw-resize; }
DIV.PSCropTool DIV.cropui DIV.cropBox DIV.se { bottom: -24px; right: -24px;}
DIV.PSCropTool DIV.cropui DIV.cropBox DIV.se .handle { bottom: 14px; right: 14px; cursor: se-resize; }

DIV.PSCropTool DIV.cropstatus {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 150;
	padding: 5px;
	font-weight: bold;
}

DIV.PSCropTool DIV.cropNotes {
	position: absolute;
	bottom: 36px;
	left: 0;
	z-index: 20;
	padding: 5px;
	font-weight: bold;
}

DIV.PSCropTool DIV.psctTool {
	position: absolute;
	bottom: 0;
	width: 100%; /* hi safari 2 */
	z-index: 50;
	color: #fff !important;
	background-color: #666;
}

DIV.PSCropTool DIV.psctTool DIV.psctToolOpt {
	padding: 8px;
	border: 1px solid #666;
	float: left;
}

DIV.PSCropTool DIV.psctTool INPUT.button {
	float: right;
	width: 6em;
	margin: 12px 5px 0 0;
	text-align: center;
	background-color: #fff;
}

/* Crop tool design tweaks */
.cropToolRadio .ui-button, .rotateCrop .ui-button {
	border-color: #acacac;
}

.cropToolRadio .ui-state-default, .rotateCrop .ui-state-default {
	background: #e6e7e8;
	color: #636363;
	-webkit-box-shadow: inset 0px 15px 18px -4px #fff, 0 0 0 1px #c0c0c0;
	box-shadow: inset 0px 15px 18px -4px #fff, 0 0 0 1px #c0c0c0;
}

.cropToolRadio .ui-state-active, .rotateCrop .ui-state-active {
	background: #ccc;
	color: #000;
	-webkit-box-shadow: inset 0px 7px 18px -4px #777, 0 0 0 1px #c0c0c0;
	box-shadow: inset 0px 7px 18px -4px #777, 0 0 0 1px #c0c0c0;
}

#dialog-crop .cropToolRadio .ui-button-text {
	min-width: 40px;
}

.cropWarningDialog .ui-dialog-titlebar-close {
  display: none;
}

#psCart DIV.cropToolRadio {
	line-height: 20px;
	font-size: 11px;
}

#psCart .ui-button-text,
#dialog-crop .ui-button-text {
	font-size: 12px;
	padding: 6px 8px 4px;
}

#dialog-review p,
#dialog-crop p {
	font-size: 14px;
}

#dialog-crop .controls,
#dialog-crop .size {
	text-align: center;
}

#dialog-crop .controls div {
	display: inline-block;
}

#dialog-crop .rotateCrop {
	padding-left: 12px;
	margin-left: 5px;
	border-left: 1px solid #eee;
}

#dialog-crop .note {
	font-size: 13px;
}

#dialog-review .psDialogFooter,
#dialog-crop .psDialogFooter {
	border-top: 1px solid #eee;
	margin-top: 1.2em;
}

#dialog-review .psDialogFooter button,
#dialog-crop .psDialogFooter button {
	border: 0;
	border-radius: 4px;
	color: #fff;
	font-size: 1.2em;
	line-height: 1.75em;
	padding: .3em 1em .2em 1em;
	text-shadow: 0 1px 1px rgba(0,0,0,.5);
	background-color: #808080;
	-moz-background-image: linear-gradient(to bottom,
		rgba(255, 255, 255, .2),
		rgba(255, 255, 255, .2) 50%,
		transparent 51%,
		transparent
	);
	-webkit-background-image: linear-gradient(to bottom,
		rgba(255, 255, 255, .2),
		rgba(255, 255, 255, .2) 50%,
		transparent 51%,
		transparent
	);
	background-image: linear-gradient(to bottom,
		rgba(255, 255, 255, .2),
		rgba(255, 255, 255, .2) 50%,
		transparent 51%,
		transparent
	);
	margin-left: .5em;
	box-shadow: inset 0 -2px 3px 1px rgba(255,255,255,.25);
	cursor: pointer;
	font-family: Helvetica, Arial, sans-serif;
}

#dialog-review .psDialogFooter button:hover,
#dialog-crop .psDialogFooter button:hover {
	background-color: #939393;
}

#dialog-review .psDialogFooter button.primary,
#dialog-crop .psDialogFooter button.primary {
	background-color: #30a6db;
}

#dialog-review .psDialogFooter button.primary:hover,
#dialog-crop .psDialogFooter button.primary:hover {
	background-color: #1bb1e5;
}

#dialog-review .image {
	margin: 0 auto;
	text-align: center;
	position: relative;
}

#dialog-review .image:after {
	content: '\005b';
	color: #fd9b27;
	font-family: 'config-set';
	display: block;
	position: absolute;
	font-weight: bold;
	width: 12px;
	height: 25px;
	left: 50%;
	margin-left: 200px;
	top: 163px;
	font-size: 36px;
	line-height: normal;
	-ms-transform: rotate(88deg);
	-webkit-transform: rotate(88deg);
	transform: rotate(88deg);
}

#dialog-crop p.note {
	margin-bottom: 0;
	font-style: italic;
}

#dialog-crop .size {
	font-size: 12px;
	color: #737373;
}

.cropWarningMsg {
	display: none;
	float: left;
	position: relative;
}

.cropWarningMsg p,
#dialog-crop .message {
	color: #fd9b27 !important;
	font-weight: bold;
	font-style: italic;
}

#dialog-crop .message {
	display: none;
	margin-bottom: 0;
}

#dialog-crop button + p {
	margin-top: 0;
}

.cartButton.backToImages {
	float: left;
}

.cropWarningMsg p {
	border: 1px solid #fd9b27;
	-webkit-border-radius: 10px;
	border-radius: 10px;
	padding: 0.5em 1em;
	display: inline-block;
}


.cropWarningMsg.review p:first-child {
	margin-top: 0 !important;
}

.cropWarningMsg.review {
	margin: 0 0 0 152px;
}

a.cartButton + .cropWarningMsg.review {
	margin: 0 0 0 20px;
}

.cropWarningMsg.review p {
	padding-left: 34px;
}

.cropWarningMsg.review:after {
	content: '\005b';
	color: #fd9b27;
	font-family: 'config-set';
	display: block;
	position: absolute;
	font-weight: bold;
	width: 12px;
	height: 25px;
	left: 8px;
	top: 5px;
	font-size: 20px;
	line-height: normal;
}

.cropWarningMsg.proceed {
	width: 220px;
	float: right;
}

.cropWarningMsg.proceed p {
	padding: 1em;
}

#psCart .cropTool .warning {
	display: none;
	position: absolute;
	bottom: 0;
	right: 0;
	width: 0;
	height: 0;
	border-bottom: 15px solid #fd9b27;
	border-right: 15px solid #fd9b27;
	border-top: 15px solid transparent;
	border-left: 15px solid transparent;
}

#psCart .cropTool .warning:after {
	content: '\003a';
	font-family: 'config-set';
	display: block;
	position: absolute;
	color: #fff;
	font-weight: bold;
	width: 12px;
	height: 25px;
	bottom: -24px;
	right: -14px;
	font-size: 12px;
	line-height: normal;
}

.cropToolDialog {
	margin: 0px !important;
}

@media screen and (min-width: 320px) and (max-width: 480px) {
	#dialog-review .image img {
		float: none;
		margin: 0 auto;
		width: 100%;
	}

	#dialog-review .psDialogFooter button, #dialog-crop .psDialogFooter button {
		width: 100%;
		margin: .5rem 0;
	}

	#dialog-review .image:after {
		display: none;
	}

	#psCart DIV.cropToolRadio {
		width: 100%;
		margin: 0 auto;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-pack: center;
		-ms-flex-pack: center;
		justify-content: center;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
	}
}