/* Amazon Dashboard Design System */

:root {
    /* Colors */
    --asp-color-background: #FFFFFF;
    --asp-color-primary: #0F1111;
    --asp-color-secondary: #565959;
    --asp-color-link: #007185;
    --asp-color-link-hover: #C7511F;
    --asp-color-border: #D5D9D9;
    --asp-color-header-bg: #F0F2F2;
    --asp-color-success: #007600;
    --asp-color-button-primary-bg: #FFD814;
    --asp-color-button-primary-border: #FCD200;
    --asp-color-button-secondary-bg: #FFFFFF;
    --asp-color-button-secondary-border: #D5D9D9;

    /* Typography */
    --asp-font-family: "Amazon Ember", Arial, sans-serif;
    --asp-font-size-base: 14px;
    --asp-font-size-header: 18px;
    /* Reduced from 28px per user request */
    --asp-font-size-meta: 12px;

    /* Spacing */
    --asp-spacing-base: 4px;
    /* Grid unit */
    --asp-radius-card: 8px;
    --asp-shadow-card: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* Subtle shadow for secondary buttons mainly */
}

/* Base Override */
.woocommerce-account .woocommerce {
    font-family: var(--asp-font-family);
    color: var(--asp-color-primary);
    max-width: 1000px;
    margin: 0 auto;
    background: var(--asp-color-background);
}

/* Hide Sidebar Globally (Option A) */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    display: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

/* Dashboard Grid (Hub) */
.asp-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.asp-dashboard-card {
    border: 1px solid var(--asp-color-border);
    border-radius: var(--asp-radius-card);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none !important;
    color: var(--asp-color-primary) !important;
}

.asp-dashboard-card:hover {
    background-color: #F7FAFA;
}

.asp-dashboard-card-icon {
    width: 50px;
    height: 50px;
    /* Placeholder for icon styling */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.asp-dashboard-card-content h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: normal;
}

.asp-dashboard-card-content span {
    font-size: 12px;
    color: var(--asp-color-secondary);
}

/* Order Card Group */
.asp-order-card {
    border: 1px solid var(--asp-color-border);
    border-radius: var(--asp-radius-card);
    margin-bottom: 20px;
    overflow: hidden;
}

.asp-order-header {
    background-color: var(--asp-color-header-bg);
    padding: 14px 18px;
    border-bottom: 1px solid var(--asp-color-border);
    display: flex;
    justify-content: space-between;
    font-size: var(--asp-font-size-base);
    color: var(--asp-color-secondary);
}

.asp-order-header-group {
    display: flex;
    gap: 30px;
}

