/**
 * Post Meta Box
 */
#wp-affiliate-linker.postbox {
	background: none;
	border: none;

	button.handlediv {
		display: none;
	}
	h2.hndle {
		display: none;
	}
	div.inside {
		margin: 0;
		padding: 0;

		div.panel {
			background: #fff;
			border-left: 1px solid #e5e5e5;
			border-right: 1px solid #e5e5e5;	
			border-bottom: 1px solid #e5e5e5;	
		}
	}
}

/**
 * TinyMCE / Quicktags Modal: Insert Affiliate Link
 */
form.wp-affiliate-linker-modal {
	/**
	 * Search
	 * - Force font size, as this can differ depending on whether the modal was called
	 * from TinyMCE or Thickbox.
	 */
	input[type=search] {
		width: 98%;
		margin: 0;
		padding: 3px 5px;
		font-size: 13px;
	}

	div.results {
		padding: 0 !important;

		/**
		 * Change how the spinner is hidden so it doesn't take up
		 * space in the view when rendered
		 */
		span.spinner {
			visibility: visible;
			display: none;
			margin-right: 50%;
			margin-bottom: 10px;
		}

		ul {
			list-style: none;
			margin: 0;
			padding: 0;
			
			li {
				float: left;
				width: 100%;
				margin: 0;
				padding: 10px 15px;
				cursor: pointer;
				-webkit-box-sizing: border-box;
  				-moz-box-sizing: border-box;
  				box-sizing: border-box;


				&:nth-child(even) {
					background: #fff;
				}

				&:hover {
					background: #ccc;
				}

				&.selected {
					background: #eaf2fa;
				}

				input[type=radio] {
					display: none;
				}

				span.title {
					display: inline-block;
					float: left;
					width: 50%;
					text-align: left;
				}

				span.url {
					display: inline-block;
					float: right;
					width: 50%;
					text-align: right;
				}
			}
		}
	}

	/**
	* Footer Buttons
	*/
	div.option.buttons {
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
	}
}