/**
 * Debug
 */
#dealit-sr-debug {
  padding: 0 0 0;
  font-size: 1em;
  margin-bottom: 2em;
}

#dealit-sr-debug #dealit-sr-debug-header {
  background: #3d9cd2;
  color: #ffffff;
  padding: 10px 20px;
  cursor: pointer;
  position: relative;
}

#dealit-sr-debug #dealit-sr-debug-header .dealit-sr-debug-toggle {
  background-image: url("../img/arrow.svg");
  background-repeat: no-repeat;
  background-position: right center;
  width: 42px;
  height: 100%;
  right: 0;
  top: 0;
  background-size: 42px;
  position: absolute;
  transition: .3s all;
}

#dealit-sr-debug.closed .dealit-sr-debug-toggle {
  -webkit-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

#dealit-sr-debug #dealit-sr-debug-contents {
  padding: 20px 20px 0;
  display: none;
  border: 1px solid #dee2e6;
  border-width: 0 1px 1px;
}

#dealit-sr-debug #dealit-sr-debug-contents .dealit-sr-debug-tip {
  color: #1864ab;
  background: url("../img/tip2.svg") no-repeat left 5px;
  background-size: 16px 16px;
  padding-left: 24px;
}

#dealit-sr-debug #dealit-sr-debug-contents h3 {
  margin: 10px 0 20px;
  font-weight: bold;
  font-size: 1.2em;
}

#dealit-sr-debug #dealit-sr-debug-contents h3.ruleset-title {
  font-size: 1em;
}

#dealit-sr-debug #dealit-sr-debug-contents h3.ruleset-title a {
  font-weight: bold;
}

#dealit-sr-debug .dealit-sr-debug-result-label {
  padding: 5px;
  border-radius: 3px;
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 12px;
}

#dealit-sr-debug .dealit-sr-debug-result-label.dealit-sr-debug-result-label-pass {
  background: #2b8a3e;
}

#dealit-sr-debug .dealit-sr-debug-result-label.dealit-sr-debug-result-label-fail {
  background: #c92a2a;
}

#dealit-sr-debug .dealit-sr-debug-result-label.dealit-sr-debug-result-label-skip {
  background: #495057;
}

#dealit-sr-debug table.dealit-sr-debug-table {
  border: 1px solid #dee2e6;
  margin: 0 0 20px;
}

#dealit-sr-debug table.dealit-sr-debug-table.dealit-sr-debug-table-fixed {
  table-layout: fixed;
}

#dealit-sr-debug table.dealit-sr-debug-table td, #dealit-sr-debug table.dealit-sr-debug-table th {
  padding: 5px 10px;
  text-align: left;
}

#dealit-sr-debug table.dealit-sr-debug-table td.align-right,
#dealit-sr-debug table.dealit-sr-debug-table th.align-right {
  text-align: right;
}

#dealit-sr-debug .dealit-sr-debug-alert {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: url("../img/alert-2.svg") no-repeat top left;
  background-size: 14px 14px;
  vertical-align: -3px;
  margin-right: 5px;
}

/**
 * Shipping notices
 */
#dealit-sr-notices,
.dealit-sr-shipping-notices {
  margin-top: 1em;
}

#dealit-sr-notices .dealit-sr-notice.dealit-sr-notice-style-success, #dealit-sr-notices .dealit-sr-notice.dealit-sr-notice-style-warning, #dealit-sr-notices .dealit-sr-notice.dealit-sr-notice-style-error,
.dealit-sr-shipping-notices .dealit-sr-notice.dealit-sr-notice-style-success,
.dealit-sr-shipping-notices .dealit-sr-notice.dealit-sr-notice-style-warning,
.dealit-sr-shipping-notices .dealit-sr-notice.dealit-sr-notice-style-error {
  margin-bottom: 0.5rem;
  padding: 10px 10px 10px 36px;
  border: 1px solid #000000;
  background-repeat: no-repeat;
  background-position: 0.5rem center;
  font-size: 0.875em;
  font-weight: 400;
  color: #2f2f2f;
  border-radius: 4px;
  line-height: 19px;
}

