/**
 * Popins
 * 
 * WARNING : In case of modification -> used by MVC website !
 *
 * A popin is an element working like a new window ... but within the same window of the content.
 * It's a good way to have responsive feedback from the user without boring him with new window.
 * 
 * A popin is usually separated from the rest of the window by a semi-transparent layer.
 * 
 * <code>
 * <body>
 *  <div class="popin-page-background"></div>
 *  
 *  ...
 *  
 *  <div class="popin-wrapper">
 *    <div class="popin-container">
 *      <div class="popin-header">
 *        ...
 *      </div>
 *      
 *      <div class="popin-body">
 *        ...
 *      </div>
 *      
 *      <div class="popin-footer">
 *        ...
 *      </div>
 *    </div>
 *  </div>
 * </body>
 * </code>
 * 
 * @version 1.0
 * @author Thomas Parisot <tparisot@clever-age.com>
 * @author Nicolas Goueset <nicolas.goueset@cdiscount.com>
 * @package cdiscount-ui
 * @charset utf-8
 * @_dependency button.css
 * @_dependency badge.css
 * @_gfx        sprites/popin/popin.png
 */

/**
 * Page background layer
 * 
 * This layer produce the alpha-transparency effect and also avoid the user to click on elements behind the popins
 * 
 * @section popin background
 * @todo remove the .ra-falsebackground declaration because it's out of context
 */
.popin-page-background{
  background: #808080;
  filter: alpha(opacity=50);
  height: 100%;
  left:0;
  opacity: 0.5;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000;
}

/**
 * Popin Wrapper
 * 
 * The wrapper is the underlying element containing all the popin elements (aka .popin-container)
 * 
 * @section popin wrapper
 */
 
 
.popin-wrapper,
.popin-wrapper-absolute{
  position: fixed;
  text-align: center;
  top: 20%;
  width: 100%;
  z-index: 20001;         /* needs to be superior than .popin-page-background z-index value */
}
.popin-wrapper-absolute{
  left: 50%;
  margin-left: -50%;     /* half of width */
  position: absolute; /* when we have a big popin, we use absolute and not fixed position for netbook resolutions */
  top: 20%;         /* needs to be superior than .popin-page-background z-index value */
}
/*IE 6*/
* html #AddToBasketPopin .popin-wrapper { /* ATTENTION, REPOSE SUR UN ID !! NE PAS MODIFIER LE NOM DE L'ID */
    top: 500px;
}

* html #productPopIn .popin-wrapper-container { /* ATTENTION, REPOSE SUR UN ID !! NE PAS MODIFIER LE NOM DE L'ID */
    top: 500px;
}
/*ie 7*/

div#divPopInSendFriend{
    width:840px;
    background-color:White;
}
  div#divPopInSendFriend .sf_top_infos{
    background: transparent url(https://i2.cdscdn.com/struct/popin/popin.png) no-repeat 0 -298px;
    color: #fff;
    display: block;
    font-size: 12px;
    font-weight: bold;
    line-height: 25px;
    height:25px;
    text-indent: 1.5em;
  }

*+html #AddToBasketPopin .popin-wrapper { /* ATTENTION, REPOSE SUR UN ID !! NE PAS MODIFIER LE NOM DE L'ID */
    margin-left:-500px;
}

*+html #productPopIn .popin-wrapper-container { /* ATTENTION, REPOSE SUR UN ID !! NE PAS MODIFIER LE NOM DE L'ID */
    position:fixed;
    margin-left:-1000px;
    top:50px;
}

.popin-wrapper-basket{
  position: absolute;
  text-align: center;
  width: 100%;
  z-index: 20001;
  left:0px;
}
.PopinServiceBasket
{
    position: fixed;
    top: 20%;
}

*+html .popin-wrapper{ /*hack for IE7*/
  width: 1000px;
}
/**
 * Popin container
 * 
 * It is the popin element itself, which is structured in 3 sub-elements:
 * - header
 * - body
 * - footer
 * 
 * A container can have additional classes to alter its behavior, espcially for alerts popin. Know types are:
 * - popin-type-alert
 * - popin-type-insurance
 * - popin-type-waranty
 * 
 * <code>
 *  <div class="popin-container popin-type-insurance">
 *    ...
 *  </div>
 * </code>
 * 
 * @section popin container
 * @bugfix
 * @affects IE6
 * @valid   no
 */
