.tk-pdf-card{
  width:100%;
  margin:24px 0;
  text-align:left;
}

.tk-pdf-trigger{
  position:relative;
  display:block;
  width:100%;
  margin:0;
  padding:0;
  overflow:hidden;
  background:#f5f5f5;
  border:1px solid #ddd;
  border-radius:8px;
  box-shadow:0 4px 16px rgba(0,0,0,.12);
  cursor:zoom-in;
}

.tk-pdf-trigger img{
  display:block;
  width:100%;
  height:100%;
  margin:0;
  object-fit:contain;
  background:#fff;
}

.tk-pdf-trigger:hover{
  opacity:.94;
}

.tk-pdf-zoom{
  position:absolute;
  right:8px;
  bottom:8px;
  padding:6px 9px;
  color:#fff;
  background:rgba(0,0,0,.72);
  border-radius:4px;
  font-size:12px;
  line-height:1.3;
}

.tk-pdf-fallback{
  display:flex;
  height:100%;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:20px;
  box-sizing:border-box;
}

.tk-pdf-icon{
  display:inline-block;
  padding:14px 18px;
  color:#fff;
  background:#b3261e;
  border-radius:6px;
  font-size:24px;
  font-weight:700;
}

.tk-pdf-title{
  color:#222;
  font-size:15px;
  font-weight:700;
}

.tk-pdf-direct-link{
  display:inline-block;
  margin-top:12px;
  padding:9px 18px;
  color:#fff!important;
  background:#333;
  border-radius:6px;
  font-weight:700;
  text-decoration:none!important;
}

.tk-pdf-modal{
  display:none;
  position:fixed;
  z-index:9999999;
  top:0;
  right:0;
  bottom:0;
  left:0;
  padding:58px 12px 12px;
  background:rgba(0,0,0,.9);
  box-sizing:border-box;
}

.tk-pdf-modal.is-open{
  display:block;
}

.tk-pdf-modal-inner{
  width:100%;
  max-width:1200px;
  height:100%;
  margin:0 auto;
  background:#fff;
  border-radius:8px;
  overflow:hidden;
}

.tk-pdf-modal-frame{
  display:block;
  width:100%;
  height:100%;
  border:0;
  background:#fff;
  touch-action:pan-x pan-y pinch-zoom;
}

.tk-pdf-modal-close{
  position:fixed;
  z-index:10000000;
  top:10px;
  right:14px;
  width:42px;
  height:42px;
  margin:0;
  padding:0;
  color:#fff;
  background:#222;
  border:1px solid #fff;
  border-radius:50%;
  font-size:28px;
  line-height:38px;
  cursor:pointer;
}

.tk-pdf-error{
  padding:10px 12px;
  color:#a00;
  background:#fff2f2;
  border:1px solid #e4b6b6;
}

@media(max-width:600px){
  .tk-pdf-modal{
    padding:52px 0 0;
    background:#111;
  }

  .tk-pdf-modal-inner{
    width:100vw;
    max-width:none;
    height:calc(100vh - 52px);
    height:calc(100dvh - 52px);
    margin:0;
    border-radius:0;
  }

  .tk-pdf-modal-frame{
    width:100vw;
    height:100%;
  }

  .tk-pdf-modal-close{
    top:6px;
    right:8px;
    width:40px;
    height:40px;
    font-size:27px;
    line-height:36px;
  }
}
