/**
 *
 * Subscritpion
 *
 * @author Presta-Module.com <support@presta-module.com>
 * @copyright Presta-Module
 *
 *           ____     __  __
 *          |  _ \   |  \/  |
 *          | |_) |  | |\/| |
 *          |  __/   | |  | |
 *          |_|      |_|  |_|
 *
 ****/


/************************************************************************
                        Usefull
*************************************************************************/
.pm_hide {
  display: none !important;
}

i.warning {
  color: orange;
}

/************************************************************************
                        Product sheet
*************************************************************************/
#pm_subscription_display_right_column_product {
  padding: 0px 15px 7px;
}
.bs-callout {
  -moz-border-bottom-colors: none;
  -moz-border-left-colors: none;
  -moz-border-right-colors: none;
  -moz-border-top-colors: none;
  border-color: #eee;
  border-image: none;
  border-radius: 3px;
  border-style: solid;
  border-width: 1px 1px 1px 5px;
  margin: 20px 0;
  padding: 20px;
}
.bs-callout h4 {
  margin-bottom: 5px;
  margin-top: 0;
}
.bs-callout .table {
  margin-bottom: 0;
}
.bs-callout p:last-child {
  margin-bottom: 0;
}
.bs-callout-success {
    border-left-color: #5cb85c;
}
.bs-callout-success h4 {
    color: #5cb85c;
}
.bs-callout-danger {
    border-left-color: #ce4844;
}
.bs-callout-danger h4 {
    color: #ce4844;
}
.bs-callout-warning {
    border-left-color: #aa6708;
}
.bs-callout-warning h4 {
    color: #aa6708;
}
.bs-callout-info {
    border-left-color: #1b809e;
}
.bs-callout-info h4 {
    color: #1b809e;
}

.pm_subscription_display_product_buttons a[type="button"]::before {
  border: 1px solid #4ab450;
  border-radius: 5px 0 0 5px;
  bottom: 0;
  color: #fff;
  content: "";
  font-family: "FontAwesome";
  font-size: 25px;
  left: 0;
  line-height: 47px;
  position: absolute;
  text-align: center;
  text-shadow: 0 1px #1d541d;
  top: 0;
  width: 51px;
  z-index: 2;
}
.pm_subscription_display_product_buttons.member_card a[type="button"]::before {
  content: "";
}
.pm_subscription_display_product_buttons a[type="button"].disabled::before {
  border: 1px solid #7e7e7e;  /* #4ab450 */
  text-shadow: 0 1px #393939; /* #1d541d */
}

.pm_subscription_display_product_buttons a[type="button"]::after {
  background-color: #36943e;
  bottom: 0;
  content: "";
  left: 51px;
  position: absolute;
  top: 0;
  width: 1px;
  z-index: 2;
}
.pm_subscription_display_product_buttons a[type="button"].disabled::after {
  background-color: #6a6a6a;
  border: 1px solid #6a6a6a; /* #36943e */
}

@media (max-width: 991px) {
  .pm_subscription_display_product_buttons a[type="button"]::before,
  .pm_subscription_display_product_buttons a[type="button"]::after {
      display: none;
  }
}

.pm_subscription_display_product_buttons_on_list {
  margin: 0 6px 10px 6px;
}

