.po-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 16px 48px;
}
.po-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}
.po-head__orders {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.po-head__orders i {
    font-size: 0.75rem;
}
.po-head__orders:hover {
    background: #111827;
    border-color: #111827;
    color: #fff;
}
.po-head h1 {
    margin: 0 0 6px;
    font-size: 1.7rem;
    font-weight: 700;
}
.po-head p,
.po-note {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}
.po-search {
    display: flex;
    gap: 8px;
    margin: 0 0 18px;
}
.po-search__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #6b7280;
}
.po-search__field:focus-within {
    border-color: #111827;
    color: #111827;
}
.po-search__field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #111827;
}
.po-search__btn {
    appearance: none;
    min-width: 88px;
    min-height: 44px;
    padding: 0 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}
.po-search__btn:hover {
    background: #111827;
    border-color: #111827;
    color: #fff;
}
.po-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.po-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.po-card img,
.po-photo {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #f3f4f6;
    display: block;
}
.po-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 2rem;
}
.po-card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.po-card h2,
.po-detail h2 {
    margin: 0;
    font-size: 1.05rem;
}
.po-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #374151;
    font-size: 0.92rem;
}
.po-price {
    font-weight: 700;
    color: #1d4ed8;
}
.po-btn,
.po-btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 0;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}
.po-btn-line {
    background: #fff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.po-btn-batal {
    width: 100%;
    margin-top: 6px;
    background: #fff;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.po-btn-batal:hover {
    background: #fef2f2;
    color: #991b1b;
}
.po-gateway {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    min-height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
}
.po-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.45);
}
.po-modal[hidden] {
    display: none;
}
.po-modal__card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}
.po-modal__card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}
.po-modal__card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}
.po-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}
.po-modal__actions .po-btn,
.po-modal__actions .po-btn-line,
.po-modal__actions .po-btn-batal {
    width: auto;
    margin-top: 0;
}
.po-modal__card--terms {
    width: min(560px, 100%);
    max-height: min(86vh, 720px);
    overflow: auto;
}
.po-modal__card h4 {
    margin: 16px 0 8px;
    font-size: 0.95rem;
}
.po-modal__amount {
    margin: 10px 0 6px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1d4ed8;
}
.po-terms {
    margin: 0;
    padding-left: 1.4em;
    color: #374151;
    line-height: 1.5;
    list-style: decimal;
}
.po-terms li + li {
    margin-top: 8px;
}
.po-terms li::marker {
    font-weight: 700;
    color: #111827;
}
.po-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    color: #111827;
    line-height: 1.45;
}
.po-agree input {
    margin-top: 3px;
}
.po-modal__actions .po-btn:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}
.po-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
#poOrderForm.po-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
}
#poOrderForm > .po-btn,
#poOrderForm > .po-btn-line {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
#poOrderForm > .po-btn {
    flex: 1 1 220px;
}
#poOrderForm > .po-btn-line {
    flex: 0 0 auto;
    min-width: 120px;
}
#poOrderForm > .po-btn i,
#poOrderForm > .po-btn-line i {
    font-size: 0.75rem;
    line-height: 1;
}
#poOrderForm > .po-btn:hover,
#poOrderForm > .po-btn-line:hover {
    background: #111827;
    color: #fff;
    border-color: #111827;
    transform: translateY(-1px);
}
.po-card .po-actions {
    display: block;
    width: 100%;
    margin-top: 14px;
}
.po-card .po-card-btn {
    appearance: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0.01em;
    color: #111827 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.po-card .po-card-btn i {
    font-size: 0.75rem;
    line-height: 1;
}
.po-card .po-card-btn:hover {
    background: #111827 !important;
    color: #fff !important;
    border-color: #111827 !important;
    transform: translateY(-1px);
}
.po-detail {
    display: grid;
    grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
    gap: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
}
.po-detail img,
.po-detail .po-photo {
    width: 100%;
    height: 360px;
    border-radius: 12px;
}
.po-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0;
}
.po-fact {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
}
.po-fact span {
    display: block;
    color: #6b7280;
    font-size: 0.8rem;
    margin-bottom: 4px;
}
.po-fact strong {
    font-size: 1rem;
}
.po-alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
}
.po-alert-ok { background: #ecfdf5; color: #065f46; }
.po-alert-bad { background: #fef2f2; color: #991b1b; }
.po-table-wrap { overflow-x: auto; }
.po-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.po-table th,
.po-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
}
.po-table th { background: #f8fafc; }
.po-item-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}
.po-item-cell img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background: #f3f4f6;
    flex: 0 0 64px;
}
.po-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 0.78rem;
    font-weight: 600;
}
@media (max-width: 760px) {
    .po-detail,
    .po-facts,
    .po-head { grid-template-columns: 1fr; display: block; }
    .po-head { display: block; }
    .po-detail img,
    .po-detail .po-photo { height: 240px; margin-bottom: 12px; }
}
