/* CSS admin untuk Unique Code Payment */ 

/* Styling untuk checkout info */
.ucp-checkout-info {
    background: #f7f7f7 !important;
    padding: 15px !important;
    margin: 10px 0 !important;
    border-radius: 5px !important;
    border: 1px solid #ddd !important;
}

.ucp-checkout-info h4 {
    margin: 0 0 10px 0 !important;
    color: #333 !important;
    font-size: 16px !important;
}

.ucp-checkout-info p {
    margin: 5px 0 !important;
    color: #666 !important;
}

/* Styling untuk cart info */
.ucp-cart-info th,
.ucp-cart-info td {
    padding: 8px 12px !important;
    border-bottom: 1px solid #eee !important;
}

.ucp-cart-info th {
    font-weight: bold !important;
    color: #333 !important;
}

/* Styling untuk review order */
.ucp-review-info td {
    padding: 8px 12px !important;
    border-bottom: 1px solid #eee !important;
}

/* Highlight untuk kode unik */
.ucp-code-highlight {
    background: #ffeb3b !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-weight: bold !important;
}

/* Animasi untuk munculnya kode unik */
.ucp-checkout-info {
    transition: all 0.3s ease-in-out !important;
}

.ucp-checkout-info.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.ucp-checkout-info.hide {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
}

/* Styling untuk breakdown kode unik */
.ucp-dp-breakdown {
    transition: all 0.3s ease-in-out !important;
}

.ucp-dp-breakdown.show {
    opacity: 1 !important;
}

.ucp-dp-breakdown.hide {
    opacity: 0 !important;
}

/* Styling untuk panduan nomor HP */
#ucp-phone-guide {
    transition: all 0.3s ease-in-out !important;
}

#ucp-phone-guide p {
    margin: 0 !important;
    color: #1976d2 !important;
    font-size: 14px !important;
}

/* Styling untuk halaman daftar DP */
.ucp-dp-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-box h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
}

/* Styling untuk tabel DP */
.ucp-dp-stats .stat-box:nth-child(1) .stat-number {
    color: #28a745;
}

.ucp-dp-stats .stat-box:nth-child(2) .stat-number {
    color: #ffc107;
}

.ucp-dp-stats .stat-box:nth-child(3) .stat-number {
    color: #dc3545;
}

/* Order status styling */
.order-status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-processing {
    background: #c6e1c6;
    color: #5b841b;
}

.status-on-hold {
    background: #f8dda7;
    color: #94660c;
}

.status-pending {
    background: #c8d7e1;
    color: #2e4453;
}

.status-awaiting-dp {
    background: #ffeb3b;
    color: #f57f17;
}

.status-awaiting-pelunasan {
    background: #ffcdd2;
    color: #c62828;
}

/* DP amount styling */
.dp-amount {
    color: #28a745;
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
    .ucp-checkout-info {
        padding: 10px !important;
        margin: 5px 0 !important;
    }
    
    .ucp-checkout-info h4 {
        font-size: 14px !important;
    }
    
    .ucp-dp-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-box {
        min-width: auto;
    }
}