.asp-order-header-label {
    display: block;
    font-size: var(--asp-font-size-meta);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.asp-order-header-value {
    display: block;
    color: var(--asp-color-secondary);
}

.asp-order-body {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.asp-order-item {
    display: flex;
    gap: 20px;
}

.asp-order-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.asp-item-details h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: var(--asp-color-link);
}

.asp-item-details h4 a {
    color: inherit;
    text-decoration: none;
}

.asp-item-details h4 a:hover {
    text-decoration: underline;
    color: var(--asp-color-link-hover);
}

.asp-order-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.asp-btn {
    display: inline-block;
    padding: 6px 14px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 5px 0 rgba(213, 217, 217, .5);
    width: 100%;
}

.asp-btn-primary {
    background-color: var(--asp-color-button-primary-bg);
    border: 1px solid var(--asp-color-button-primary-border);
    color: #0F1111;
}

.asp-btn-secondary {
    background-color: var(--asp-color-button-secondary-bg);
    border: 1px solid var(--asp-color-button-secondary-border);
    color: #0F1111;
}

/* Status Text */
.asp-status-delivered {
    color: var(--asp-color-primary);
    font-weight: 700;
    font-size: 16px;
}

/* Review Page */
.asp-review-page-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.asp-review-star-selector {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.asp-star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.asp-star-btn svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #0F1111;
    /* Outline by default */
    stroke-width: 2px;
}

.asp-star-btn.active svg,
.asp-star-btn:hover svg {
    fill: #FFD814;
    /* Fill on hover/active */
    stroke: #FCD200;
}

.asp-review-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.asp-review-form textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    border: 1px solid var(--asp-color-border);
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Review Status Badges */
.asp-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.asp-badge-pending {
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEeba;
}

.asp-badge-approved {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.asp-badge-rejected {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .asp-order-header {
        flex-direction: column;
        gap: 10px;
    }

    .asp-order-header-group {
        flex-wrap: wrap;
        gap: 15px;
    }

    .asp-order-body {
        flex-direction: column;
    }

    .asp-order-actions {
        width: 100%;
    }
}

/* Wishlist Page Styling (TI WooCommerce Wishlist) - Refined to match View Order Style */
.page-template-default.page.type-page.status-publish .tinv-wishlist {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Wishlist Header matches View Order Header */
.tinv-wishlist .tinv-header h2 {
    font-size: 28px;
    font-weight: 700;
    /* Bold to match Order Page */
    margin-bottom: 20px;
    color: var(--asp-color-primary);
}

/* Table Card Styling - matches .asp-details-card */
.tinv-wishlist .tinvwl-table-manage-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--asp-color-border);
    border-radius: var(--asp-radius-card);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Added shadow */
}

.tinv-wishlist table thead {
    background-color: var(--asp-color-header-bg);
    border-bottom: 1px solid var(--asp-color-border);
}

.tinv-wishlist table thead th {
    padding: 14px 18px;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    color: var(--asp-color-secondary);
    border-bottom: 1px solid var(--asp-color-border);
}

.tinv-wishlist table tbody td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    /* Lighter border for inner items */
    vertical-align: top;
    color: var(--asp-color-primary);
    font-size: 14px;
}

.tinv-wishlist table tbody tr:last-child td {
    border-bottom: none;
}

/* Product Name & Image */
.tinv-wishlist .product-thumbnail img {
    width: 90px;
    height: auto;
    object-fit: contain;
}

.tinv-wishlist .product-name a {
    color: var(--asp-color-link);
    text-decoration: none;
    font-size: 14px;
    /* Reduced to 14px to match Order Items */
    font-weight: 400;
}

.tinv-wishlist .product-name a:hover {
    color: var(--asp-color-link-hover);
    text-decoration: underline;
}

/* Price */
.tinv-wishlist .product-price {
    font-weight: 700;
    color: #B12704;
    /* Amazon Price Red */
    font-size: 18px;
}

.tinv-wishlist .product-price del {
    color: var(--asp-color-secondary);
    font-size: 12px;
    font-weight: 400;
    margin-right: 4px;
}

/* Stock Status */
.tinv-wishlist .wishlist_item_status {
    font-size: 12px;
    color: var(--asp-color-success);
}

/* Buttons */
.tinv-wishlist .product-action button[name="tinvwl-add-to-cart"] {
    background-color: var(--asp-color-button-primary-bg) !important;
    border: 1px solid var(--asp-color-button-primary-border) !important;
    color: #0F1111 !important;
    border-radius: 100px !important;
    /* Pill shape */
    padding: 6px 14px !important;
    font-size: 13px !important;
    cursor: pointer;
    box-shadow: 0 2px 5px 0 rgba(213, 217, 217, .5);
    font-weight: 500;
    text-shadow: none;
    display: inline-flex;
    align-items: center;
}

.tinv-wishlist .product-action button[name="tinvwl-add-to-cart"]:hover {
    background-color: #F7CA00 !important;
    border-color: #F2C200 !important;
    text-decoration: none !important;
}

/* Remove Button / Checkboxes */
.tinv-wishlist .product-remove button {
    color: var(--asp-color-secondary);
    font-size: 20px;
    background: none;
    border: none;
}

.tinv-wishlist .product-remove button:hover {
    color: var(--asp-color-primary);
}

/* Share Buttons */
.tinv-wishlist .tinv-lists-nav {
    border-top: 1px solid var(--asp-color-border);
    margin-top: 20px;
    padding-top: 20px;
}

/* Social Icons */
.tinv-wishlist .social-buttons li a {
    border-radius: 4px;
}