.pm_subscription_display_product_buttons_on_list button,
.pm_subscription_display_product_buttons a[type="button"] {
  background-image: linear-gradient(#4ab450, #36943e);
  border-color: #36943e #36943e #1d541d;
  border-radius: 5px;
  border-style: solid;
  border-width: 1px;
  display: block;
  padding: 0;
  position: relative;
  margin: 10px 0;
  cursor: pointer;
}
.pm_subscription_display_product_buttons_on_list button.disabled,
.pm_subscription_display_product_buttons a[type="button"].disabled {
  background-image: linear-gradient(#7e7e7e, #6a6a6a); /* #4ab450, #36943e */
  border-color: #6a6a6a #6a6a6a #393939; /* #36943e #36943e #1d541d */
}
.pm_subscription_display_product_buttons_on_list a {
  border-radius: 0;
}

.pm_subscription_display_product_buttons_on_list button:hover,
.pm_subscription_display_product_buttons a[type="button"]:hover {
  background-image: linear-gradient(#36943e, #4ab450);
}
.pm_subscription_display_product_buttons_on_list button.disabled:hover,
.pm_subscription_display_product_buttons a[type="button"].disabled:hover {
  background-image: linear-gradient(#6a6a6a, #7e7e7e); /* #36943e, #4ab450 */
}

.pm_subscription_display_product_buttons_on_list button span,
.pm_subscription_display_product_buttons a[type="button"] span {
  border-color: #55c65e;
  border-radius: 5px;
  border-style: solid;
  border-width: 1px;
  color: #fff;
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 22px;
  padding: 12px 18px 14px 60px;
  text-shadow: 0 1px #1d541d;
  transition: all 0.3s ease 0s;
}
.pm_subscription_display_product_buttons_on_list button span {
  border-color: #55c65e;
  text-shadow: 0 1px #1d541d;
}
.pm_subscription_display_product_buttons_on_list button.disabled span,
.pm_subscription_display_product_buttons a[type="button"].disabled span {
  border-color: #919191; /* #55c65e */
  text-shadow: 0 1px #393939; /* #1d541d */
  font-size: 15px;
}
.pm_subscription_display_product_buttons_on_list button span {
  padding: 10px 14px;
  font: 700 17px/21px Arial, Helvetica, sans-serif;
}
.pm_subscription_display_product_buttons_on_list button span .incentive,
.pm_subscription_display_product_buttons a[type="button"] span .incentive {
  display: block;
  font-size: 10px;
  font-weight: 400;
}
.pm_subscription_display_product_buttons_on_list button span a,
.pm_subscription_display_product_buttons a[type="button"] span a {
  color: #fff;
}

.pm_subscription_display_product_buttons .dropdown-menu {
  position: relative;
  bottom: 12px;
}

@media (max-width: 1199px) {
  .pm_subscription_display_product_buttons_on_list button span,
  .pm_subscription_display_product_buttons a[type="button"] span {
      font-size: 14px;
      padding: 12px 22px 14px 55px;
  }
}
@media (max-width: 991px) {
  .pm_subscription_display_product_buttons_on_list button span,
  .pm_subscription_display_product_buttons a[type="button"] span {
      padding: 8px 12px 10px;
      text-align: center;
  }
}

/************************************************************************
                        My account > My subscriptions
*************************************************************************/
.pm_sub_resume {
  margin-top: 15px;
  margin-bottom: 15px;
}

/* Row Calendar */
.pm_sub_resume .calendar div {
  margin-bottom: 15px;
}
.pm_sub_resume .calendar .title {
  margin-top: 30px;
}
.pm_sub_resume .calendar .icon {
  font-weight: bold;
  font-size: 160%;
}
.pm_sub_resume .calendar .date, 
.pm_sub_resume .calendar .number {
  font-weight: bold;
  font-size: 120%;
  margin-bottom: 20px;
}
.pm_sub_resume .calendar .link {
  margin-bottom: 35px;
}
.pm_sub_resume .calendar .link a {
  color: #337ab7;
}
/* End Row Calendar */

/* Row Card */
.pm_sub_resume .card {
  border: 1px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  margin-right: 25px;
  margin-bottom: 25px;
  padding-top: 30px;
}
.pm_sub_resume .card.selected {
  border: 1px solid orange;
}
.pm_sub_resume .card.address div,
.pm_sub_resume .card.carrier div,
.pm_sub_resume .card.payment_module div,
.pm_sub_resume .card.subscriber_card div {
  margin-bottom: 15px;
}
.pm_sub_resume .card.subscriber_card div:last-child {
  margin-bottom: 5px;
}
.pm_sub_resume .card.subscriber_card .subscriber_card_remove {
  color: red;
  font-size: 0.8em;
  opacity: 0.4;
}
.pm_sub_resume .card.subscriber_card .subscriber_card_remove:hover {
  opacity: 1;
}
.pm_sub_resume .card .title {
}
.pm_sub_resume .card .icon {
  font-weight: bold;
}
.pm_sub_resume .card .icon-card {
  font-size: 400%;
}
.pm_sub_resume .card .price {
  font-weight: bold;
  font-size: 120%;
}
.pm_sub_resume del {
  font-size: 90%;
  font-weight: normal;
}
.pm_sub_resume .card .payment_module_add_card_form {
  margin-bottom: 35px;
}
/* End Row Card */

/* Add card logo */
#payment-form .form-group {
  background-repeat: no-repeat;
  background-position: left center;
}
#payment-form:before {
  font-family: 'FontAwesome';
  font-size: 40px;
  font-weight: normal;
  content: "\f09d";
  color: #333333;
}
#payment-form[data-card-type=visa]:before {
  content: "\f1f0";
}
#payment-form[data-card-type=mastercard]:before {
  content: "\f1f1";
}
#payment-form[data-card-type=amex]:before {
  content: "\f1f3";
}
#payment-form[data-card-type=discover]:before {
  content: "\f1f2";
}
/*
#payment-form[data-card-type=dinersclub]:before {
  content: "\f24c";
}
#payment-form[data-card-type=jcb]:before {
  content: "\f24b";
}
*/
/* /Add card logo */

