/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Đặt popup theo vị trí của trigger */
.account-popup.elementor-popup-modal .dialog-widget-content {
    position: absolute !important;
    top: 60px; /* chỉnh tùy chiều cao header */
    right: 28px;
    left: auto;
    transform: none !important;
    margin: 0 !important;
    border-radius: 16px;
    z-index: 9999;
}

/* Đảm bảo popup không làm dịch layout */
.account-trigger {
    position: relative;
}

/* ===== Woo Login Form – Clean Modern ===== */
.woocommerce form.login {
  border: none;
  margin: 0 auto;
}


.woocommerce form.login label, form.woocommerce-form-register.elib-form {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
}

.woocommerce form.login input.input-text, form.woocommerce-form-register.elib-form .input-text, form.afreg_extra_fields .input-text {
  width: 100%;
  height: 50px !important;
  max-height: 50px !important;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 16px;
  background: #f8f9fb;
  transition: all .2s ease;
}

.woocommerce form.login input.input-text:focus,
form.woocommerce-form-register.elib-form .input-text:focus {
  border-color: #1f3af5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31,58,245,.12);
  outline: none;
}

/* Nút login */
.woocommerce form.login .button,
form.woocommerce-form-register.elib-form .button {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: var(--e-global-color-accent);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}

.woocommerce form.login .button:hover,
form.woocommerce-form-register.elib-form .button:hover {
  background: var(--e-global-color-secondary);
  box-shadow: 0 6px 14px rgba(31,58,245,.18);
}

.woocommerce form.login .button:active,
form.woocommerce-form-register.elib-form .button:active {
  transform: translateY(1px);
}

/* Remember me & link quên mật khẩu */
.woocommerce form.login .woocommerce-LostPassword {
  display: block;
  margin-top: 12px;
}

.woocommerce form.login .woocommerce-LostPassword a {
  color: #1f3af5;
  text-decoration: none;
}

.woocommerce form.login .woocommerce-LostPassword a:hover {
  text-decoration: underline;
}

.woocommerce form.login input[type="checkbox"] {
  margin-right: 6px;
}

/* Đặt lại căn giữa */
.woocommerce form.login .form-row {
  margin-bottom: 16px;
}

.elib-avatar-initials {
    border-radius: 50%;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    display: inline-block;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    cursor: pointer;
    user-select: none;
}

/* ========== SePay - Order received (Thank you page) ========== */
/* Áp dụng riêng cho trang cảm ơn */
.woocommerce-order .woocommerce-sepay-bank-details {
    margin: 32px auto 40px;
    border: none;
    max-width: 100%;
}

/* Box ngoài – giống box SePay ở trang checkout */
.woocommerce-order .woocommerce-sepay-bank-details .sepay-box {
    margin: 0 auto;
    padding: 24px 24px 20px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

/* Tiêu đề */
.woocommerce-order .sepay-box .box-title {
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    margin-bottom: 18px;
}

/* Layout 2 cột: QR + thông tin ngân hàng */
.woocommerce-order .sepay-pay-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .woocommerce-order .sepay-pay-info {
        flex-direction: row;
        align-items: stretch;
    }

    .woocommerce-order .qr-box,
    .woocommerce-order .manual-box {
        flex: 1;
    }
}

/* Khung QR */
.woocommerce-order .qr-box {
    padding: 16px;
    border-radius: 12px;
    background: #f9fafb;
}

.woocommerce-order .qr-title {
    font-weight: 500;
    margin-bottom: 12px;
}

.woocommerce-order .qr-zone {
    position: relative;
    padding: 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px dashed #e5e7eb;
}

.woocommerce-order .qr-element .qr-image {
    display: block;
    width: 210px;
    max-width: 100%;
    margin: 0 auto;
}

/* Nút tải QR */
.woocommerce-order .download-qr,
.woocommerce-order .download-qr a {
    margin-top: 12px;
    text-align: center;
}

.woocommerce-order .download-qr .button-qr {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
}

/* Box thông tin chuyển khoản */
.woocommerce-order .manual-box {
    padding: 16px;
    border-radius: 12px;
    background: #f9fafb;
}

.woocommerce-order .manual-title {
    font-weight: 500;
    margin-bottom: 12px;
}

