/* =========================================
   SHOPEE MOBILE ACCOUNT UI – GLOBAL SECTION
   ========================================= */

:root {
    --shopee-orange: #ff5722;
    --shopee-bg: #f5f5f5;
    --shopee-card: #ffffff;
    --text-dark: #333;
    --text-light: #777;
    --radius: 12px;
}

/* GLOBAL MOBILE FRAME */
.mk-mobile-frame {
    max-width: 480px;
    margin: 0 auto;
    background: var(--shopee-bg);
    min-height: 100vh;
    padding-bottom: 70px;
}

/* HEADER */
.mk-header {
    background: var(--shopee-orange);
    color: #fff;
    padding: 14px 16px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mk-header .mk-back {
    color: #fff;
    font-size: 22px;
    text-decoration: none;
}

/* ACCOUNT WRAPPER */
.mk-account-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
   
}

/* HIDE DEFAULT WC ELEMENTS */
.woocommerce-MyAccount-navigation,
.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    display: none !important;
}

.woocommerce {
    margin: 0 !important;
    padding: 0 !important;
}

.mk-account-content {
    margin-top: 10px;
}

/* GLOBAL CARD STYLE */
.mk-card,
.mk-account-card,
.mk-address-card-item,
.mk-editprofile-card,
.mk-editaddress-card {
    background: var(--shopee-card);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

/* TEXT GLOBAL */
.mk-title {
    font-size: 18px;
    font-weight: 700;
}

.mk-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

.mk-section-title-sm {
    font-size: 15px;
    font-weight: 600;
    margin: 14px 0 8px 0;
}

/* INPUT FORM ELEMENTS */
.mk-form-group {
    margin-bottom: 14px;
}

.mk-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.mk-form-group input,
.mk-form-group select,
.mk-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
}

.mk-form-group input:focus,
.mk-form-group select:focus {
    border-color: var(--shopee-orange);
    outline: none;
}

.mk-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 18px 0;
}