.row.product,
.row.element {
  margin-bottom: 20px;
  padding: 0 20px;
  padding-top: 25px;
  border-bottom: 1px solid #eee;
}
.element.form-control {
  padding: 0;
  border: none;
}

.row.product.member_card {
  border-bottom: none;
}

.row.product.light {
  padding-top: 0;
}

.row.product .element {
  margin-bottom: 10px;
}

.row.product .date {
  font-weight: bold;
  font-size: 120%;
}

input[name="renew_day"] {
  width: 50px;
  border: 1px dotted #ccc;
  padding: 5px;
  font-size: 90%;
}

.row.product .link, .row.product .link:hover {
  color: #337ab7;
}

.row.product input[type=number] {
  width: 45px;
}

.page-heading .button {
  text-transform: none;
}

a[name="processInstantOrder"] {
  margin-top: 5px;
  margin-bottom: 5px;
}
a[name="processAddCard"] {
  margin-bottom: 30px;
}

.row.product.highlight {border: 1px dotted orange; border-radius: 5px; } /* TEMP */

.sub-row-has-errors > div.section-content {
  filter: blur(1px);
    -webkit-filter: blur(1px);
    -moz-filter: blur(1px);
    -o-filter: blur(1px);
    -ms-filter: blur(1px);
  filter: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="filter"><feGaussianBlur stdDeviation="1" /></filter></svg>#filter');
  filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius='1');
}
.sub-row-has-errors div.alert{
  position: absolute;
  top: 20%;
  width: 90%;
  left: 5%;
  text-align: center;
  margin-bottom:0;
  /*box-shadow*/
  -webkit-box-shadow:0px 0px 3px 0px #656565;
     -moz-box-shadow:0px 0px 3px 0px #656565;
          box-shadow:0px 0px 3px 0px #656565;
  /*border-radius*/
  -webkit-border-radius:10px;
     -moz-border-radius:10px;
          border-radius:10px;
}


#pm_subscriptions .inline { display: inline; }
#pm_subscriptions .inline.left { margin-right: 10px; }
#pm_subscriptions .inline.right { margin-left: 10px; }
#pm_subscriptions .selectEdit .selector,
#pm_subscriptions .selectEdit .selector span { 
  display: inline-block; }

/*History*/
#module-pm_subscription-main .popover { 
  max-width: 100%; 
  margin-top: -20px;
  width: 600px; }
#module-pm_subscription-main .popover.right {
    margin-left: 25px;
}
#module-pm_subscription-main .popover.right .arrow {
  top: 45px;
}
.historyBlock {
  overflow-y: auto;
  max-height: 245px;
}
.historyBlock .row {
  margin-left: 0;
  margin-right: 0;
}
.historyBlock .link a {
  color: #337ab7;
}
/*End History*/

#module-pm_subscription-main ul.footer_links { margin-top: 20px; }

