/**
 * WooCommerce My Account Styles
 *
 * Minimalist styling for WooCommerce my-account page.
 *
 * @package RedPro
 */

/* clean */

.woocommerce-cart-form__cart-item.cart_item .product-thumbnail {
    display: none !important;
}

/* ========================================
   WooCommerce My Account Page
   ======================================== */

.woocommerce-account .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation Menu */
.woocommerce-MyAccount-navigation {
    width: 100%;
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
    flex: 1;
    min-width: 150px;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 18px 24px;
    text-decoration: none;
    color: #100F0C;
    font-weight: 500;
    font-size: 15px;
    border-right: 1px solid #ededed;
    transition: all 0.2s ease;
    text-align: center;
}

.woocommerce-MyAccount-navigation li:last-child a {
    border-right: none;
}

.woocommerce-MyAccount-navigation li a:hover {
    background: #f8f8f9;
    color: #182E52;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: #182E52;
    color: #fff;
    font-weight: 600;
}

/* Content Area */
.woocommerce-MyAccount-content {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 30px;
}

/* Tables */
.woocommerce-MyAccount-content table.shop_table {
    border: 1px solid #ededed;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-MyAccount-content table.shop_table thead {
    background: #f8f8f9;
}

.woocommerce-MyAccount-content table.shop_table thead th {
    padding: 16px;
    font-weight: 600;
    color: #182E52;
    border-bottom: 2px solid #ededed;
    text-align: left;
}

.woocommerce-MyAccount-content table.shop_table tbody td {
    padding: 16px;
    border-bottom: 1px solid #ededed;
    vertical-align: middle;
}

.woocommerce-MyAccount-content table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-MyAccount-content table.shop_table tbody tr:hover {
    background: #f8f8f9;
}

/* Buttons */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content .woocommerce-button,
.woocommerce-MyAccount-content .woocommerce-Button {
    background: transparent;
    color: #182E52;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #182E52;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    display: block;
    width: fit-content;
    margin: 10px 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content .woocommerce-button:hover,
.woocommerce-MyAccount-content .woocommerce-Button:hover {
    background: #182E52;
    color: #fff;
    border-color: #182E52;
}

/* Primary buttons */
.woocommerce-MyAccount-content .button.alt,
.woocommerce-MyAccount-content .woocommerce-button.alt {
    background: #182E52;
    color: #fff;
    border-color: #182E52;
}

.woocommerce-MyAccount-content .button.alt:hover,
.woocommerce-MyAccount-content .woocommerce-button.alt:hover {
    background: #104279;
    border-color: #104279;
}

/* Table action buttons */
.woocommerce-MyAccount-content table.shop_table .button,
.woocommerce-MyAccount-content table.shop_table .woocommerce-button {
    display: inline-block;
    width: auto;
    margin: 5px 5px 5px 0;
    padding: 8px 16px;
    font-size: 13px;
}

/* Order Status Badges */
.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status mark {
    background: #C4E4E4;
    color: #182E52;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 13px;
}

.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status mark.status-completed {
    background: #72C6CD;
    color: #fff;
}

.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status mark.status-processing {
    background: #104279;
    color: #fff;
}

.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status mark.status-on-hold {
    background: #f0ad4e;
    color: #fff;
}

.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status mark.status-cancelled,
.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status mark.status-failed {
    background: #d9534f;
    color: #fff;
}

/* Empty State / Messages */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-Message {
    background: #f8f8f9;
    border-left: 4px solid #182E52;
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

/* Remove default ::before icon that overlaps text */
.woocommerce-MyAccount-content .woocommerce-message::before,
.woocommerce-MyAccount-content .woocommerce-info::before,
.woocommerce-MyAccount-content .woocommerce-Message::before {
    display: none !important;
}

/* Message buttons */
.woocommerce-MyAccount-content .woocommerce-message .button,
.woocommerce-MyAccount-content .woocommerce-info .button,
.woocommerce-MyAccount-content .woocommerce-Message .button,
.woocommerce-MyAccount-content .woocommerce-Message .woocommerce-Button {
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation li {
        width: 100%;
    }

    .woocommerce-MyAccount-navigation li a {
        border-right: none;
        border-bottom: 1px solid #ededed;
    }

    .woocommerce-MyAccount-navigation li:last-child a {
        border-bottom: none;
    }

    .woocommerce-MyAccount-content {
        padding: 20px;
    }

    .woocommerce-MyAccount-content table.shop_table {
        font-size: 14px;
    }

    .woocommerce-MyAccount-content table.shop_table thead th,
    .woocommerce-MyAccount-content table.shop_table tbody td {
        padding: 12px 8px;
    }
}

/* ========================================
   Active Subscriptions Shortcode
   ======================================== */

.prord-subscriptions-wrapper {
    max-width: 100%;
}

.prord-no-subscriptions {
    text-align: center;
    padding: 40px 20px;
    background: #f8f8f9;
    border-radius: 8px;
    border: 1px solid #ededed;
}

.prord-no-subscriptions p {
    margin-bottom: 20px;
    color: #666;
}

.prord-no-subscriptions .prord-button {
    display: inline-block;
    background: #182E52;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.prord-no-subscriptions .prord-button:hover {
    background: #104279;
}

/* Access Denied Message - Similar to no-subscriptions */
.prord-access-denied {
    text-align: center;
    padding: 40px 20px;
    background: #f8f8f9;
    border-radius: 8px;
    border: 1px solid #ededed;
}

.prord-access-denied p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.prord-subscriptions-list {
    display: grid;
    gap: 20px;
}

.prord-subscription-card {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.2s ease;
}

.prord-subscription-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.prord-subscription-content {
    flex: 1;
}

.prord-subscription-name {
    font-size: 16px;
    margin-bottom: 12px;
    color: #182E52;
}

.prord-subscription-details {
    display: grid;
    gap: 8px;
    font-size: 14px;
}

.prord-subscription-details>div {
    display: flex;
    gap: 8px;
}

.prord-subscription-details .prord-label {
    color: #666;
    font-weight: 500;
}

.prord-status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.prord-status-active {
    background: #72C6CD;
    color: #fff;
}

.prord-status-pending-cancel {
    background: #f0ad4e;
    color: #fff;
}

.prord-subscription-total .prord-price {
    font-weight: 600;
    color: #182E52;
}

.prord-subscription-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prord-subscription-actions .prord-action-btn {
    background: transparent;
    color: #182E52;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #182E52;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.prord-subscription-actions .prord-action-btn:hover {
    background: #182E52;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .prord-subscription-card {
        flex-direction: column;
    }

    .prord-subscription-actions {
        width: 100%;
        flex-direction: row;
    }

    .prord-subscription-actions .prord-action-btn {
        flex: 1;
    }
}