/* ==========================================================================
   PENCARIAN WIDGET
   File: pencarian-widget.css
   Class khusus: pnbyw-pc-*
   ========================================================================== */

.widget_pnbyw_pencarian,
.pnbyw-pencarian-widget{
  width:100%;
  max-width:100%;
  margin:0 0 12px !important;
  padding:0 !important;
  box-sizing:border-box !important;
}

/* Card */
.pnbyw-pc-card{
  width:100%;
  max-width:100%;
  margin:0 !important;
  padding:0 !important;

  background:#fff;
  border:.5px solid #e2e4e8;
  border-radius:10px;

  overflow:hidden;
  box-sizing:border-box;
}

/* Header */
.pnbyw-pc-head{
  display:flex;
  align-items:center;
  gap:8px;

  min-height:38px;
  padding:8px 14px;

  background:linear-gradient(135deg,#9a2109,#c0300f);
  color:#fff;

  border-radius:10px 10px 0 0;
  box-sizing:border-box;
}

/* Title */
.pnbyw-pc-title{
  margin:0 !important;
  padding:0 !important;

  color:#fff !important;
  font-family:var(--pnbyw-font-main,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif) !important;
  font-size:13px !important;
  font-weight:700 !important;
  line-height:1.35 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}

/* Body */
.pnbyw-pc-body{
  padding:12px 14px;
  background:#fff;
  box-sizing:border-box;
}

/* Form */
.pnbyw-pc-form{
  width:100%;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box;
}

/* Search field */
.pnbyw-pc-field{
  display:flex;
  align-items:center;

  width:100%;
  min-height:38px;

  background:#f9fafb;
  border:1.5px solid #e2e4e8;
  border-radius:8px;

  overflow:hidden;
  box-sizing:border-box;

  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.pnbyw-pc-field:focus-within{
  background:#fff;
  border-color:#9a2109;
  box-shadow:0 0 0 3px rgba(154,33,9,.08);
}

/* Icon */
.pnbyw-pc-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;

  width:34px;
  height:38px;

  color:#9a2109;
  opacity:.75;
}

.pnbyw-pc-icon svg{
  display:block;
  width:14px;
  height:14px;
}

/* Input */
.pnbyw-pc-input{
  flex:1;
  min-width:0;

  height:38px;
  padding:0 6px;

  background:transparent;
  border:none;
  outline:none;
  box-shadow:none;

  color:#1A1D23;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:11.5px;
  font-weight:500;
  line-height:38px;

  box-sizing:border-box;
}

.pnbyw-pc-input::placeholder{
  color:#9ca3af;
}

/* Button */
.pnbyw-pc-btn{
  flex-shrink:0;

  min-height:38px;
  padding:0 13px;

  background:#9a2109;
  border:none;

  color:#fff;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:11.5px;
  font-weight:700;
  line-height:38px;

  white-space:nowrap;
  cursor:pointer;

  box-sizing:border-box;
  transition:background .2s ease;
}

.pnbyw-pc-btn:hover,
.pnbyw-pc-btn:focus{
  background:#741807;
  color:#fff;
  outline:none;
}

/* Responsive */
@media(max-width:768px){
  .widget_pnbyw_pencarian,
  .pnbyw-pencarian-widget{
    margin-bottom:12px !important;
  }

  .pnbyw-pc-head{
    min-height:38px;
    padding:8px 14px;
  }

  .pnbyw-pc-title{
    font-size:11.5px !important;
  }

  .pnbyw-pc-body{
    padding:12px 14px;
  }

  .pnbyw-pc-input{
    font-size:11.5px;
  }

  .pnbyw-pc-btn{
    font-size:11.5px;
    padding:0 12px;
  }
}

@media(max-width:420px){
  .pnbyw-pc-body{
    padding:12px 14px;
  }

  .pnbyw-pc-icon{
    width:32px;
  }

  .pnbyw-pc-input{
    padding:0 5px;
    font-size:11px;
  }

  .pnbyw-pc-btn{
    min-height:36px;
    padding:0 11px;
    font-size:11px;
    line-height:36px;
  }

  .pnbyw-pc-field{
    min-height:36px;
  }
}