.woocommerce-order .bank-info-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.woocommerce-order .bank-info-row:last-child {
    border-bottom: none;
}

.woocommerce-order .bank-info-row .bank-info-cell:first-child {
    color: #6b7280;
}

.woocommerce-order .bank-info-value {
    font-weight: 600;
}

/* Các nút "Sao chép" */
.woocommerce-order .copy-button,
.woocommerce-order .copy-account,
.woocommerce-order .copy-amount,
.woocommerce-order .copy-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    margin-left: 6px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 11px;
    cursor: pointer;
}

/* Box lưu ý */
.woocommerce-order .sepay-box .note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fef9c3;
    font-size: 13px;
}

/* Footer trạng thái */
.woocommerce-order .sepay-pay-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ====================================================================== */
/* =========== STYLE ORDER RECEIVED – ORDER DETAILS AREA =============== */
/* ====================================================================== */

/* ============================
   CARD CHO .woocommerce-order-details
   ============================ */

/* Card wrapper */
.woocommerce-order .woocommerce-order-details {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0px 24px 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    margin: 32px auto 40px;
}

/* Tiêu đề "Order details" */
.woocommerce-order .woocommerce-order-details > h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Bảng sản phẩm bên trong */
.woocommerce-order .woocommerce-order-details table.shop_table {
    background: transparent;     /* Không đè lên card */
    box-shadow: none;
    border-radius: 0;
}

/* Header bảng */
.woocommerce-order .woocommerce-order-details table.shop_table thead th {
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ececec;
}

/* Footer cuối bảng (Subtotal, Total) */
.woocommerce-order .woocommerce-order-details table.shop_table tfoot td {
    font-weight: 600;
}

/* Dòng Total nổi bật */
.woocommerce-order .woocommerce-order-details table.shop_table tfoot tr:last-child td {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.woocommerce-order {
    max-width: 860px;
    margin: 40px auto;
}

/* --- Thông báo đầu trang (Your subscription will…) --- */

.woocommerce-order .woocommerce-order-overview {
    margin-bottom: 24px;
    font-size: 15px;
    color: #374151;
}

.woocommerce-order .woocommerce-thankyou-order-received {
    font-size: 25px;
    text-align: center;
    margin-bottom: 40px;
}

/* --- Tiêu đề "Order details" --- */
.woocommerce-order h2 {
    font-size: 20px;
    margin-top: 40px;
    margin-bottom: 16px!important;
    font-weight: 600;
}

/* --- Bảng Order --- */
.woocommerce-order table.shop_table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
}

.woocommerce-order table.shop_table th,
.woocommerce-order table.shop_table td {
    padding: 12px 18px;
    font-size: 13px;
    border: 1px solid #ececec;
}

.woocommerce-order table.shop_table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.woocommerce-order table.shop_table tfoot th {
    font-weight: 500;
}

.woocommerce-order table.shop_table tfoot td {
    font-weight: 600;
}

/* --- Related subscriptions box --- */
.woocommerce-order .related-subscriptions {
    margin-top: 40px;
}

.woocommerce-order .related-subscriptions h2 {
    margin-bottom: 16px;
}

/* Bảng subscription */
.woocommerce-order .subscription_details,
.woocommerce-order .wc-item-meta {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Bảng subscription list */
.woocommerce-order table.subscription_list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.woocommerce-order table.subscription_list th,
.woocommerce-order table.subscription_list td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.woocommerce-order table.subscription_list th {
    background: #f9fafb;
    font-weight: 600;
}

.woocommerce-order table.subscription_list tr:last-child td {
    border-bottom: none;
}

/* --- Billing address box --- */
.woocommerce-order .woocommerce-customer-details {
    display: none;
}

/* --- Typography chung --- */
.woocommerce-order p,
.woocommerce-order span,
.woocommerce-order td {
    color: #374151;
}

/* Ẩn lorem ipsum cuối trang (plugin nào đó chèn) */
.woocommerce-order p:last-of-type {
    display: none;
}

/* Icon trong các nút eLIB */
.elib-btn i {
  margin-right: 6px;     /* khoảng cách icon ↔ text */
  font-size: 0.9em;      /* icon nhỏ hơn text nhẹ */
  vertical-align: middle;
  line-height: 1;
}