#dealit-sr-notices .dealit-sr-notice.dealit-sr-notice-style-success:last-child, #dealit-sr-notices .dealit-sr-notice.dealit-sr-notice-style-warning:last-child, #dealit-sr-notices .dealit-sr-notice.dealit-sr-notice-style-error:last-child,
.dealit-sr-shipping-notices .dealit-sr-notice.dealit-sr-notice-style-success:last-child,
.dealit-sr-shipping-notices .dealit-sr-notice.dealit-sr-notice-style-warning:last-child,
.dealit-sr-shipping-notices .dealit-sr-notice.dealit-sr-notice-style-error:last-child {
  margin-bottom: 0;
}

#dealit-sr-notices .dealit-sr-notice.dealit-sr-notice-style-success.dealit-sr-notice-style-warning, #dealit-sr-notices .dealit-sr-notice.dealit-sr-notice-style-warning.dealit-sr-notice-style-warning, #dealit-sr-notices .dealit-sr-notice.dealit-sr-notice-style-error.dealit-sr-notice-style-warning,
.dealit-sr-shipping-notices .dealit-sr-notice.dealit-sr-notice-style-success.dealit-sr-notice-style-warning,
.dealit-sr-shipping-notices .dealit-sr-notice.dealit-sr-notice-style-warning.dealit-sr-notice-style-warning,
.dealit-sr-shipping-notices .dealit-sr-notice.dealit-sr-notice-style-error.dealit-sr-notice-style-warning {
  background-image: url("../img/notices/warning.svg");
  background-size: 20px 20px;
  background-color: #fffbf4;
  border-color: #f0b849;
  color: #e67700;
}

#dealit-sr-notices .dealit-sr-notice.dealit-sr-notice-style-success.dealit-sr-notice-style-success, #dealit-sr-notices .dealit-sr-notice.dealit-sr-notice-style-warning.dealit-sr-notice-style-success, #dealit-sr-notices .dealit-sr-notice.dealit-sr-notice-style-error.dealit-sr-notice-style-success,
.dealit-sr-shipping-notices .dealit-sr-notice.dealit-sr-notice-style-success.dealit-sr-notice-style-success,
.dealit-sr-shipping-notices .dealit-sr-notice.dealit-sr-notice-style-warning.dealit-sr-notice-style-success,
.dealit-sr-shipping-notices .dealit-sr-notice.dealit-sr-notice-style-error.dealit-sr-notice-style-success {
  background-image: url("../img/notices/yes-alt.svg");
  background-size: 20px 20px;
  background-color: #f4fff4;
  border-color: #66C449;
  color: #2b8a3e;
}

#dealit-sr-notices .dealit-sr-notice.dealit-sr-notice-style-success.dealit-sr-notice-style-error, #dealit-sr-notices .dealit-sr-notice.dealit-sr-notice-style-warning.dealit-sr-notice-style-error, #dealit-sr-notices .dealit-sr-notice.dealit-sr-notice-style-error.dealit-sr-notice-style-error,
.dealit-sr-shipping-notices .dealit-sr-notice.dealit-sr-notice-style-success.dealit-sr-notice-style-error,
.dealit-sr-shipping-notices .dealit-sr-notice.dealit-sr-notice-style-warning.dealit-sr-notice-style-error,
.dealit-sr-shipping-notices .dealit-sr-notice.dealit-sr-notice-style-error.dealit-sr-notice-style-error {
  background-image: url("../img/notices/dismiss.svg");
  background-size: 20px 20px;
  background-color: #FFF4F4;
  border-color: #F06B49;
  color: #c92a2a;
}

.dealit-sr-shipping-notices-blocks > div {
  margin-bottom: 0.5rem;
}

.dealit-sr-shipping-notices-blocks > div .dealit-sr-notice {
  margin-bottom: 0;
}

.dealit-sr-shipping-notices-blocks > div:last-child {
  margin-bottom: 0;
}

/**
 * Dealit additions: notices in the cart / checkout totals table and on the product page
 */
tr.dealit-sr-notices-row td {
  padding-top: 0;
  text-align: left;
}

tr.dealit-sr-notices-row .dealit-sr-shipping-notices {
  margin-top: 0;
}

.dealit-sr-shipping-notices .dealit-sr-notice.dealit-sr-notice-style-blank {
  margin-bottom: 0.5rem;
  font-size: 0.875em;
  line-height: 1.4;
}

.dealit-sr-product-notices {
  margin: 0 0 1em;
}
