/* ================================================================
   TARIF PER NEGARA — Ringkasan, Contoh Ongkir, FAQ, Negara Lain
   Prefix: tp-  (melengkapi tarif-pengiriman.css)
   ================================================================ */

/* Jawaban singkat */
.tp-answer {
    display: flex; gap: 14px; align-items: flex-start;
    margin: 0 0 16px; padding: 18px 20px;
    background: linear-gradient(135deg, #ECFBF9 0%, #F7FDFC 100%);
    border: 1px solid #CDEFEB; border-left: 4px solid #2CC5BD;
    border-radius: var(--r-lg, 16px);
}
.tp-answer-ic {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center;
    background: #2CC5BD; color: #fff; font-size: 16px;
}
.tp-answer-q { font-size: 16px; font-weight: 800; color: var(--gray-900, #111827); margin: 2px 0 6px; line-height: 1.35; }
.tp-answer-a { font-size: 14px; line-height: 1.7; color: var(--gray-600, #4B5563); margin: 0; }

/* Judul seksi */
.tp-ex, .tp-faq, .tp-oth { margin-top: 32px; }
.tp-sec2-head { margin-bottom: 14px; }
.tp-sec2-title { font-size: 19px; font-weight: 800; color: var(--gray-900, #111827); margin: 0 0 4px; line-height: 1.35; }
.tp-sec2-desc { font-size: 13.5px; color: var(--gray-500, #6B7280); margin: 0; }

/* Contoh ongkir */
.tp-ex-wrap {
    background: var(--white, #fff); border: 1px solid var(--gray-200, #E5E7EB);
    border-radius: var(--r-lg, 16px); overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.tp-ex-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.tp-ex-table th {
    text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
    color: #0F8A80; background: #F2FBFA; padding: 12px 16px; border-bottom: 1px solid #DDF3F0; white-space: nowrap;
}
.tp-ex-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100, #F3F4F6); white-space: nowrap; }
.tp-ex-table tbody tr:last-child td { border-bottom: 0; }
.tp-ex-table tbody tr:hover td { background: #FAFEFE; }
.tp-ex-w { font-weight: 700; color: var(--gray-900, #111827); }
.tp-ex-v { font-weight: 600; color: var(--gray-700, #374151); font-variant-numeric: tabular-nums; }
.tp-ex-note { display: flex; gap: 8px; font-size: 12.5px; color: var(--gray-500, #6B7280); margin: 10px 2px 0; line-height: 1.6; }
.tp-ex-note i { color: #2CC5BD; margin-top: 3px; }

/* FAQ */
.tp-faq-list { display: flex; flex-direction: column; gap: 10px; }
.tp-faq-item {
    background: var(--white, #fff); border: 1px solid var(--gray-200, #E5E7EB);
    border-radius: 14px; transition: border-color .2s, box-shadow .2s;
}
.tp-faq-item[open] { border-color: #BDEBE6; box-shadow: 0 4px 14px rgba(15, 138, 128, .06); }
.tp-faq-item summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
    padding: 15px 18px; font-size: 14.5px; font-weight: 700; color: var(--gray-900, #111827); line-height: 1.45;
}
.tp-faq-item summary::-webkit-details-marker { display: none; }
.tp-faq-item summary span { flex: 1; }
.tp-faq-item summary i { font-size: 12px; color: #2CC5BD; transition: transform .2s; flex-shrink: 0; }
.tp-faq-item[open] summary i { transform: rotate(180deg); }
.tp-faq-item summary:focus { outline: none; }
.tp-faq-item summary:focus-visible { outline: 2px solid #2CC5BD; outline-offset: 2px; border-radius: 14px; }
.tp-faq-a { padding: 0 18px 16px; font-size: 14px; line-height: 1.75; color: var(--gray-600, #4B5563); }
.tp-faq-a a { color: #0F8A80; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Negara lain */
.tp-oth-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tp-oth-chip {
    display: flex; align-items: center; gap: 8px; min-width: 0;
    padding: 10px 12px; background: var(--white, #fff);
    border: 1px solid var(--gray-200, #E5E7EB); border-radius: 12px;
    font-size: 13px; font-weight: 600; color: var(--gray-700, #374151); text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}
.tp-oth-chip span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-oth-chip:hover { border-color: #2CC5BD; color: #0F8A80; background: #F4FCFB; }
.tp-oth-flag { font-size: 18px; line-height: 1; flex-shrink: 0; }

@media (max-width: 991.98px) {
    .tp-oth-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .tp-answer { padding: 14px 15px; gap: 12px; }
    .tp-answer-ic { width: 32px; height: 32px; font-size: 14px; }
    .tp-answer-q { font-size: 15px; }
    .tp-answer-a { font-size: 13.5px; }
    .tp-sec2-title { font-size: 17px; }
    .tp-ex-table { font-size: 12.5px; min-width: 0; }
    .tp-ex-table th { font-size: 10px; letter-spacing: .2px; white-space: normal; line-height: 1.3; vertical-align: bottom; }
    .tp-ex-table th, .tp-ex-table td { padding: 10px 9px; }
    .tp-ex-table th:first-child, .tp-ex-table td:first-child { padding-left: 12px; }
    .tp-faq-item summary { padding: 13px 14px; font-size: 14px; }
    .tp-faq-a { padding: 0 14px 14px; font-size: 13.5px; }
    .tp-oth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tp-oth-chip { font-size: 12.5px; padding: 9px 10px; align-items: flex-start; }
    .tp-oth-chip span:last-child { white-space: normal; line-height: 1.35; }
    .tp-oth-flag { margin-top: 1px; }
}

/* Bendera SVG */
.tp-oth-flag img { display: block; width: 22px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.tp-country-flag img { display: block; width: 46px; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }

/* Tanpa garis fokus saat diklik; tetap ada untuk navigasi keyboard */
.tp-oth-chip:focus { outline: none; }
.tp-oth-chip:focus-visible { outline: 2px solid #2CC5BD; outline-offset: 2px; }

/* Barang boleh / dilarang */
.tp-reg { margin-top: 32px; }
.tp-reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tp-reg-card { background: var(--white, #fff); border: 1px solid var(--gray-200, #E5E7EB); border-radius: 14px; padding: 16px 18px; }
.tp-reg-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; margin-bottom: 10px; }
.tp-reg-no .tp-reg-head { color: #C53030; }
.tp-reg-yes .tp-reg-head { color: #0F8A80; }
.tp-reg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.tp-reg-list li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.5; color: var(--gray-700, #374151); }
.tp-reg-list li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; }
.tp-reg-no .tp-reg-list li::before { background: #F4B4B4; }
.tp-reg-yes .tp-reg-list li::before { background: #2CC5BD; }
.tp-reg-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: #0F8A80; text-decoration: none; }
.tp-reg-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.tp-reg-more i { font-size: 11px; }

/* Tombol "Lihat semua negara" */
.tp-oth-all { justify-content: space-between; background: #F2FBFA; border-color: #CDEFEB; color: #0F8A80; }
.tp-oth-all i { font-size: 11px; }

@media (max-width: 575.98px) {
    .tp-reg-grid { grid-template-columns: 1fr; }
    .tp-reg-card { padding: 14px 15px; }
}
.tp-faq-hub { margin: 8px 0 40px; }