/* Checkout Custom Styles */

/* 1. Coupon Toggle */
.woocommerce-form-coupon-toggle {
    margin-bottom: 2rem;
}
.woocommerce-form-coupon-toggle .woocommerce-info {
    background-color: #F9F9F9; /* Surface color */
    border: 1px solid rgba(11, 12, 16, 0.05); /* Ink/5 */
    border-radius: 1rem;
    padding: 1.5rem;
    color: #8c8881; /* Subtle */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.woocommerce-form-coupon-toggle .woocommerce-info::before {
    content: '\f02b'; /* fa-tag */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #0B0C10;
    margin-right: 0.5rem;
}
.woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon {
    color: #0B0C10; /* Ink */
    font-weight: bold;
    text-decoration: underline;
}
.woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* 2. Coupon Form */
form.checkout_coupon {
    background-color: #fff;
    border: 1px solid rgba(11, 12, 16, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: none; /* WC toggles this but let's ensure base state */
}
form.checkout_coupon p {
    margin-bottom: 1rem;
}
form.checkout_coupon .input-text {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(11, 12, 16, 0.1);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}
form.checkout_coupon .input-text:focus {
    border-color: #0B0C10;
    box-shadow: 0 0 0 2px rgba(11, 12, 16, 0.05);
}
form.checkout_coupon .button {
    background-color: #0B0C10; /* Ink */
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: bold;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
form.checkout_coupon .button:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 3. Checkout Table - Filename Truncation */
.woocommerce-checkout-review-order-table td.product-name {
    max-width: 150px;
    width: 60%; /* Ensure it doesn't take too much space on mobile */
}
.woocommerce-checkout-review-order-table td.product-name dl.variation {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #8c8881;
}
.woocommerce-checkout-review-order-table td.product-name dl.variation dt {
    display: none; /* Hide label like "Bild-Datei:" to save space */
}
.woocommerce-checkout-review-order-table td.product-name dl.variation dd, 
.woocommerce-checkout-review-order-table td.product-name dl.variation p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%; 
    display: block;
}

/* 4. WooCommerce Notices (Error/Success/Info) */
.woocommerce-message, 
.woocommerce-info, 
.woocommerce-error {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    position: relative;
    list-style: none !important;
}

/* Remove default list styles inside error */
.woocommerce-error li {
    list-style: none !important;
}

/* Success */
.woocommerce-message {
    background-color: #ecfdf5; /* green-50 */
    border-color: #a7f3d0; /* green-200 */
    color: #065f46; /* green-800 */
}
.woocommerce-message::before {
    content: '\f058'; /* fa-check-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #059669;
}

/* Info (General) */
.woocommerce-info {
    background-color: #f8fafc; /* slate-50 */
    border-color: #e2e8f0; /* slate-200 */
    color: #475569; /* slate-600 */
}
.woocommerce-info::before {
    content: '\f05a'; /* fa-info-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #64748b;
}

/* Error */
.woocommerce-error {
    background-color: #fef2f2; /* red-50 */
    border-color: #fecaca; /* red-200 */
    color: #991b1b; /* red-800 */
}
.woocommerce-error::before {
    content: '\f06a'; /* fa-circle-exclamation */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #dc2626;
}

/* Fix links inside notices */
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    font-weight: bold;
    text-decoration: underline;
    color: inherit;
}
.woocommerce-message a:hover,
.woocommerce-info a:hover,
.woocommerce-error a:hover {
    opacity: 0.8;
}
