.justime-image-search-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;background:#fff;border:1px solid #d2d6dd;color:#444;border-radius:6px;padding:8px 10px;vertical-align:middle;transition:background .15s}
.justime-image-search-trigger:hover,.justime-image-search-trigger:focus{background:#f1f2f5;color:#111;outline-offset:2px}
.justime-image-search-trigger svg{height:21px;width:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.justime-camera-desktop{border-radius:30px;margin-right:5px;padding:8px}
.justime-camera-mobile{flex-shrink:0;min-width:43px;min-height:43px}
.justime-camera-page{margin:0 0 22px;background:#fafafa}
.justime-image-modal[hidden]{display:none!important}
.justime-image-modal{position:fixed;inset:0;background:rgba(10,18,28,.68);z-index:999999;display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto}
.justime-image-dialog{background:white;color:#222;width:min(900px,100%);max-height:calc(100vh - 32px);overflow-y:auto;border-radius:14px;box-shadow:0 12px 48px rgba(0,0,0,.22);padding:22px;position:relative}
.justime-image-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:10px}
.justime-image-title{margin:0;font-size:21px;font-weight:600}
.justime-image-close{background:transparent;border:0;font-size:28px;cursor:pointer;line-height:1.2;padding:2px 8px}
.justime-image-desc{color:#666;font-size:14px;line-height:1.65;margin-bottom:17px}
.justime-image-actions{display:flex;gap:10px;flex-wrap:wrap}
.justime-image-actions button{border:1px solid #444;border-radius:6px;background:#333;color:white;padding:11px 16px;cursor:pointer}
.justime-image-actions button:nth-child(2){background:#fff;color:#333}
.justime-image-status{font-size:14px;margin:16px 0;color:#555}
.justime-image-preview{display:none;max-height:180px;max-width:100%;object-fit:contain;margin:12px auto}
.justime-image-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.justime-image-result{min-width:0;border:1px solid #eee;border-radius:8px;padding:8px;text-decoration:none!important;color:#333!important}
.justime-image-result img{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#f7f7f7;border-radius:5px}
.justime-image-result strong{display:block;font-size:12px;margin:8px 0 3px}
.justime-image-result span{display:block;font-size:13px;overflow-wrap:anywhere}
@media(max-width:767px){.justime-image-dialog{padding:16px}.justime-image-title{font-size:18px}.justime-image-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.justime-image-actions button{flex:1}}
/* Fix IIS/Bootstrap CSS overriding native hidden file inputs */
.justime-image-dialog input[type="file"]{display:none!important;position:absolute!important;visibility:hidden!important}

/* JUSTIME header: keep text search, photo button and submit aligned.
   Override Bootstrap table-cell .input-group and the legacy right:48px offset. */
@media (min-width: 768px) {
  #searchform1 .search-bar-wrapper .input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
  }
  #searchform1 .search-bar-wrapper .input-group > input.form-control[name="q"] {
    display: block;
    flex: 1 1 auto;
    float: none;
    width: 1%;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding-right: 48px;
    box-sizing: border-box;
  }
  #searchform1 .search-bar-wrapper .input-group > .input-group-btn {
    position: static;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    height: 48px;
    margin-left: -42px;
    white-space: nowrap;
    z-index: 4;
  }
  #searchform1 .search-bar-wrapper .justime-camera-desktop {
    display: inline-flex;
    position: relative;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    margin: 0 8px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    vertical-align: middle;
    line-height: 1;
  }
  #searchform1 .search-bar-wrapper .justime-camera-desktop:hover,
  #searchform1 .search-bar-wrapper .justime-camera-desktop:focus-visible {
    background: #f2f2f2;
  }
  #searchform1 .search-bar-wrapper .justime-camera-desktop svg {
    display: block;
    width: 21px;
    height: 21px;
  }
  #searchform1 .search-bar-wrapper .btn-search-circle {
    position: relative;
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    line-height: 1;
    vertical-align: middle;
  }
}

/* JUSTIME refined search UI v3 — one compact search capsule. */
@media(min-width:768px){
 #searchform1 .search-bar-wrapper{top:16px;right:22px;width:clamp(255px,25vw,362px);max-width:calc(100vw - 36px);z-index:110;}
 #searchform1 .search-bar-wrapper .input-group{position:relative;display:flex;align-items:center;height:46px;width:100%;overflow:visible;background:#fff;border:1px solid #dbdddf;border-radius:27px;box-shadow:0 2px 12px rgba(25,29,32,.045);transition:border-color .2s,box-shadow .2s;}
 #searchform1 .search-bar-wrapper .input-group:focus-within{border-color:#9b8976;box-shadow:0 0 0 3px rgba(161,139,118,.13),0 3px 16px rgba(0,0,0,.045);}
 #searchform1 .search-bar-wrapper .input-group > input.form-control[name="q"]{flex:1 1 auto;width:100%;min-width:0;height:44px;padding:0 100px 0 19px;border:0!important;border-radius:27px!important;background:transparent!important;box-shadow:none!important;outline:0!important;font-size:13px;color:#303439;line-height:44px;-webkit-appearance:none;appearance:none;}
 #searchform1 .search-bar-wrapper .input-group > input.form-control[name="q"]::placeholder{color:#969a9f;opacity:1;}
 #searchform1 .search-bar-wrapper .input-group > .input-group-btn{position:absolute;top:2px;right:3px;bottom:2px;display:flex;align-items:center;justify-content:flex-end;gap:3px;z-index:5;height:auto;width:84px;margin:0;padding:0;background:transparent;}
 #searchform1 .search-bar-wrapper .justime-camera-desktop{flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;margin:0;padding:0;border:0;background:transparent;color:#64696b;border-radius:50%;box-shadow:none;transition:background .18s,color .18s;}
 #searchform1 .search-bar-wrapper .justime-camera-desktop:hover,#searchform1 .search-bar-wrapper .justime-camera-desktop:focus-visible{background:#f2f0ed;color:#5d4934;outline:0;}
 #searchform1 .search-bar-wrapper .justime-camera-desktop svg{width:19px;height:19px;}
 #searchform1 .search-bar-wrapper .btn-search-circle{position:static;display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;margin:0;padding:0;border:0;border-radius:50%!important;background:#35383a;color:#fff;box-shadow:none;line-height:1;transition:background .18s,transform .18s;}
 #searchform1 .search-bar-wrapper .btn-search-circle:hover,#searchform1 .search-bar-wrapper .btn-search-circle:focus-visible{background:#85705b;outline:0;}
 #searchform1 .search-bar-wrapper .btn-search-circle .myicon{font-size:18px;line-height:1;}
}
@media(min-width:768px) and (max-width:1050px){#searchform1 .search-bar-wrapper{right:12px;width:245px;}#searchform1 .search-bar-wrapper .input-group > input.form-control[name="q"]{padding-left:14px;font-size:12px;}}
@media(max-width:767px){
 #search-modal .topnav-search-content{padding:23px 18px 25px;box-shadow:0 14px 35px rgba(0,0,0,.12);}
 #search-modal .justime-mobile-search-input{border-color:#e0e1e2;background:#f8f8f7;}
 #search-modal .justime-camera-mobile{display:inline-flex;align-items:center;justify-content:center;flex:0 0 49px;width:49px;height:49px;min-width:49px;min-height:49px;margin:0;padding:0;border:1px solid #d7d9da;background:#fff;color:#45484a;border-radius:12px;}
 #search-modal .justime-camera-mobile:hover,#search-modal .justime-camera-mobile:focus-visible{background:#f1f0ee;border-color:#a18b76;outline:0;}
 #search-modal .justime-mobile-search-submit{border-color:#35383a;background:#35383a;}
 #search-modal .justime-mobile-search-submit:focus-visible{outline:2px solid #a18b76;outline-offset:2px;}
}
@media(max-width:370px){#search-modal .justime-mobile-search-row{gap:6px;}#search-modal .justime-camera-mobile{flex-basis:44px;width:44px;min-width:44px;}#search-modal .justime-mobile-search-submit{min-width:62px;padding:0 11px;}#search-modal .justime-mobile-search-input{padding:0 10px;gap:6px;}}
@media(prefers-reduced-motion:reduce){#searchform1 .search-bar-wrapper .input-group,#searchform1 .search-bar-wrapper button{transition:none!important;}}