/* BUTTONS */
.mk-btn,
button.mk-btn {
    width: 100%;
    background: var(--shopee-orange);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.mk-btn:active {
    opacity: 0.9;
}

.mk-btn-gray {
    background: #ddd;
    color: #333;
    font-weight: 600;
}
/* =========================================
   SHOPEE ACCOUNT DASHBOARD
   ========================================= */

/* USER CARD ATAS (Dashboard) */
.mk-account-card {
    background: var(--shopee-card);
    padding: 18px 16px;
    border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-top: 16px;
}

.mk-user-name {
    font-size: 18px;
    font-weight: 700;
}

.mk-user-email {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* MENU LIST DASHBOARD */
.mk-menu-list {
    margin-top: 16px;
    background: var(--shopee-card);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 0;
}

/* Item */
.mk-menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f2f2f2;
}

.mk-menu-item:last-child {
    border-bottom: none;
}

.mk-menu-icon {
    font-size: 20px;
    margin-right: 14px;
}

.mk-menu-item a {
    flex: 1;
    font-size: 16px;
    color: #333;
    text-decoration: none;
}

.mk-menu-item a:hover {
    color: var(--shopee-orange);
}

.mk-menu-item a.mk-logout {
    color: #e53935;
    font-weight: 700;
}

/* HOVER EFFECT */
.mk-menu-item:hover {
    background: #fafafa;
}

/* SECTION WRAPPER */
.mk-account-section {
    padding: 0 16px;
    margin-top: 16px;
}
/* ==========================================================
   SHOPEE STYLE - PESANAN SAYA (ORDERS PAGE)
   ========================================================== */

:root {
    --shopee-orange: #ff5722;
    --text-dark: #333;
    --text-light: #888;
    --card-bg: #fff;
    --radius: 12px;
}

/* ==============================
   TAB FILTER SHOPEE
   ============================== */
.mk-order-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.mk-order-tab {
    padding: 7px 16px;
    background: #f3f3f3;
    border-radius: 20px;
    font-size: 14px;
    color: #444;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s;
}

.mk-order-tab.active {
    background: var(--shopee-orange);
    color: #fff;
    font-weight: 600;
}

/* Style scroll agar smooth */
.mk-order-tabs::-webkit-scrollbar {
    display: none;
}


/* ==============================
   CARD ORDER
   ============================== */
.mk-order-card {
    background: var(--card-bg);
    margin: 14px 16px;
    padding: 14px;
    border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

/* Status */
.mk-order-card-status {
    font-size: 13px;
    font-weight: 700;
    color: var(--shopee-orange);
    margin-bottom: 12px;
}

/* Product Row */
.mk-order-card-item {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

/* Thumbnail */
.mk-order-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Info */
.mk-order-info {
    flex: 1;
}

.mk-order-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.mk-order-qty {
    font-size: 13px;
    color: #999;
}

/* Harga */
.mk-order-price {
    font-weight: 700;
    font-size: 15px;
    color: var(--shopee-orange);
}

/* Actions button */
.mk-order-actions {
    margin-top: 12px;
    text-align: right;
}

.mk-order-btn {
    background: var(--shopee-orange);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

/* ==============================
   EMPTY STATE
   ============================== */
.mk-order-empty {
    padding: 50px 20px;
    text-align: center;
    color: #777;
}

.mk-order-empty-icon {
    font-size: 60px;
    opacity: 0.6;
    margin-bottom: 12px;
}

/* ==============================
   MOBILE FIX (max width)
   ============================== */
@media (max-width: 480px) {
    .mk-order-card {
        margin: 14px 10px;
    }
}
/* ==========================================================
   SHOPEE STYLE — ORDER DETAIL PAGE
   Applies to: /woocommerce/myaccount/view-order.php
   ========================================================== */

:root {
    --shopee-orange: #ff5722;
    --card-bg: #fff;
    --radius: 12px;
    --text-dark: #333;
    --text-light: #777;
}

/* Wrapper */
.mk-orderdetail-wrapper {
    padding: 15px;
}

/* ==============================
   STATUS CARD (top big box)
   ============================== */
.mk-status-card {
    background: var(--card-bg);
    padding: 18px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}

.mk-status-icon {
    font-size: 42px;
}

.mk-status-text h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.mk-status-text p {
    margin: 3px 0 0 0;
    font-size: 14px;
    color: var(--text-light);
}

/* ==============================
   INFO CARD (No order, tanggal, email, metode bayar)
   ============================== */
.mk-info-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}

.mk-info-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 700;
}

.mk-info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.mk-info-row span:last-child {
    font-weight: 600;
}

/* ==============================
   ITEMS — produk yg dibeli
   ============================== */
.mk-items-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}

.mk-items-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.mk-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.mk-item-row:last-child {
    border-bottom: none;
}

.mk-item-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.mk-item-info {
    flex: 1;
}

.mk-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.mk-item-qty {
    font-size: 13px;
    color: var(--text-light);
}

.mk-item-total {
    font-size: 14px;
    font-weight: 700;
    color: var(--shopee-orange);
}

/* ==============================
   SHIPPING CARD
   ============================== */
.mk-ship-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}

.mk-ship-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.mk-order-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
}

.mk-order-row span:last-child {
    max-width: 180px;
    text-align: right;
    line-height: 1.4;
}

/* ==============================
   TOTAL CARD
   ============================== */
.mk-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.mk-total-row b {
    color: var(--shopee-orange);
}

/* ==============================
   ACTION BUTTONS
   ============================== */
.mk-thank-actions,
.mk-detail-actions {
    padding: 15px;
    margin-top: 10px;
}

.mk-btn-orange {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--shopee-orange);
    color: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    margin-bottom: 10px;
}

.mk-btn-gray {
    display: block;
    width: 100%;
    padding: 14px;
    background: #e1e1e1;
    color: #333;
    text-align: center;
    font-size: 15px;
    border-radius: 10px;
}
/* ==========================================================
   GLOBAL FORM FIX — WooCommerce My Account (Shopee Style)
   ========================================================== */

.mk-edit-form,
.mk-editprofile-wrapper,
.mk-editaddress-wrapper {
    padding: 15px;
}

.mk-editprofile-card,
.mk-editaddress-card {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}

/* Field wrapper */
.mk-form-group,
.mk-field {
    margin-bottom: 16px;
}

