﻿#modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  overflow: hidden auto; }
  #modal .dialog {
    position: relative;
    top: 10%;
    width: 500px;
    max-width: 80%;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.2);
    transition: width 0.15s ease-in-out;
    display: none; }
    #modal .dialog.wide {
      width: 800px;
      max-width: 95%; }
    #modal .dialog > * {
      padding: 10px; }
    #modal .dialog.slider-right {
      position: absolute;
      top: 75px;
      right: 0; }
      @media only screen and (min-width: 500px) {
        #modal .dialog.slider-right {
          top: 125px; } }
  #modal .dialog-title {
    background-color: #820A0C;
    color: #fff;
    font-weight: bold;
    position: relative;
    font-size: 0.8333333333333333rem;
    padding: 12.5px 35px 12.5px 35px; }
  #modal .dialog-close {
    float: right;
    color: #fff;
    text-decoration: none; }
    #modal .dialog-close:before {
      content: 'CLOSE';
      margin-right: 10px;
      font-size: .7rem;
      top: -1px;
      position: relative; }
  #modal .dialog-content {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px 35px 0 35px; }
  #modal .dialog-buttons {
    padding: 25px 35px; }
    #modal .dialog-buttons:after {
      content: ' ';
      display: table;
      clear: both; }
    #modal .dialog-buttons button {
      margin: 5px 10px 5px 0;
      font-size: .9rem; }
      #modal .dialog-buttons button:first-child {
        margin-left: 0; }
  #modal .waiting {
    position: relative;
    top: calc(50% - 150px);
    width: 500px;
    max-width: 80%;
    padding: 10px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.2); }
  #modal .cart-dialog .dialog-buttons button {
    font-size: .8rem; }
