/* order-received.css - Phiên bản Gradient & Bố cục hàng ngang (Compact Layout) */

:root {
    --mmc-text-dark: #1f2937;
    --mmc-text-gray: #6b7280;
    --mmc-primary: #4f46e5;
    --mmc-glass-bg: rgba(255, 255, 255, 0.9); /* Tăng độ đậm nền để chữ dễ đọc hơn */
    --mmc-glass-border: rgba(255, 255, 255, 0.6);
    --mmc-blur: 24px;
}

/* ==========================================================================
   1. NỀN GRADIENT
   ========================================================================== */
html, body.woocommerce-order-received {
    background-image: none !important;
    /* Gradient xanh tím như file mẫu */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
}

body.woocommerce-order-received #page, 
body.woocommerce-order-received .site-content,
body.woocommerce-order-received .entry-content,
body.woocommerce-order-received #content,
body.woocommerce-order-received .site-inner {
    background: transparent !important;
    box-shadow: none !important;
}

/* ==========================================================================
   2. CẤU TRÚC CHÍNH (LAYOUT)
   ========================================================================== */
.my-custom-order-received-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--mmc-text-dark);
    max-width: 900px;
    margin: 40px auto;
    position: relative;
    z-index: 10;
    padding: 0 15px;
}

.mmc-glass-box {
    background: var(--mmc-glass-bg);
    backdrop-filter: blur(var(--mmc-blur));
    -webkit-backdrop-filter: blur(var(--mmc-blur));
    border: 1px solid var(--mmc-glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Header */
.mmc-header-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mmc-header-section h1 {
    font-size: 24px; /* Giảm cỡ chữ tiêu đề */
    font-weight: 800;
    margin: 0 0 5px 0;
    color: var(--mmc-primary);
}
.mmc-header-section p {
    font-size: 14px;
    color: var(--mmc-text-gray);
    margin: 0;
}

/* Chia cột */
.mmc-split-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ==========================================================================
   3. CỘT TRÁI: PAYMENT CARD (ĐÃ CHỈNH BỐ CỤC ĐÔI & TEXT NHỎ)
   ========================================================================== */
.mmc-payment-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* QR Code */
.mmc-qr-wrapper {
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
    width: 200px; /* Cố định kích thước QR nhỏ gọn */
}
.mmc-qr-wrapper img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* === DANH SÁCH THÔNG TIN (SỬA LẠI THÀNH BỐ CỤC ĐÔI - TRÁI/PHẢI) === */
.mmc-info-list {
    width: 100%;
    margin-top: 10px;
}

.mmc-info-item {
    display: flex;
    justify-content: space-between; /* Đẩy 2 bên ra xa nhau */
    align-items: center; /* Căn giữa theo chiều dọc */
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb; /* Đường kẻ mờ ngăn cách */
}
.mmc-info-item:last-child { border-bottom: none; }

/* Nhãn bên trái (Ngân hàng, STK...) */
.mmc-label {
    font-size: 13px; /* Chữ nhỏ */
    color: var(--mmc-text-gray);
    font-weight: 500;
    flex-shrink: 0; /* Không bị co lại */
}

/* Khu vực giá trị bên phải */
.mmc-value-wrapper {
    display: flex;
    align-items: center;
    gap: 8px; /* Khoảng cách giữa số và nút copy */
    justify-content: flex-end;
    text-align: right;
}

/* Giá trị (Tên NH, Số tiền...) */
.mmc-value {
    font-size: 14px; /* Chữ nhỏ gọn */
    font-weight: 700;
    color: var(--mmc-text-dark);
}
.mmc-value.highlight {
    color: var(--mmc-primary);
    font-size: 15px;
}

/* === NÚT SAO CHÉP (NHỎ GỌN BÊN CẠNH) === */
.mmc-copy-btn {
    background: #f3f4f6;
    color: var(--mmc-text-gray);
    border: none;
    border-radius: 4px;
    padding: 2px 8px; /* Padding nhỏ */
    font-size: 11px;  /* Chữ nút bé */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 600;
    height: 24px; /* Chiều cao cố định */
}
.mmc-copy-btn:hover {
    background: var(--mmc-primary);
    color: #fff;
}
.mmc-copy-btn.copied {
    background: #10b981;
    color: #fff;
}
.mmc-copy-btn .dashicons {
    font-size: 12px; width: 12px; height: 12px; line-height: 1; margin-top: 1px;
}

/* Note Box */
.mmc-note-box {
    margin-top: 20px;
    background: #eef2ff;
    padding: 15px;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
    width: 100%; box-sizing: border-box;
}
.mmc-note-title { font-weight: 700; color: var(--mmc-primary); margin-bottom: 5px; display: block; }
.mmc-memo-wrapper { display: flex; align-items: center; justify-content: center; gap: 8px; }
.mmc-memo-text { font-weight: 800; color: var(--mmc-text-dark); }

/* Nút tải ảnh */
.mmc-action-btn.download {
    margin-top: 5px;
    background: transparent;
    color: var(--mmc-primary);
    border: 1px solid var(--mmc-primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px;
}
.mmc-action-btn.download:hover { background: #eef2ff; }

/* ==========================================================================
   4. CỘT PHẢI: SUMMARY
   ========================================================================== */
.mmc-summary-card {
    padding: 10px 0 10px 30px;
    border-left: 1px solid rgba(0,0,0,0.05);
}
.mmc-section-title {
    font-size: 12px; text-transform: uppercase; color: var(--mmc-text-gray); font-weight: 700; margin-bottom: 15px; display: block;
}
.mmc-item-row {
    display: flex; justify-content: space-between; font-size: 13px;
    padding: 8px 0; border-bottom: 1px dashed #e5e7eb;
}
.mmc-total-row {
    display: flex; justify-content: space-between; font-size: 16px;
    font-weight: 800; margin-top: 15px; padding-top: 15px; border-top: 2px solid #e5e7eb;
    color: var(--mmc-primary);
}
.mmc-address-mini { font-size: 13px; color: var(--mmc-text-gray); line-height: 1.5; }
.mmc-address-mini strong { color: var(--mmc-text-dark); display: block; margin-bottom: 3px; }

/* Toast */
.mmc-toast-notification {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(30px);
    background: rgba(17, 24, 39, 0.9); color: #fff; padding: 10px 20px;
    border-radius: 30px; font-size: 13px; opacity: 0; visibility: hidden;
    transition: all 0.3s; z-index: 99999; display: flex; align-items: center; gap: 6px;
}
.mmc-toast-notification.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    .mmc-split-layout { grid-template-columns: 1fr; gap: 30px; }
    .mmc-summary-card { padding-left: 0; border-left: none; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 20px; }
    .mmc-payment-card { order: 1; } .mmc-summary-card { order: 2; }
}