/* 
    Document   : stylesheet-responsive
    Created on : 12 6, 13, 2:10:19 PM
    Author     : mardiente
    Description:
        Purpose of the stylesheet follows.
*/

/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media 
only screen and (max-width: 767px),
(min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait),
(min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape){

    /* Force table to not be like tables anymore */
    table, thead, tbody, th, td, tr { 
        display: block; 
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr { border: 1px solid #ccc; }

    td { 
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee; 
        position: relative;
        padding-left: 50%; 
    }

    td:before { 
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%; 
        padding-right: 10px; 
        white-space: nowrap;
        content: attr(data-th)" ";
        font-weight: bold;

    }

    a.watch-btn , a.notify-me-about-btn { float: none; }
    a.notify-me-about-btn { margin-left: -100px }

    .table th, .table td { border-top: initial; padding-left: 138px; }
    div#my-account .table th, div#my-account .table td { border-top: initial; padding-left: 10px }
    div.content-area article div.entry-content table tbody tr td img.alignleft {float: none}
    div.content-area article div.entry-content table tbody tr td:before { width: 25%;  }
    div.content-area article div.entry-content table tbody tr { border: 1px solid #ccc; }

    /* Offers Page */
    .content-area a.fancybox { display: inline !important; width: auto; }
}