.woocommerce-account .woocommerce-MyAccount-navigation {
  display: none;
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: unset;
}

.woocommerce-MyAccount-content .btn.btn-primary {
   padding-block: 1.4rem;
}

.log-out-btn {
    background: var(--bs-white);
    padding: 12px 16px;
    color: var(--bs-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    transition: 0.3s ease-in-out;
}

.account-menu-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(408px, 100%), 1fr));
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 16px;
}

.account-menu-item-wrapper img {
    max-height: 100px;
}

@media (min-width: 1250px) and (hover: hover) {
    .account-menu-item-wrapper:hover {
        background: #F8F8F8;
    }

    .account-menu-item-wrapper img {
        transform-origin: bottom right;
        max-height: 144px;
    }

    .account-menu-item-wrapper:hover img {
        scale: 1.15;
        
    }
}

@media (min-width: 1250px) and (max-width: 1450px) {
    .account-menu-wrapper {
        grid-template-columns: repeat(4, 1fr);
   }
}

.account-menu-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex: 1 0 0;
    align-self: stretch;
    background: var(--bs-white);
    height: 100%;
    min-height: 144px;
}

.account-menu-item-wrapper .account-menu-item {
    padding: 24px;
    padding-right: 0;
    color: var(--bs-black);
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0.6px;
}

/* Order Details and Orders Styling */
.order-card-wrapper,
.order-item-card,
.order-actions-card,
.order-totals-card {
    transition: all 0.3s ease;
}