.member_card .active {
  color: green;
  opacity: 0.7;
}
.member_card .not.active,
.member_card .expired {
  color: red;
  opacity: 0.7;
}
.member_card .button-container {
  margin-top: 20px;
}

/************************************************************************
                                        Nav
*************************************************************************/
#subscription-link {
  float: right;
  border-left: 1px solid #515151;
  }
  @media (max-width: 479px) {
    #subscription-link {
      text-align: center; } }
  #subscription-link a {
    display: block;
    color: #fff;
    font-weight: bold;
    padding: 8px 10px 11px 10px;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    line-height: 18px; }
    @media (max-width: 479px) {
      #subscription-link a {
        font-size: 11px;
        padding-left: 5px;
        padding-right: 5px; } }
    #subscription-link a:hover, #subscription-link a.active {
      background: #2b2b2b; }
  @media (max-width: 767px) {
    #subscription-link.is_logged {
      display: none; } }

/************************************************************************
                        Shopping Cart
*************************************************************************/
#sub_cart_summary thead th {
  padding: 7px 8px 9px 8px; }
#sub_cart_summary tbody td {
  padding: 7px 8px 9px 8px; }
  #sub_cart_summary tbody td.cart_product {
    padding: 7px;
    width: 137px; }
    #sub_cart_summary tbody td.cart_product img {
      border: 1px solid #d6d4d4; }
  #sub_cart_summary tbody td.cart_unit .price span {
    display: inline-block; }
    #sub_cart_summary tbody td.cart_unit .price span.price-percent-reduction {
      margin: 5px auto;
      display: inline-block; }
    #sub_cart_summary tbody td.cart_unit .price span.old-price {
      text-decoration: line-through; }
  #sub_cart_summary tbody td.cart_description small {
    display: block;
    padding: 5px 0 0 0; }
  #sub_cart_summary tbody td.cart_avail {
    width: 1%; }
    #sub_cart_summary tbody td.cart_avail span {
      white-space: nowrap; }
  #sub_cart_summary tbody td.cart_delete {
    width: 1%; }
#sub_cart_summary tfoot td.text-right, #sub_cart_summary tfoot tbody td.cart_unit, #sub_cart_summary tbody tfoot td.cart_unit, #sub_cart_summary tfoot tbody td.cart_total, #sub_cart_summary tbody tfoot td.cart_total {
  font-weight: bold;
  color: #333; }
#sub_cart_summary tfoot td.price {
  text-align: right; }
#sub_cart_summary tfoot td.total_price_container span {
  font: 600 18px/22px "Open Sans", sans-serif;
  color: #555454;
  text-transform: uppercase; }
#sub_cart_summary tfoot td.total_price_container {
  font: 600 21px/25px "Open Sans", sans-serif;
  color: #333;
  background: #fff; }
#sub_cart_summary .stock-management-on tbody td.cart_description {
  width: 480px; }

#sub_cart_summary .table-data-sheet {
  width: 100%;
}
#sub_cart_summary .incentives_box,
#sub_cart_summary .incentives_box th,
#sub_cart_summary .incentives_box .odd {
  background: #FFF;
}

/************************************************************************
                        DateTime Picker
*************************************************************************/

#subscriptions .bootstrap-datetimepicker-widget table td span.disabled, 
#subscriptions .bootstrap-datetimepicker-widget table td span.disabled:hover {
  color: #ccc;
}

/************************************************************************
                        Warnings
*************************************************************************/
#sub_warnings .row.sub_warning {
  margin-top: 15px;
  margin-bottom: 30px;
}
#sub_warnings .row {
  margin-top: 15px;
  margin-left: 0;
  margin-right: 0;
}
#sub_warnings .row.icon {
  font-weight: bold;
  font-size: 160%;
}
#sub_warnings .row.date {
  font-weight: bold;
}
#sub_warnings .row.link a {
  color: #337ab7;
}
#sub_warnings .right {
  border-left: 1px solid #CCC;
  padding-left: 20px;
  min-height: 100px;
}
#sub_warnings .row.title {
  font-weight: bold;
  margin-bottom: 15px;
}
#sub_warnings hr {
  width: 25%;
}