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


/************************************************************************
                        Usefull
*************************************************************************/
.hide {
    display: none !important;
}
i.warning {
    color: orange;
}
.oco-cart-overview {
    padding: 1rem;
}
.pull-right {
    float: right !important;
}
.button.small {
    padding: 5px 8px 5px 8px;
}
a:not([href]):not([tabindex]).pm_remove , a:not([href]):not([tabindex]).pm_remove :focus, a:not([href]):not([tabindex]).pm_remove :hover,
.pm_remove {
    color: red;
    font-size: 0.8em;
    opacity: 0.4;
}
.pm_remove:hover {
    opacity: 1;
}
.pm_flexbox,
.pm_flexbox > div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
      align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
}
.pm_no-gutters .cart-grid-body {
    padding-right: 0;
    padding-left: 0;
}
/* centered columns styles */
.row-centered {
    text-align:center;
}
.col-centered {
    display:inline-block;
    float:none;
    /* reset the text-align */
    text-align:left;
    /* inline-block space fix */
    margin-right:-4px;
}
.pm_card.oco_customer_card.selected,
.pm_card.oco_customer_delivery_address.selected,
.pm_card.oco_customer_billing_address.selected,
#pm-oneclickorder-modal .paymentMethodCard.selected,
#pm-oneclickorder-modal .carrierCard.selected {
  border: 1px solid orange;
}
.pm_card {
    border: 1px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 25px;
    padding-top: 30px;
}
.pm_card.address, .pm_card.oco_customer_card {
    margin-bottom: 15px;
}
.pm_card.oco_customer_card div {
    margin-bottom: 15px;
}
#pm_oco_main_container .cart-grid-body hr {
    margin: 0;
}
#pm_oco_main_container .step-edit {
    cursor: pointer;
    display: block;
    float: right;
    margin-right: .125rem;
    color: #acaaa6;
}
.oco_enable {
    flex-direction: column;
}
.pm_oco_product_button_container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    background-color: #fff;
    padding: 0.750em;
    box-shadow: 2px 2px 8px 0 rgba(0,0,0,.2);
    margin-top: 1.5rem;
}
.pm_oco_product_button_container .pm_oco_login_button_container {
    padding-left: 0.5em;
}
.pm_oco_cart_button_container .pm_oco_login_button_container {
    margin-top: 1em;
}
.pm_oco_product_button_container .pm_oco_delivery_address_errors_container p.alert {
    /* Prevent bootstrap's default styles */
    margin-bottom: 0;
}
.pm_oco_product_button_container .pm_oco_buy_button_container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 100%;
    margin: 1rem 0 1.5rem;
}
.pm_oco_product_button_container .pm_oco_configure_button_container,
.pm_oco_cart_button_container .pm_oco_configure_button_container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin: 1.5rem 0 0;
}
.pm_oco_product_button_container .pm_oco_login_button_container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 100%;
    margin: 1rem 0 0;
}
.pm_oco_cart_button_container .pm_oco_enable_button_container,
.pm_oco_product_button_container .pm_oco_enable_button_container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 100%;
    margin: 1rem 0 0;
}
.pm_oco_product_button_container p.help-block, .pm_oco_cart_button_container p.help-block {
    margin: 1em 0 0;
    font-size: 0.85rem;
    text-align: left;
    padding: 0 0.375em;
}
.pm_oco_cart_button_container .pm_oco_buy_button_container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin: 1.5rem 0 1.5rem;
}
.pm_oco_delivery_address_select_container {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: baseline;
    display:none;
}
.pm_oco_modal_delivery_address_select {
    margin: 0 0 1em;
    background-color: #fff;
}
.pm_oco_modal_delivery_address_select.ocoError {
    background-color: #f2dede;
}
.pm_oco_cart_button_container .pm_oco_delivery_address_select_container {
    flex-direction: column;
}
.pm_oco_delivery_address_select_container p {
    margin-bottom: 0;
}
@media screen and (max-width:991px) {
    .pm_oco_delivery_address_select_container {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: baseline;
        display:none;
    }
    .pm_oco_delivery_address_select_container > p {
        margin-bottom: 0;
        display:none;
    }
}
.pm_oco_delivery_address_select_container > p {
    flex: 1;
    display:none;
}
.pm_oco_delivery_address_select_container > select {
    flex: 5;
    display:none;
}
.pm_oco_cart_button_container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 2em;
}
.pm_oco_cart_button_container p {
    margin-bottom: 0;
}
.pm_oco_product_button_container .pm_oco_title_container, .pm_oco_cart_button_container .pm_oco_title_container {
    text-align: center;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,.2);
    line-height: 0.1em;
    margin: 1.5em 0 1em;
}
.pm_oco_product_button_container .pm_oco_title_container > span, .pm_oco_cart_button_container .pm_oco_title_container > span {
    background: #fff;
    padding:0 10px;
    font-size: 1.25rem;
    font-weight: bold;
}
.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-oneclickorder-modal {
    display: flex;
    flex: 1;
}
#pm-oneclickorder-modal .modal-content {
    display: flex;
    flex-direction: column;
}
#pm-oneclickorder-modal .modal-content .modal-header {
    display: flex;
    justify-content: space-between;
}
#pm-oneclickorder-modal .ocoFlex {
    display: flex;
}
#pm-oneclickorder-modal .modal-content .modal-header .modal-title {
    flex: 1;
    font-size: .9375rem;
    margin-bottom: .5rem;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.1;
    color: inherit;
}
#pm-oneclickorder-modal .ocoModalProductsContainer {
    flex-direction: column;
}
#pm-oneclickorder-modal .ocoProductInformation .product-name,
#pm-oneclickorder-modal .ocoProductPrice .product-total-label {
    font-size: .9375rem;
    margin-bottom: .5rem;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.1;
    color: inherit;
}
#pm-oneclickorder-modal .modal-content .modal-body .ocoCustomerInformationContainer {
    flex-direction: column;
    display:none;
}
#pm-oneclickorder-modal .modal-content .modal-body .ocoModalButtonsContainer {
    flex-direction: column;
    padding-left: 1rem;
    padding-right: 1rem;
}
#pm-oneclickorder-modal .modal-content .modal-body .ocoCustomerInformationContainer .ocoCustomerCardContainer,
#pm-oneclickorder-modal .modal-content .modal-body .ocoCustomerInformationContainer .ocoCustomerAddressContainer,
#pm-oneclickorder-modal .modal-content .modal-body .ocoCustomerInformationContainer .ocoCustomerCarrierContainer {
    flex-direction: column;
    border-color: #eee;
    border-image: none;
    border-radius: 3px;
    border-style: solid;
    border-width: 1px 1px 1px 5px;
    margin: 0.5em 0;
    padding: 10px;
    border-left-color: #1b809e;
    justify-content: space-between;
    display:none;
}
#pm-oneclickorder-modal .modal-content .modal-body .ocoCustomerInformationContainer .ocoCustomerNoCarrierContainer,
#pm-oneclickorder-modal .modal-content .modal-body .ocoCustomerInformationContainer .ocoCustomerNoCardContainer,
#pm-oneclickorder-modal .modal-content .modal-body .ocoCustomerInformationContainer .ocoCustomerNoAddressContainer {
    flex-direction: column;
    border-color: #eee;
    border-image: none;
    border-radius: 3px;
    border-style: solid;
    border-width: 1px 1px 1px 5px;
    margin: 0.5em 0;
    padding: 15px;
    border-left-color: #a94442;
    display:none;
}
#pm-oneclickorder-modal .modal-content .modal-body {
    list-style: none;
}
#pm-oneclickorder-modal .ocoCustomerCardHeader,
#pm-oneclickorder-modal .ocoCustomerDeliveryAddressHeader,
#pm-oneclickorder-modal .ocoCustomerBillingAddressHeader,
#pm-oneclickorder-modal .ocoCustomerCarrierHeader {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
}
#pm-oneclickorder-modal .ocoCustomerAddressContainer {
    flex-direction: column;
}
#pm-oneclickorder-modal .carrierCard,
#pm-oneclickorder-modal .paymentMethodCard {
    flex-direction: row;
    justify-content: space-between;
    border-radius: 5px;
    border-style: solid;
    padding: 10px;
    align-items: center;
    cursor: pointer;
}
#pm-oneclickorder-modal .ocoCardContainer {
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    flex: 1;
}
#pm-oneclickorder-modal p {
    margin-bottom: 0;
}
#pm-oneclickorder-modal .ocoCarrierChangeButton,
#pm-oneclickorder-modal .ocoCustomerCardChangeButton {
    display: flex;
    color: #2fb5d2;
    text-decoration: none;
    cursor: pointer;
}
.loader {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #3498db;
    width: 1.5em;
    height: 1.5em;
    -webkit-animation: spin 0.5s linear infinite;
    -moz-animation: spin 0.5s linear infinite;
    animation: spin 0.5s linear infinite;
}
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@-moz-keyframes spin {
    0% { -moz-transform: rotate(0deg); }
    100% { -moz-transform: rotate(360deg); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.ocoLoadingMessage {
    display: flex;
    justify-content: space-evenly;
}
/* Cards logos for the add card form */
.pm_card_logo[data-card-type=visa]:before {
  content: url('../img/cards_icons/visa.svg');
}
.pm_card_logo[data-card-type=mastercard]:before {
  content: url('../img/cards_icons/mastercard.svg');
}
.pm_card_logo[data-card-type=amex]:before,
.pm_card_logo[data-card-type="american express"]:before {
  content: url('../img/cards_icons/amex.svg');
}
.pm_card_logo[data-card-type=discover]:before {
  content: url('../img/cards_icons/discover.svg');
}
.pm_card_logo[data-card-type=dinersclub]:before {
  content: url('../img/cards_icons/diners.svg');
}
.pm_card_logo[data-card-type=jcb]:before {
  content: url('../img/cards_icons/jcb.svg');
}
.pm_card_logo:before {
    font-family: 'Material Icons';
    font-size: 3em;
    font-weight: normal;
    content: 'credit_card';
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* End Cards logos for the add card form */

/* Cards logos for the modal */
#pm-oneclickorder-modal .ocoCardContainer[data-card-type=visa]:before {
    content: url('../img/cards_icons/visa.svg');
}
#pm-oneclickorder-modal .ocoCardContainer[data-card-type=mastercard]:before {
    content: url('../img/cards_icons/mastercard.svg');
}
#pm-oneclickorder-modal .ocoCardContainer[data-card-type="american express"]:before,
#pm-oneclickorder-modal .ocoCardContainer[data-card-type=amex]:before {
    content: url('../img/cards_icons/amex.svg');
}
#pm-oneclickorder-modal .ocoCardContainer[data-card-type=discover]:before {
    content: url('../img/cards_icons/discover.svg');
}
#pm-oneclickorder-modal .ocoCardContainer[data-card-type=dinersclub]:before {
    content: url('../img/cards_icons/diners.svg');
}
#pm-oneclickorder-modal .ocoCardContainer[data-card-type=jcb]:before {
    content: url('../img/cards_icons/jcb.svg');
}
#pm-oneclickorder-modal .ocoCardContainer:before {
    font-family: 'Material Icons';
    font-size: 3em;
    font-weight: normal;
    content: 'credit_card';
    height: 48px;
    display: flex;
    align-items: center;
}
#pm-oneclickorder-modal .pmOcoCardExpire {
    font-size: 0.85rem;
}
/* End Cards logos for the modal */
@media screen and (max-width:575px) {
    .modal-open {
        overflow: hidden;
        position: fixed;
    }
}
.ocoMainWarnings {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.ocoMainWarnings .ocoEnableConditionsTitle {
    margin-bottom: 0.5em;
}
.ocoMainWarnings ul {
    padding-left: 3em;
    list-style-type: inherit;
}
.oco_enable input[name="PM_OCO_ACCEPT_TERMS"] {
    bottom: 0;
}
#conditionsToApprove .oco-cart-overview {
    display: flex;
    flex-direction: column;
}
#conditionsToApprove .custom-checkbox {
    display: flex;
    justify-content: center;
}
#conditionsToApprove .custom-checkbox span {
    min-width: 0.9375rem;
}
.ocoProductRow, .ocoShippingRow, .ocoReductionRow {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.ocoProductImage {
    min-width: 6em;
}
.ocoProductInformation {
    flex-direction: column;
    flex-grow: 1;
}
.ocoProductPrice {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.ocoModalBody {
    padding: 0px 15px 15px;
}
.ocoAddressAliasContainer {
    display: flex;
    align-items: center;
    padding:0.5em 1em;
    font-size: 0.9375rem;
}
.ocoCarrierDelayContainer {
    flex-grow: 1;
    justify-content: center;
}
.ocoCarrierNameContainer {
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    justify-content: space-evenly;
}
.ocoCarrierName {
    font-weight: bold;
}
.ocoCarrierDelay {
    font-size: 0.80rem;
}
.ocoModalButtonsContainer p.alert {
    padding: 0.5em;
    text-align: center;
}
.ocoModalButtonsContainer button {
    white-space: normal;
}
.modalUseSameAddressCheckboxContainer {
    font-style: italic;
}
.modalUseSameAddressCheckboxContainer span.custom-checkbox label,
#ocoUseSameAddressCheckboxContainer span.custom-checkbox span {
    cursor: pointer;
    font-size: 0.8rem;
}
.modalUseSameAddressCheckboxContainer span.custom-checkbox {
    display: flex;
}
.modalUseSameAddressCheckboxContainer span.custom-checkbox span {
    margin-top: 0.15rem;
    margin-right: 0.5rem;
}
.ocoModalProductsContainer .cart-item:not(:last-child) {
    border-bottom: 1px solid #f1f1f1;
}
button.pm_oneclickorder_display_product_buttons, button.pm_oneclickorder_display_cart_buttons {
    white-space: normal;
    width: 100%;
}
#oco_conditions_modal .modal-content {
  padding: 1.25rem;
  background-color: #ebebeb;
}
#oco_conditions_modal .condition-label {
  margin-left: 2.5rem;
  margin-top: .625rem;
}
.pm_oco_product_button_container p.help-block label,
.pm_oco_cart_button_container p.help-block label {
    font-size: .9375rem;
    color: #878787;
    font-weight: 400;
    text-align: inherit;
}
.enableOcoContainer {
    margin-bottom: 0.5rem !important;
}
button[name="disableOco"] {
    font-size:  0.8rem;
}
.pm_oco_billing_address_select, .pm_oco_delivery_address_select {
    background-color:white;
}
.pm_oco_billing_address_select {
    margin-bottom: 0.75rem;
}
.ocoDeliveryAddressAliasContainer {
    margin: 0 0 0.5em;
    height: calc(2.5rem - 2px);
    font-size: 0.9375rem;
    padding-left: 1rem;
}
.ocoProductNoImageRow {
    min-width: 2rem;
}
.ocoConfirmOrderModalButton {
    margin-bottom: 1rem;
}
.pmOcoActionAddress {
    font-size: 0.8rem;
    font-style: italic;
}
#detailsAddress {
    padding-left: 0.5rem;
}
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}
.animated.bounceIn,
.animated.bounceOut {
  animation-duration: .75s;
}
@keyframes bounceOut {
  20% {
    transform: scale3d(.9, .9, .9);
  }

  50%, 55% {
    opacity: 1;
    transform: scale3d(1.1, 1.1, 1.1);
  }

  to {
    opacity: 0;
    transform: scale3d(.3, .3, .3);
  }
}

.bounceOut {
  animation-name: bounceOut;
}
@keyframes bounceIn {
  from, 20%, 40%, 60%, 80%, to {
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  }

  0% {
    opacity: 0;
    transform: scale3d(.3, .3, .3);
  }

  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }

  40% {
    transform: scale3d(.9, .9, .9);
  }

  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }

  80% {
    transform: scale3d(.97, .97, .97);
  }

  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

.bounceIn {
  animation-name: bounceIn;
}