.order-card-wrapper:hover,
.order-item-card:hover,
.order-actions-card:hover,
.order-totals-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-details-items .bg-white,
.orders-grid .bg-white {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.order-details-items .bg-white:hover,
.orders-grid .bg-white:hover {
    border-color: rgba(0, 66, 122, 0.2);
    box-shadow: 0 2px 8px rgba(0, 66, 122, 0.1);
}

/* Order item meta styling */
.item-meta {
    font-size: 14px;
    line-height: 1.4;
}

.item-meta .meta-label {
    font-weight: 500;
    color: var(--bs-gray-600);
}

/* Product quantity styling */
.product-quantity {
    font-size: 14px;
    font-weight: 400;
}

/* Responsive adjustments for order cards */
@media (max-width: 991.98px) {
    .order-card-wrapper,
    .order-item-card,
    .order-actions-card,
    .order-totals-card {
        padding: 24px !important;
    }
    
    .order-details-items .bg-white,
    .orders-grid .bg-white {
        padding: 16px !important;
    }
}

/* Action buttons styling */

/* Order status styling */
.woocommerce-orders-table__row--status-pending .fs-16.fw-bold,
.order-card-wrapper[class*="status-pending"] .fs-16.fw-bold {
    color: #f39c12;
}

.woocommerce-orders-table__row--status-processing .fs-16.fw-bold,
.order-card-wrapper[class*="status-processing"] .fs-16.fw-bold {
    color: #3498db;
}

.woocommerce-orders-table__row--status-completed .fs-16.fw-bold,
.order-card-wrapper[class*="status-completed"] .fs-16.fw-bold {
    color: #27ae60;
}

.woocommerce-orders-table__row--status-cancelled .fs-16.fw-bold,
.order-card-wrapper[class*="status-cancelled"] .fs-16.fw-bold {
    color: #e74c3c;
}

/* Grid layout improvements */
.orders-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.order-details-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Styled Order Table */
.styled-order-table {
    background: var(--bs-gray-400);
    border: none;
    overflow: hidden;
    margin-bottom: 32px;
}

.styled-order-table thead {
    background: var(--bs-primary);
}

.styled-order-table thead th {
    background: var(--bs-primary);
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 24px;
    border: none;
    text-align: center;
}

.styled-order-table tbody tr {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.styled-order-table tbody tr:hover {
    background: #f8f9fa;
}

.styled-order-table tbody td {
    padding: 24px;
    border: none;
    vertical-align: middle;
    font-size: 16px;
}

.styled-order-table .product-name {
    text-align: left;
    font-weight: 500;
}

.styled-order-table .product-total {
    text-align: center;
    font-weight: 600;
    color: var(--bs-primary);
}

.styled-order-table .product-quantity {
    color: var(--bs-gray-600);
    font-size: 14px;
    font-weight: 400;
    margin-top: 8px;
    display: block;
}

/* Footer styling */
.styled-order-table tfoot {
    background: var(--bs-gray-100);
}

.styled-order-table tfoot tr {
    border-top: 2px solid var(--bs-primary);
}

.styled-order-table tfoot th,
.styled-order-table tfoot td {
    padding: 16px 24px;
    border: none;
    font-weight: 500;
}

.styled-order-table .order-actions-row {
    background: white;
}

.styled-order-table .order-actions--heading {
    font-weight: 600;
    color: var(--bs-primary);
    text-align: left;
}

.styled-order-table .order-actions-cell {
    text-align: right;
}

.styled-order-table .order-total-row:nth-child(even) {
    background: white;
}

.styled-order-table .order-total-row:nth-child(odd) {
    background: #f8f9fa;
}

.styled-order-table .order-total-label {
    text-align: left;
    color: var(--bs-gray-700);
    font-weight: 500;
}

.styled-order-table .order-total-value {
    text-align: right;
    font-weight: 600;
    color: var(--bs-black);
}

.styled-order-table .order-note-row {
    background: #fff3cd !important;
    border-top: 2px solid #ffc107 !important;
}

.styled-order-table .order-note-label {
    color: #856404;
    font-weight: 600;
}

.styled-order-table .order-note-value {
    color: #856404;
    font-style: italic;
}

/* Product links in table */
.styled-order-table .product-name a {
    color: var(--bs-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.styled-order-table .product-name a:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

/* Item meta styling */
.styled-order-table .wc-item-meta {
    margin-top: 8px;
    font-size: 14px;
    color: var(--bs-gray-600);
}

.styled-order-table .wc-item-meta p {
    margin-bottom: 4px;
}

.styled-order-table .wc-item-meta strong {
    color: var(--bs-gray-800);
}

/* Responsive table styling */
@media (max-width: 767.98px) {
    .styled-order-table {
        margin-bottom: 24px;
        font-size: 14px;
    }
    
    .styled-order-table thead th {
        padding: 16px 12px;
        font-size: 14px;
    }
    
    .styled-order-table tbody td {
        padding: 16px 12px;
        font-size: 14px;
    }
    
    .styled-order-table tfoot th,
    .styled-order-table tfoot td {
        padding: 12px;
        font-size: 14px;
    }
    
    .styled-order-table .order-actions-cell .btn {
        width: 100%;
        margin-bottom: 8px;
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Styled Custom Fields Table (from woo-checkout-field-editor-pro) */
.woocommerce-table--custom-fields.custom-fields {
    background: var(--bs-gray-400);
    border: none;
    overflow: hidden;
    margin-bottom: 32px;
    margin-top: 32px;
}

.woocommerce-table--custom-fields.custom-fields tr {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.woocommerce-table--custom-fields.custom-fields tr:hover {
    background: #f8f9fa;
}

.woocommerce-table--custom-fields.custom-fields td,
.woocommerce-table--custom-fields.custom-fields th {
    padding: 16px 24px;
    border: none;
    vertical-align: middle;
    font-size: 16px;
}

.woocommerce-table--custom-fields.custom-fields td:first-child,
.woocommerce-table--custom-fields.custom-fields th:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--bs-gray-700);
    width: 40%;
}

.woocommerce-table--custom-fields.custom-fields td:last-child {
    text-align: left;
    font-weight: 600;
    color: var(--bs-black);
}

/* Section titles in custom fields table */
.woocommerce-table--custom-fields.custom-fields .thwcfe-section-title {
    background: var(--bs-primary) !important;
    color: white !important;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    padding: 20px 24px !important;
}

/* HTML field types styling */
.woocommerce-table--custom-fields.custom-fields .thwcfe-html-heading {
    background: var(--bs-primary) !important;
    color: white !important;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    padding: 20px 24px !important;
}

.woocommerce-table--custom-fields.custom-fields .thwcfe-html-label,
.woocommerce-table--custom-fields.custom-fields .thwcfe-html-paragraph {
    background: #e9ecef !important;
    color: var(--bs-black) !important;
    font-weight: 500;
    text-align: left;
    padding: 16px 24px !important;
}

/* Responsive custom fields table styling */
@media (max-width: 767.98px) {
    .woocommerce-table--custom-fields.custom-fields {
        margin-bottom: 24px;
        margin-top: 24px;
        font-size: 14px;
    }
    
    .woocommerce-table--custom-fields.custom-fields td,
    .woocommerce-table--custom-fields.custom-fields th {
        padding: 12px 12px;
        font-size: 14px;
    }
    
    .woocommerce-table--custom-fields.custom-fields .thwcfe-section-title,
    .woocommerce-table--custom-fields.custom-fields .thwcfe-html-heading {
        padding: 16px 12px !important;
        font-size: 14px;
    }
    
    .woocommerce-table--custom-fields.custom-fields .thwcfe-html-label,
    .woocommerce-table--custom-fields.custom-fields .thwcfe-html-paragraph {
        padding: 12px !important;
        font-size: 14px;
    }
}

.woocommerce-EditBillingAddress .form-row {
    border: none;
}

.woocommerce-EditBillingAddress .woocommerce-address-fields__field-wrapper .form-row select,
.woocommerce-EditShippingAddress .woocommerce-address-fields__field-wrapper .form-row select {
    background-color: var(--bs-white);
    padding: 12px 12px;
    border: 1px solid #F8F8F8;
    transition: 0.3s ease-in-out;
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    transition: all 0.3s ease-in-out;
    min-height: 51px;
}

.woocommerce-EditBillingAddress .woocommerce-address-fields__field-wrapper .form-row select:hover,
.woocommerce-EditShippingAddress .woocommerce-address-fields__field-wrapper .form-row select:hover {
    background-color: #F0F0F0;
    color: var(--bs-black);
    border: 1px solid #BFBFBF;
}

.woocommerce-EditBillingAddress .woocommerce-address-fields__field-wrapper .form-row select:focus,
.woocommerce-EditBillingAddress .woocommerce-address-fields__field-wrapper .form-row select:focus-visible,
.woocommerce-EditShippingAddress .woocommerce-address-fields__field-wrapper .form-row select:focus,
.woocommerce-EditShippingAddress .woocommerce-address-fields__field-wrapper .form-row select:focus-visible {
    outline: none;
}

.woocommerce table.shop_table {
    border-radius: 0;
}

/* Hide default EU VAT display paragraphs */
.woocommerce-order-details + p,
.woocommerce-table--custom-fields + p,
.custom-fields + p {
    display: none !important;
}

.woocommerce td.product-name .wc-item-meta p {
    font-size: 1.4rem;
}

/* Order Details Item Styling */
.woocommerce-table .product-item-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

.woocommerce-table .product-image-wrapper {
    flex-shrink: 0;
}

.woocommerce-table .order-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.woocommerce-table .product-details-wrapper {
    flex-grow: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

.woocommerce-table .product-name-text {
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #333;
}

.woocommerce-table .product-quantity {
    color: #666;
    font-size: 0.9em;
    display: inline-block;
    margin-top: 0.25rem;
}

.woocommerce-table .wc-item-meta {
    margin-top: 0.5rem;
    font-size: 0.85em;
    color: #777;
}

.woocommerce-table .wc-item-meta dt {
    font-weight: 600;
    margin-right: 0.5rem;
}

.woocommerce-table .wc-item-meta dd {
    margin-bottom: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce-table .product-item-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .woocommerce-table .order-item-image {
        width: 60px;
        height: 60px;
    }
    
    .woocommerce-table .product-details-wrapper {
        width: 100%;
    }
}

@media (max-width: 345px) {
    .btn-outline-blue svg {
        display: none;
    }
}

/* Copy Button Styling */
.copy-btn {
    cursor: pointer;
    padding: 4px;
    border: none;
    background: transparent;
    border-radius: 4px;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.copy-btn:hover {
    background-color: rgba(0, 66, 122, 0.1);
    opacity: 0.8;
}

.copy-btn:active {
    background-color: rgba(0, 66, 122, 0.2);
    transform: scale(0.95);
}

.copy-btn:focus {
    outline: 2px solid #00427a;
    outline-offset: 2px;
    background-color: rgba(0, 66, 122, 0.05);
}

.copy-btn:focus:not(:focus-visible) {
    outline: none;
}

.copy-btn:focus-visible {
    outline: 2px solid #00427a;
    outline-offset: 2px;
    background-color: rgba(0, 66, 122, 0.05);
}

.woocommerce-MyAccount-content .woocommerce-error::before, .woocommerce-MyAccount-content .woocommerce-info::before, .woocommerce-MyAccount-content .woocommerce-message::before {
    display: none;
}