/**
 * Nestor WooCommerce Styles
 */

/* Notices & Alerts */
.woocommerce-notices-wrapper {
    margin: 0 0 20px;
    width: 100%;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    padding: 16px 20px;
    margin: 0 0 20px !important;
    position: relative;
    background-color: var(--surface-dark, #050a07);
    color: var(--text-primary, #ecfdf5);
    border: 1px solid rgba(23, 201, 118, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none !important;
    width: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    line-height: 1.6;
}

.woocommerce-error {
    border-color: rgba(239, 68, 68, 0.3);
    background-color: rgba(239, 68, 68, 0.05);
}

.woocommerce-info {
    border-color: rgba(59, 130, 246, 0.3);
    background-color: rgba(59, 130, 246, 0.05);
}

.woocommerce-message {
    border-color: rgba(23, 201, 118, 0.3);
    background-color: rgba(23, 201, 118, 0.05);
}

/* Icon styling */
.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
    font-family: "WooCommerce";
    font-size: 1.2em;
    display: inline-block;
    line-height: 1;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    margin-right: 12px; 
}

.woocommerce-error::before {
    content: "\e016";
    color: #ef4444;
}

.woocommerce-info::before {
    content: "\e02d";
    color: #3b82f6;
}

.woocommerce-message::before {
    content: "\e015";
    color: #17c976;
}

/* Content styling */
.woocommerce-error li,
.woocommerce-info li,
.woocommerce-message li {
    padding: 0 !important;
    margin: 0 !important;
    flex: 1;
    list-style: none !important;
}

.woocommerce-error a,
.woocommerce-info a,
.woocommerce-message a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.woocommerce-error a:hover,
.woocommerce-info a:hover,
.woocommerce-message a:hover {
    text-decoration: none;
}

/* Button inside notices */
.woocommerce-error .button,
.woocommerce-info .button,
.woocommerce-message .button {
    float: right;
    margin-left: 15px;
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Order Received Page Styling */
.woocommerce-order-details {
    margin-bottom: 2rem;
}

.woocommerce-table--order-details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: right;
    color: var(--text-secondary, #94a3b8);
}

.woocommerce-table--order-details th {
    color: var(--text-primary, #fff);
    font-weight: 600;
    font-size: 0.95rem;
}

.woocommerce-table--order-details td a {
    color: var(--brand-500, #17c976);
    text-decoration: none;
    transition: all 0.2s;
}

.woocommerce-table--order-details td a:hover {
    text-decoration: underline;
}

.woocommerce-table--order-details tfoot th {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
    border-bottom: none;
    font-size: 1.1rem;
    color: var(--brand-400, #34d399);
}

/* Customer Details */
.woocommerce-customer-details {
    background: var(--surface-dark, #050a07);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
}

.woocommerce-customer-details h2 {
    font-size: 1.25rem;
    color: var(--text-primary, #fff);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-customer-details h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--brand-500, #17c976);
    border-radius: 2px;
}

.woocommerce-customer-details address {
    font-style: normal;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.8;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.woocommerce-column__title {
    font-size: 1.1rem;
    color: var(--text-primary, #fff);
    margin-bottom: 1rem;
}