.popin-container{
  display: inline-block;    /* make it a block but inlined, to be centered */
  margin-right: 1.5em;
  position: relative;
  text-align: left;         /* canceling the wrapper centering */
  vertical-align: top;
  width: 373px;             /* size of the sprite */
  /* inline-block support for IE @TODO put this in a ie.css file */
  zoom: 1;
  *display: inline;
}
  /**
   * Popin header
   * 
   * This is the opening element of a .popin-container.
   * Its content is flexible and has 2 know behaviors:
   * - with a title bar
   * - without a title bar (+ a close button)
   * 
   * <code class="with-title">
   *  <div class="popin-container">
   *    <div class="popin-header">
   *      <span class="popin-header-title">Popin title</span>
   *    </div>
   *  
   *    ...
   *  </div>
   * </code>
   * 
   * <code class="without-title">
   *  <div class="popin-container">
   *    <div class="popin-header">
   *      <span class="popin-close"></span>
   *    </div>
   *  
   *    ...
   *  </div>
   * </code>
   * 
   * @section       popin container
   */
  .popin-header{
    background: url('https://i2.cdscdn.com/imagesok/popin/popin.png') 0 0 no-repeat;
    height: 35px;
    padding-top: 7px;       /* padding-top + height = 30px */
  }

  /**
   * Popin body
   * 
   * The body contains the content of the popin, the messages
   * 
   * @section       popin container
   * 
   * @bugfix
   * @affects       IE6
   * @valid         yes
   */
  .popin-body{
    background: #fff url('https://i2.cdscdn.com/imagesok/popin/popin.png') 0 -18px no-repeat;
    min-height: 233px;
    height: auto !important;     /* preparing min-height fix for IE */
    height: 255px;               /* min-height for IE */
    padding: 0 1em;
    position: relative;
  }
  .popin-body-basket{
    background:url('https://i2.cdscdn.com/imagesok/popin/popin-basket-nq8.png') 0 bottom no-repeat;
    padding:0;
    position: relative;
  }
  /**
   * Popin footer
   * 
   * Basically nothing to do except closing the UI
   * Nothing should be contained in the element
   * 
   * @section       popin container
   */
  .popin-footer{
    background: url('https://i2.cdscdn.com/imagesok/popin/popin.png') 0 -283px no-repeat;
    height: 10px;
  }

  /*
   * Popin HEADER elements
   */

  /*
   * Popin close button
   * 
   * It should be located in the .popin-header element
   * 
   * @section       popin container
   * @subsection    popin header
   */
  .popin-close{
    background: url(https://i2.cdscdn.com/imagesok/popin/popin.png) no-repeat scroll -23px -352px;
    cursor: pointer;
    display: block;
    height: 20px;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 20px;
    z-index: 1010;
  }

  /**
   * Popin header title
   * 
   * It's a special container for the popin's title
   * 
   * @section       popin container
   * @subsection    popin header
   */
  .popin-header-title{
    background: transparent url(https://i2.cdscdn.com/imagesok/popin/popin.png) no-repeat 0 -298px;
    color: #fff;
    display: block;
    font-size: 12px;
    font-weight: bold;
    line-height: 25px;
    height:25px;
    text-indent: 1.5em;
  }
  .popin-header-title-basket{
    color: #798DA8;
    display: block;
    font-size: 12px;
    font-weight: bold;
    height: 100%;
    line-height: 2.3;
    text-indent: 1.5em;
  }
  .popin-header-title-Insurance-Line
{
    color: #3C5A80;
    display: block;
    font-size: 16px;
    font-weight: bold;
    line-height: 25px;
    height:25px;
    text-indent: 1.5em;
    margin-left:-13px;
}
  /*
   * Popin BODY elements
   */
  .popin-body p{
    margin: 0 0 .5em;
  }

  .popin-body ul{
    list-style-type: none;
    padding: 6px 0 0 0;
    text-align: left;
    margin: 0;
  }  
  .popin-body ol
  {
    padding: 6px 0 0 20px;
    text-align: left;
    margin: 0;
  }
  .popin-body ol li
  {
    list-style-type: decimal;
  }
  
    /**
     * Error message type
     * 
     * Holds an alert message, which has special UI display to warn user
     * 
     * <code>
     *   <div class="message-alert">
     *     <div class="message-alert-title">An error occured!</div>
     *     
     *     <p>Something strange happened. Sorry for that.</p>
     *   </div>
     * </code>
     * 
     * @section       popin container
     * @subsection    popin body
     */
    .message-alert{
      background: url(https://i2.cdscdn.com/imagesok/popin/popin.png) no-repeat scroll -15px -411px;
      margin: 0 auto;
      min-height: 30px;
      height: auto !important;    /* preparing min-height fix for IE */
      height: 30px;               /* min-height for IE */
      padding: 5px 0 0 40px;
      width: 200px;
      font-size: 1.4em;
      line-height: 1.4;
    }
      
      .message-alert strong { color: #e92f0a; } /* Only the text between <strong> tag is red, other text is black */

      p.message-alert-title{ margin-bottom: 0; }        /* special cancelling of .popin-body p */
      
    /**
     * Message
     * 
     * It's the standard container for generic messages.
     * 
     * <code>
     *   <div class="message">
     *     <p>Your text inside.</p>
     *     
     *     <ul>
     *       <li>Some item</li>
     *       ...
     *     </ul>
     *   </div>
     * </code>
     * 
     * @section       popin container
     * @subsection    popin body
     */
    .popin-message{
      font-size: 11px;
    }
    .popin-message p{
      font-size: 11px;
      padding:8px 0 5px 0;
    }
    .popin-message li{
      font-size: 11px;
    }
    .popin-message,
    .popin-message a,
    .popin-message a:link,
    .popin-message a:visited{
      color: #798da8;
    }
    .popin-message a:hover{
      text-decoration: none;
    }

    /**
     * Message introduction
     * 
     * This is a special message block to highlight some content.
     * It's display behavior makes it easy to use the available space (especially if a badge is used and needs to share the same row)
     * 
     * <code>
     *  <div class="popin-message-introduction">
     *    <p>Some text</p>
     *
     *    <p class="popin-message-title">Text very important, mostly highlighted</p>
     *  </div>
     * </code>
     * 
     * @section       popin container
     * @subsection    popin body
     */
    .popin-message-introduction{
      color: #3c5a80;
      display: inline-block;
      font-size: 10px;
      font-weight: bold;
      vertical-align: top;
      /* inline-block support for IE @TODO put this in a ie.css file */
      zoom: 1;
      *display: inline;
    }
	.popin-message-introduction-basket{
	  display: block;
	}
     .popin-message-introduction p{
        text-align:center;
    }
      .popin-message-title{
        font-size: 13px;
        font-weight:bold;
      }
      p.popin-message-title{
        margin: 1.5em 0;          /* overriding .popin-body p by declaration weight */
      }      
	  .popin-message-image{
	  padding:0 10px;
	  display:block;
	  float:left;
	  }
      .popin-message-title-basket{
		font-size: 13px;
		color:#3C5A80;
		margin:0 auto;
		padding:10px 20px;
		display:block;
		text-align:center;
      }
    /*
     * Badge
     * 
     * Special adjustments for a badge included in a popin
     * 
     * @see badge.css
     * @section       popin container
     * @subsection    popin body
     */
    .popin-body .badge{
      margin-bottom: 0px;
      margin-right: 10px;
    }
    
    /*
     * Legend
     * 
     * This is a simple module to make a list legendable (used first for displaying a CGU link alongside items)
     * 
     * <code>
     *  <ul class="with-legend">
     *    <li>item 1</li>
     *    <li>item 2</li>
     *    <li class="legend">legend item</li>
     *  </ul>
     * </code>
     * 
     * @section       popin container
     * @subsection    popin body
     * @todo          someday, put that somewhere else, as it's not necessarily only related to popin
     */
    .with-legend{
      position: relative;
    }
      .with-legend .legend{
        bottom: 0;
        font-size: 0.8em;
        font-style: italic;
        list-style: none;
        position: absolute;
        right:0;
        top:8px;
      }

    /*
     * Buttons wrapper
     * 
     * Holder for buttons elements
     * 
     * @see button.css
     */
    .popin-buttons{
      bottom: 0;
      margin: 1.5em 0 0;
      text-align: center;
      width: 350px;
    }
    .popin-buttons-basket
    {
		padding:2em 0 1em 15px;
		clear:both;
    }
    /*
     * Popin body specifics
     */
    .popin-type-insurance .popin-message-title{
      color: #ff2a00;
    }
    .popin-type-waranty .popin-message-title{
      color: #b400ff;
    }
      
  /*
   * Special overrides depending on popin type
   */
    /*
     * Alert
     */
    .popin-type-alert .popin-body{
      min-height: 100px;
      height: auto !important;    /* preparing min-height fix for IE */
      height: 100px;              /* min-height for IE */
      padding-top: 0;
    }
    /*
     * Special Phone options popup
     */
    .ps-popin-phone-message
    {
        color:#3c5a80;
    }
    .ps-popin-phoneOptionContainer
    {
        border-bottom:1px solid #d8dee6;
        height:14px;
        margin-bottom:6px;
    }
    .ps-popin-phoneOptionTitle
    {
        background-color:#fff;
        clear:both;
        float:left;
        height:20px;
        line-height:20px;
        padding-right:5px;
        text-align:left;
    }
    .ps-popin-phoneOptionPrice
    {
        background-color:#fff;
        float:right;
        height:20px;
        line-height:20px;
        padding-left:5px;
	    font-weight:bold;
	    font-size:16px;
	    color:#ff0000;
	    text-align:right;
    }
    /**
    * Social network Share Popin
    */
    .popin-share{
        height: 92px;
        margin: 28px 20px 0px 10px;
    }
    .popin-share-item{
        background: url(https://i2.cdscdn.com/imagesok/productsheet/Share/bouton-partager.png) no-repeat;
        float: left;
        height: 29px;
        margin: 0 0 12px 12px;
        padding: 10px 0 0 0;
        text-align: center;
        width: 147px;
    }
    .messengerimage{
        border-style: none; 
        margin-right: 4px;
        vertical-align: middle; 
    }
    .sentofriendbig{
        background: url(https://i2.cdscdn.com/imagesok/productsheet/Share/icone-mail.png) no-repeat;
        display: block;
        height: 16px;
        line-height: 16px;
        margin: 2px auto 0 auto;
        padding: 0 0 0 38px;
        width: 87px;
        cursor:pointer;
    }

	/**
	* Payment 4 times Popin
	*/
	.popin-header-title-payment{
		color: #3e5c81;
		display: block;
		font-size: 18px;
		font-weight: bold;
		height: 100%;
		line-height: 1.8;
		text-indent: 0.8em;
	}
	.popin-message-payment{
		font-size: 12px;
		color:#2e476d;
		line-height:18px;
		padding-left:5px;
	}
	.popin-message-payment-strong{
		font-size: 12px;
		color:#ff2a00;
		font-weight:bold;
		line-height:18px;
	}
	
    /**
    * Commercial offer on services and warranties
    */
    
    .popinInsuranceCommercialOfferTitle
    {
        color: #FF2A00;
    }
    
    .popinWarrantyCommercialOfferTitle
    {
        color: #B400FF;
    }
    
    .popinInsuranceCommercialOfferDuration
    {
        color: #FF2A00;
        font-size: 11px;
        text-decoration: underline;
        display:inline-block;
        margin-top: 10px;
    }
    
    .popinWarrantyCommercialOfferDuration
    {
        color: #B400FF;
        font-size: 11px;
        text-decoration: underline;
        display:inline-block;
        margin-top: 10px;
    }
    
    .popinCommercialOfferMessageIntroduction
    {
        width:245px; 
        margin-bottom: -5px;   
    }
    
    .popinCommercialOfferMessageTitle p{
        text-align: left;
    }
    
    .popinStrikedPrice
    {
        color: Black;
        text-decoration: line-through;    
    }
    
    .popinInsuranceCommercialOfferPrice
    {
        color: #FF2A00;
        font-weight: bold;
        font-size: 1.2em;
    }
    
    .popinWarrantyCommercialOfferPrice
    {
        color: #FF2A00;
        font-weight: bold;
        font-size: 1.2em;
    }