/* Badge tipe pembayaran */
.badge-success {
  background: #27ae60;
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

/* Styling untuk tombol aksi DP */
.ucp-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.ucp-status-info {
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 6px;
    background: #f8f9fa;
    border-left: 4px solid #007cba;
}

.ucp-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ucp-badge-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.ucp-badge-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ucp-badge-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.ucp-status-desc {
    margin: 4px 0 0 0 !important;
    font-size: 12px !important;
    color: #666 !important;
    line-height: 1.3 !important;
}

.ucp-action-btn {
    width: 100% !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.ucp-action-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.ucp-secondary-actions {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.ucp-secondary-actions .button {
    flex: 1;
    padding: 6px 8px !important;
    font-size: 11px !important;
    border-radius: 4px !important;
}

/* Responsive untuk tombol aksi */
@media (max-width: 1200px) {
    .ucp-action-buttons {
        min-width: 180px;
    }
    
    .ucp-secondary-actions {
        flex-direction: column;
    }
    
    .ucp-secondary-actions .button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .ucp-action-buttons {
        min-width: 150px;
    }
    
    .ucp-status-info {
        padding: 6px;
    }
    
    .ucp-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .ucp-status-desc {
        font-size: 11px !important;
    }
    
    .ucp-action-btn {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
    }
.badge-warning {
  background: #f1c40f;
  color: #222;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}

/* Statistik box */
.ucp-dp-stats {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.stat-box {
  background: #f8fafd;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  padding: 18px 24px;
  min-width: 170px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  text-align: center;
}
.stat-box h3 {
  font-size: 15px;
  margin: 0 0 8px 0;
  color: #555;
}
.stat-number {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Tombol aksi */
.button-success {
  background: #27ae60 !important;
  border-color: #27ae60 !important;
  color: #fff !important;
}
.button-success:hover {
  background: #219150 !important;
  border-color: #219150 !important;
}
.button-primary.button-small {
  background: #2980b9 !important;
  border-color: #2980b9 !important;
  color: #fff !important;
}
.button-primary.button-small:hover {
  background: #206090 !important;
  border-color: #206090 !important;
}
.button[disabled], .button:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* Tabel */
.wp-list-table th, .wp-list-table td {
  vertical-align: middle !important;
  text-align: center;
}
.wp-list-table tr:hover {
  background: #f6fbff;
}
.wp-list-table thead th {
  position: sticky;
  top: 0;
  background: #f4f6f8;
  z-index: 2;
}
.ucp-code-highlight {
  background: #ffe066;
  color: #222;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: bold;
}
.dp-amount {
  color: #27ae60;
  font-weight: bold;
}
.order-status {
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 10px;
  background: #f0f0f0;
  color: #555;
  font-weight: 600;
}
.status-processing { background: #eafaf1 !important; color: #27ae60 !important; }
.status-on-hold { background: #fffbe6 !important; color: #e67e22 !important; }
.status-completed { background: #eaf1fa !important; color: #2980b9 !important; }

/* Responsif */
@media (max-width: 900px) {
  .ucp-dp-stats { flex-direction: column; gap: 10px; }
  .stat-box { min-width: 120px; padding: 12px 10px; }
  .wp-list-table th, .wp-list-table td { font-size: 13px; padding: 6px 4px; }
}

.button.button-small {
  margin-right: 7px;
} 

/* Styling untuk mini-cart/side cart Shoptimizer */
.woocommerce-mini-cart__total {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

/* Harga diskon di mini-cart */
.woocommerce-mini-cart-item .quantity {
    display: block;
    margin-top: 5px;
}

/* Styling untuk harga coret dan diskon di mini-cart */
.woocommerce-mini-cart-item del {
    color: #e74c3c !important;
    font-size: 0.85em !important;
    text-decoration: line-through !important;
}

.woocommerce-mini-cart-item ins {
    color: #27ae60 !important;
    font-weight: bold !important;
    text-decoration: none !important;
    font-size: 1em !important;
}

.woocommerce-mini-cart-item small {
    color: #27ae60 !important;
    font-size: 0.8em !important;
    display: block !important;
    margin-top: 2px !important;
}

/* Responsive untuk mini-cart */
@media (max-width: 768px) {
    .woocommerce-mini-cart-item del,
    .woocommerce-mini-cart-item ins {
        font-size: 0.8em !important;
    }
    
    .woocommerce-mini-cart-item small {
        font-size: 0.75em !important;
    }
}

/* Styling untuk harga per pcs di cart */
.ucp-harga-perpcs {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
    display: block;
}

.ucp-harga-perpcs del {
    color: #e74c3c;
    text-decoration: line-through;
}

.ucp-harga-perpcs ins {
    color: #27ae60;
    font-weight: bold;
    text-decoration: none;
} 

/* Hide WooCommerce order total row on checkout */
.woocommerce-checkout-review-order-table tfoot tr.order-total {
    display: none !important;
} 