
/* In-store Photos (aka POPWatch) */

#inStorePhotolibrarySearch { width: 100%; }
#inStorePhotolibrarySearch .libraryRow { height: fit-content; width: 100%; display: grid; grid-template-columns: 100%; align-items: flex-start; justify-content: flex-start; gap: 20px; padding: 0 0 20px 0; }
#inStorePhotolibrarySearch .optionBox { box-sizing: border-box; width: 100%; min-width: 200px; max-width: 300px; padding: 0 10px; float: left; margin: 0 auto; }
#inStorePhotolibrarySearch .optionBox h2 {font-size: 1.3em;}
#inStorePhotolibrarySearch .optionBox select { display: none; }
#inStorePhotolibrarySearch .optionBox img { width: 36px; margin: 0 auto; clear: left; float: left; }
  #inStorePhotolibrarySearch .libraryRow .columns { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 5px; }
  #inStorePhotolibrarySearch .libraryRow .columns .row { width: 100%; display: flex; flex-direction: row; align-items: center; justify-content: center; margin: 0; gap: 8px; }

input[type="radio"] { width: 15px; height: 15px; margin: 5px; float: left; clear: both; }
.radLabel { float: left; width: 100px; margin: 3.5px; font-size: 1.1em; }

#ctl00_ContentPlaceHolder_ddlWhenMonth, #ctl00_ContentPlaceHolder_ddlPermanent, .ddlWhen 
    { clear: both; margin-top: 5px; border: 1px solid #d0d0d0; padding: 8px 8px; display: inline-block; width: 100%; overflow: hidden; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1); -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; height: 36px; }

.ddlWhen { float: left; width: calc((100% - 5px) /2); box-sizing: border-box; clear: none; margin: 0; gap: 10px; }

.whenLabel { float: left; width: 15%; box-sizing: border-box; text-align: right; margin: 0 0 10px 2%; clear: both; }

.permanentLabel { float: left; }
.permanentGroup { width: 50%; float: left; display: none; }


.selectize-dropdown-content { max-height: 600px; }

#resultsPhotos .results { margin-left: 0; }
#resultsPhotos h3 { margin-bottom: 20px; color: #757575; }

#resultsPhotos { overflow: hidden; font-size: 1.1em; }
#resultsPhotos .single { height: 330px; width: 22%; box-sizing: border-box; margin: 10px 4% 10px 0; padding: 0; border: none; }
#resultsPhotos .single:nth-child(4n) { margin-right: 0; }
#resultsPhotos .single .resultNumber { position: static; width: 100%; float: left; height: 22px; color: black; font-size: 1.1em; padding: 2px; text-align: right; font-weight: bold; }
#resultsPhotos .single .brandBox { clear: both; width: 100%; background-color: #58585a; color: white; padding: 5px; text-align: center; height: 3.2em; }
#resultsPhotos .single .retailerBox { clear: both; width: 100%; background-color: #1f8bcb; color: white; padding: 5px; text-align: center; min-height: 1em;}
#resultsPhotos .single .editionBox { clear: both; width: 100%; background-color: white; color: #000; padding: 5px; text-align: center; min-height: 1em;}
#resultsPhotos.latest .single .selectThisPhoto { display: none; }

#resultsPhotos .single .info > div > div { padding-top: 2.5px !important; padding-bottom: 2.5px !important; border-top: 1px solid #cccccc; }
#resultsPhotos .single .info { width: 100%; height: auto; position: static; padding: 5px 0; }
#resultsPhotos .single .info > div { width: 100%; margin: 0; }
#resultsPhotos .single .info > div:nth-child(5) { border-bottom: 1px solid #cccccc !important; }
#resultsPhotos .single .selectThisPhoto { width: 100%; min-height: 25px; background-color: #58585a; color: white; cursor: pointer; display: flex; align-items: center; padding: 5px;}
#resultsPhotos .single .selectThisPhoto:hover { background-color: #bbbbbb; }
#resultsPhotos .single .selectThisPhoto > div { font-size: 1em; float: left; padding: 4px 5px; font-weight: bold; margin-left: 25%; }
#resultsPhotos .single .selectThisPhoto > .photoWrap { margin-left: 5px; }
#resultsPhotos .single .selectThisPhoto .chkWrap { width: 12px; height: 12px; background: red; position: relative; background: #fcfff4; margin: 2px; }
#resultsPhotos .single .selectThisPhoto .chkWrap label { width: 12px; height: 12px; background: blue; cursor: pointer; position: absolute; left: 0px; top: 1px; background: #ffffff; }
#resultsPhotos .single .selectThisPhoto .chkWrap label:after { content: ''; width: 9px; height: 5px; position: absolute; top: 2px !important; left: 2px !important; border: 2px solid #000000; border-top: none; border-right: none; background: transparent; opacity: 0; transform: rotate(-45deg); }
#resultsPhotos .single .selectThisPhoto .chkWrap label:hover::after { opacity: 0.3; }
#resultsPhotos .single .selectThisPhoto .chkWrap input[type=checkbox] { visibility: hidden; }
#resultsPhotos .single .selectThisPhoto .chkWrap input[type=checkbox]:checked + label:after { opacity: 1; }

#resultsPhotos .single .resultNumber { position: static; width: 100%; float: left; height: 22px; color: black; font-size: 1.1em; padding: 2px 10px; text-align: right; background-color: white; font-weight: bold; }
#resultsPhotos .single .thumbnail { position: relative; top: 0; }
#resultsPhotos .single .thumbnail > img { position: absolute; right: 50px; right: calc(50% - 90px); bottom: 10px; height: 23px; cursor: pointer; }
#resultsPhotos .single .thumbnail > a { display: flex; height: 100%; width: 100%; }
#resultsPhotos .single .thumbnail > a > img { display: block; height: 100%; width: 100%; object-fit: cover; object-position: center; }
#resultsPhotos .single .reportIt { position: static; clear: both; display: block; width: 100%; text-align: center; margin-top: 15px; }

#resultsPhotos .getMoreResults { display: none; clear: both; color: #1f8bcb; font-weight: bold; cursor: pointer; padding: 5px 0px 10px 0px; text-align: center; font-size: 1.2em; margin: 40px auto 80px auto; }

.selectize-dropdown-header { cursor: pointer; }

#cboxClose { bottom: auto; top: 0; }

#createExport { z-index: 2; background-color: #5b5b5b; color: #ffffff; font-size: 1.2em; height: fit-content; position: fixed; bottom: 0; left: 0; right: 0; text-align: center; padding: 8.5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
#createExport .createPDF, #createExport .createZIP { cursor: pointer; background-color: red; border: 1px solid white; height: 33px; display: flex; align-items: center; justify-content: center; margin: 0; border-radius: 3px; width: 100px; }
#createExport > #createAction { display: none; flex-direction: column; justify-content: center; width: 100%; gap: 10px; }
  #createExport > #createAction .row { width: 100%; margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; }


#createExport .selectedItems { user-select: none; display: flex; align-items: center; padding: 14px; gap: 5px; width: 100px; }
#createExport #selectAllImages { cursor: pointer; width: 100px; background-color: #5db37b; margin-left: 0; display: none; height: 33px; align-items: center; justify-content: center; }
/*#xcreateExport > #tips { cursor: pointer; width: 80px; background-color: #111111; float: right; margin-right: 30px; margin-left: 0; }
*/#xcreateExport > #submitImage { width: 190px; background-color: #111111; margin-left: 20px; }
#xcreateExport > #submitImage a { color: #ffffff !important; text-decoration: none; }

#createExport > .row { width: 100%; display: flex; align-items: center; justify-content: space-evenly; }
#tips { cursor: pointer; display: inline-block; width: 80px; background-color: #111111; float: right; margin-right: 0; margin-left: 0; padding: 5px 15px; }
#shareTheseResults { display: none; cursor: pointer; visibility: hidden; background-color: #111111; float: left; margin-left: 0; padding: 5px 15px;}


#cboxTitle { display: flex; align-items: center; justify-content: center; bottom: 60px; }
#cboxTitle div { padding: 5px; color: black; }
#cboxTitle div:nth-child(2n+1) { text-align: right; font-weight: bold; }
#cboxTitle div:nth-child(2n) { text-align: left; padding: 5px 25px 5px 5px; }
.cboxPhoto { margin-top: 20px !important; }

#cboxCurrent { left: auto; right: 50%; top: 0; color: #000; font-weight: bold; text-transform: uppercase;  }
#cboxPrevious { left: 27px; right: auto; bottom: 50% !important; }
#cboxNext { left: auto; right: 27px; bottom: 50% !important; }

#searching { background: rgba(0,0,0,0.4); }
#searching div { height: 230px; }


.chkWrap { width: 22px; height: 22px; background: red; position: relative; background: #fcfff4; margin: 2px; }
  .chkWrap label { width: 20px; height: 20px; background: blue; cursor: pointer; position: absolute; left: 0px; top: 1px; background: #ffffff; }
.chkWrap label:after { content: ''; width: 9px; height: 5px; position: absolute; top: 6px; left: 6px; border: 2px solid #000000; border-top: none; border-right: none; background: transparent; opacity: 0; transform: rotate(-45deg); }
.chkWrap label:hover::after { opacity: 0.3; }
.chkWrap input[type=checkbox] { visibility: hidden; }
.chkWrap input[type=checkbox]:checked + label:after { opacity: 1; }

.permWrap label:after { border-color: #ffffff; }
.permWrap { float: right; margin: 6px 0 6px 15px; }
.permWrap label { background: #757575; border-radius: 4px; }



/* Share overlay styling */
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    .overlay.active {
      display: flex;
    }

    /* Text box styling */
    .text-box {
      background: #fff;
      border-radius: 8px;
      padding: 15px 20px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      width: fit-content;
      max-width: 80%;
      position: relative;
      display: flex;
      flex-direction: column; /* Stack lorem ipsum and copyable text vertically */
      gap: 10px; /* Space between lorem ipsum and copyable text */
    }

    .text-box .heading {font-size: 24px; font-weight: bold; color: #333333; text-align: center;}

    /* Lorem Ipsum text styling */
    .lorem-text {
      font-family: Arial, sans-serif;
      font-size: 16px;
      color: #666;
      line-height: 1.5;
      max-width: 400px; /* Limit width for readability */
    }

    /* Copyable text container */
    .copyable-container {
      display: flex;
      align-items: center;
      width: fit-content;
      background-color: #eaeaea;
      padding: 5px 10px;
    }

    /* Copyable text styling */
    .txtShareThisLink {
      font-family: Arial, sans-serif;
      font-size: 16px;
      color: #333;
      margin-right: 10px;
      white-space: nowrap;
    }

    /* Copy button styling */
    .copy-btn {
      background: none;
      border: none;
      cursor: pointer;
      padding: 5px;
      display: flex;
      align-items: center;
      transition: transform 0.2s ease;
    }

    .copy-btn:hover {
      transform: scale(1.1);
    }

    /* Copy icon styling */
    .copy-icon {
      stroke: #555;
      transition: stroke 0.2s ease;
    }

    .copy-btn:hover .copy-icon {
      stroke: #007bff;
    }

    .copy-btn.copied .copy-icon {
      stroke: #28a745;
    }

    /* Close button styling */
    .close-btn {
      position: absolute;
      top: -10px;
      right: -10px;
      background: #fff;
      border: none;
      border-radius: 50%;
      width: 24px;
      height: 24px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .close-btn:hover {
      background: #f0f0f0;
    }

    /* Trigger button styling */
    .trigger-btn { padding: 10px 20px; font-size: 16px;background: #007bff; color: #fff; border: none; border-radius: 4px; cursor: pointer;}
    .trigger-btn:hover {background: #0056b3; }


    #xresultsPhotos .results { margin: 25px 0 0 0; display: grid; grid-template-columns: 100%; row-gap: 35px; }
    #xresultsPhotos .results .single { max-width: 285px; margin: 0 auto !important; width: 100% !important; height: fit-content !important; }
    #xresultsPhotos .results .single p { overflow: hidden; margin: 0; display: flex; flex-direction: row; justify-content:flex-end; font-size: 11px; }
    #xresultsPhotos .results .single p.brand { background: #58585a; color: #fff; }
    #xresultsPhotos .results .single p.retailer { background: #0ebabc; color: #fff; }
    #xresultsPhotos .results .single p.date { background: #fff; color: #000; }
    #xresultsPhotos .results .single p span.title { font-weight: bold; width: 58px; text-align: right; padding: 5px 0; }
    #xresultsPhotos .results .single p span.info { width: calc(100% - 58px); text-align: left; padding: 5px 0 5px 5px; }
    #xresultsPhotos .results .single .thumbnail a { display: flex; height: 100%; width: 100%; }
    #xresultsPhotos .results .single .thumbnail a img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
    #xresultsPhotos .results .single .retailerBox { background: #0ebabc; }

    #resultsPhotos .results { display: grid; grid-template-columns: 100%; gap: 10px; }
    #resultsPhotos .results .single { margin: 0; padding: 0; width: 100%; height: fit-content; }



    @media (min-width: 455px) {
      #inStorePhotolibrarySearch .libraryRow { grid-template-columns: repeat(2, calc((100% - 20px) / 2)); }
    }

    @media (min-width: 500px) {
      #resultsPhotos .results { grid-template-columns: repeat(2, calc((100% - 20px) / 2)); column-gap: 20px; }
      #createExport > #createAction { flex-direction: row; }
      #createExport > #createAction .row { width: fit-content; }
    }

    @media (min-width: 655px) {
      #inStorePhotolibrarySearch .libraryRow { grid-template-columns: repeat(3, calc((100% - 40px) / 3)); }
    }

    @media (min-width: 700px) {
      #resultsPhotos .results { grid-template-columns: repeat(3, calc((100% - 40px) / 3)); }
    }

    @media (min-width: 800px) {
      #createExport { flex-direction: row; gap: 20px; justify-content: space-evenly; }
      #createExport > .row { width: 100px; }
      #createExport > #createAction { width: fit-content; gap: 20px; }
      #createExport .selectedItems { padding: 0; width: fit-content; }
      #shareTheseResults { width: 165px; }
      #tips { padding: 5px 15px; display: flex; align-items: center; justify-content: center; margin: 0; }

    }

    @media (min-width: 855px) {
      #inStorePhotolibrarySearch .libraryRow { grid-template-columns: repeat(4, calc((100% - 60px) / 4)); }
    }

    @media (min-width: 1000px) {
      #resultsPhotos .results { max-width: 1200px; margin: 0 auto; grid-template-columns: repeat(4, calc((100% - 60px) / 4));  }
    }

