/* Container */
h1 {
    font-size: 2.5rem;
}

.cty-rq{max-width:1100px;margin:0 auto;font-family:inherit}
.cty-rq *, .cty-rq *::before, .cty-rq *::after{box-sizing:border-box}

/* 1 kolom (mobile) */
.cty-rq-grid{display:block}

/* 2 kolom tablet/desktop – tanpa grid */
@media(min-width:768px){
  .cty-rq-grid{display:flex;align-items:flex-start}
  .cty-rq-left{width:64%;margin-right:2%}
  .cty-rq-right{width:34%}
}

.cty-rq-left,.cty-rq-right{
  background:#fff;border-radius:16px;box-shadow:0 6px 20px rgba(0,0,0,.07);padding:20px
}

/* Reset bentrok tema/Woo */
.woocommerce .cty-rq .cty-rq-field label,
.cty-rq .cty-rq-field label{display:block;float:none;width:auto;margin:0 0 6px;font-weight:600}

.woocommerce .cty-rq .cty-rq-field input[type="text"],
.woocommerce .cty-rq .cty-rq-field input[type="email"],
.woocommerce .cty-rq .cty-rq-field input[type="tel"],
.cty-rq .cty-rq-field input[type="text"],
.cty-rq .cty-rq-field input[type="email"],
.cty-rq .cty-rq-field input[type="tel"]{
  display:block;float:none;width:100%!important;max-width:100%;
  margin:0;padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff
}

.cty-rq-field{margin-bottom:12px}

/* 3 kolom untuk kecamatan/kota/provinsi */
@media(min-width:768px){
  .cty-rq-rows::after{content:"";display:block;clear:both}
  .cty-rq-rows .cty-rq-field{float:left;width:32%;margin-right:2%}
  .cty-rq-rows .cty-rq-field:nth-child(3n){margin-right:0}
}

.cty-rq-actions{margin-top:16px;display:block;align-items:center}
.cty-rq-actions>*{margin-right:12px}
.cty-rq-actions>*:last-child{margin-right:0}

.cty-rq-btn{appearance:none;border:none;background:#0ea5e9;color:#fff;padding:10px 16px;border-radius:999px;cursor:pointer;font-weight:600;height: 40px;}
.cty-rq-btn[disabled]{opacity:.55;cursor:not-allowed;width: 100%;height:50px;}
.cty-rq-note{font-size:12px;color:#6b7280}

button.cty-rq-btn.cty-rq-generate {
    width: 100%;
    height: 50px;
}

.cty-rq-summary h3{margin:0 0 10px}
.cty-rq-summary-items{min-height:80px;border:1px dashed #e5e7eb;border-radius:10px;padding:10px}
.cty-rq-empty{color:#6b7280;font-style:italic}
.cty-rq-summary-total{display:flex;justify-content:space-between;align-items:center;padding-top:10px;font-size:15px}

/* Modal */
.cty-rq-modal{position:fixed;top:0;left:0;right:0;bottom:0;display:none;z-index:9999}
.cty-rq-modal[aria-hidden="false"]{display:block}
.cty-rq-modal__backdrop{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.45)}
.cty-rq-modal__panel{position:relative;margin:40px auto;max-width:1000px;background:#fff;border-radius:16px;box-shadow:0 6px 20px rgba(0,0,0,.07);display:block;max-height:calc(100vh - 80px)}
.cty-rq-modal__head,.cty-rq-modal__foot{padding:14px 16px;border-bottom:1px solid #f1f5f9}
.cty-rq-modal__foot{border-bottom:none;border-top:1px solid #f1f5f9}
.cty-rq-modal__body{padding:16px;overflow:auto}
.cty-rq-modal__close {
    background: #000;
    border: none;
    font-size: 22px;
    line-height: 0;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 30px;
    min-width: 40px;
    padding: 5px 10px 10px;
    height: 40px;
}
h3#cty-rq-modal-title {
    font-size: 25px;
    margin: 10px 0px 10px;
}
@media(max-width:767px){.cty-rq-modal__panel{margin:0;top:0;left:0;right:0;bottom:0;position:absolute;border-radius:0;max-width:none}}

.cty-rq-searchbar{margin-bottom:10px}
.cty-rq-searchbar input[type="search"]{width:100%;padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px}

/* --- LIST PRODUK: scroll & sticky header --- */
.cty-rq-tablewrap{max-height:55vh;overflow:auto;border:1px solid #f1f5f9;border-radius:10px}
.cty-rq-table{width:100%;border-collapse:collapse;min-width:760px}
.cty-rq-table th,.cty-rq-table td{text-align:left;border-bottom:1px solid #f1f5f9;padding:10px 8px}
.cty-rq-table th{font-weight:700;position:sticky;top:0;z-index:2;background:#fff;box-shadow:inset 0 -1px 0 #f1f5f9}

@media(max-width:640px){
  .cty-rq-modal__panel{max-width:96vw}
  .cty-rq-table{min-width:620px}
  .cty-rq-searchbar input[type="search"]{height:40px}
}

.cty-rq-pagination{display:flex;align-items:center;justify-content:flex-end;padding-top:10px}
.cty-rq-pagebtn{background:#000;border:none;padding:8px 12px;border-radius:8px;cursor:pointer;height:30px;min-width: 60px;}
.cty-rq-pagebtn[disabled]{opacity:.5;cursor:not-allowed}

.cty-rq-honeypot{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

/* Table utilities */
.grq-qty{
  display:inline-flex;align-items:center;overflow:hidden;
  border:0px solid #e5e7eb;border-radius:0px;background:#fff;height:36px
}
.grq-qty .grq-minus,.grq-qty .grq-plus{
  background:#000;color:#fff;border:none;min-width: 20px;
    height: 20px;cursor:pointer;padding:0;line-height:36px
}
.cty-rq-summary h3 {
    margin: 0 0 10px;
    font-size: 17px;
}
.grq-qty .grq-input {
    min-width: 26px;
    text-align: center;
    outline: 0;
    height: 26px;
    background: transparent;
    color: #111;
    width: 40px;
    font-size: 16px;
    margin: 0px;
    border: none;
    padding: 0 0px 0 10px;
}

.grq-detail{margin-top:6px;font-size:13px;background:#fafafa;border:1px solid #f1f5f9;border-radius:8px;padding:8px}
.grq-detail-btn{border:1px solid #e5e7eb;background: #9f9f9f;border-radius:8px;padding:6px 10px;cursor:pointer;min-width: 60px;
    height: 30px;}

.grq-add{border:none;background:#10b981;color:#fff;padding:8px 12px;border-radius:999px;cursor:pointer;font-weight:600;height: 40px;}
.grq-add.is-added{background:#a7f3d0;color:#065f46}

/* --- Modal kecil untuk "Detail" (popup) --- */
.grq-detail-modal{position:fixed;inset:0;z-index:10000;display:flex}
.grq-detail-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.grq-detail-panel{
  position:relative;margin:auto;background:#fff;border-radius:16px;
  max-width:720px;width:92vw;max-height:80vh;overflow:auto;padding:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.2)
}
.grq-detail-close{
  position:absolute;top:10px;right:10px;border:none;background:#000;color:#fff;
  min-width:36px;padding:0;height:36px;border-radius:999px;cursor:pointer;font-size:18px;line-height:1
}
.grq-detail-panel h4{margin:0 0 10px;font-size:18px}
.grq-attr{width:100%;border-collapse:collapse}
.grq-attr th,.grq-attr td{padding:8px;text-align:left;border-bottom:1px solid #f1f5f9}