.mk-form-group label,
.mk-field label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    display: block;
}

/* Input Shopee Style */
.mk-field input,
.mk-field select,
.mk-form-group input,
.mk-form-group select,
.mk-form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fafafa;
    font-size: 14px;
    transition: 0.2s ease;
}

.mk-field input:focus,
.mk-field select:focus,
.mk-form-group input:focus,
.mk-form-group select:focus,
.mk-form-group textarea:focus {
    border-color: #ff5722;
    background: #fff;
    outline: none;
}

/* Divider Shopee */
.mk-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 18px 0;
}

/* Buttons */
.mk-save-btn,
.woocommerce-Button.button {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px !important;
    font-weight: 700;
    background: #ff5722 !important;
    color: #fff !important;
    border: none !important;
    margin-top: 10px;
}
/* ==========================================================
   EDIT ALAMAT (edit-address.php)
   ========================================================== */

.mk-editaddress-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.mk-editaddress-card .mk-field input,
.mk-editaddress-card .mk-field select {
    background: #fafafa;
}

.mk-editaddress-card .mk-field input:focus,
.mk-editaddress-card .mk-field select:focus {
    background: #fff;
}

/* Dropdown styling */
.mk-field select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23aaa" height="20" width="20" xmlns="http://www.w3.org/2000/svg"><polygon points="0,0 20,0 10,12"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}
/* ==========================================================
   WOOCOMMERCE NOTICES (Shopee Style)
   ========================================================== */

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    margin: 12px 16px;
    font-size: 14px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}

.woocommerce-message {
    border-left: 4px solid #4caf50;
}

.woocommerce-error {
    border-left: 4px solid #ff3b30;
}

.woocommerce-info {
    border-left: 4px solid #2196f3;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
    list-style: none;
    padding-left: 0;
}
/* Remove duplicate WC page titles */
.woocommerce-account .woocommerce h2,
.woocommerce-account .woocommerce h3,
.woocommerce-account .woocommerce h1 {
    display: none !important;
}
/* Hide WC default save button when using custom */
.woocommerce form .button {
    width: 100%;
    margin-top: 10px;
    border-radius: 10px;
}
/* ==========================================================
   LOGIN PAGE — SHOPEE STYLE
   ========================================================== */

.mk-login-frame {
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 60px;
    background: #f5f5f5;
}

.mk-login-header {
    background: #ff5722;
    color: #fff;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mk-login-back {
    color: #fff;
    font-size: 22px;
    text-decoration: none;
}
.mk-login-card {
    background: #fff;
    padding: 24px 18px;
    margin: 18px;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.mk-login-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #333;
}
.mk-login-form label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.mk-login-form input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fafafa;
    font-size: 14px;
    transition: 0.2s;
    margin-bottom: 14px;
}

.mk-login-form input:focus {
    background: #fff;
    border-color: #ff5722;
    outline: none;
}
.mk-login-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: #ff5722;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    margin-top: 10px;
}
.mk-login-links {
    text-align: center;
    margin-top: 14px;
}

.mk-login-links a {
    color: #ff5722;
    font-size: 14px;
    text-decoration: none;
}
/* ==========================================================
   LOST PASSWORD — SHOPEE STYLE
   ========================================================== */

.mk-lostpass-card {
    background: #fff;
    padding: 24px 18px;
    margin: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mk-lostpass-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.mk-lostpass-card p {
    font-size: 14px;
    color: #777;
    margin-bottom: 16px;
}

.mk-lostpass-form input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fafafa;
    font-size: 14px;
    margin-bottom: 16px;
}
.mk-lostpass-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: #ff5722;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
}
.mk-login-frame .woocommerce-error,
.mk-login-frame .woocommerce-message,
.mk-login-frame .woocommerce-info {
    background: #fff;
    border-left: 4px solid #ff5722;
    padding: 14px;
    margin: 16px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.mk-account-content form {
    max-width: 90%;
    margin: 0 auto;
}

.mk-form-group input,
.mk-form-group select,
.mk-form-group textarea {
    width: 100% !important;
}

.mk-editprofile-card,
.mk-editaddress-card {
    margin: 0 auto;
    max-width: 440px;
}
