/* ============================================================
   Copyshop Volkmarsen – Warenkorb & Kasse Design  v1.1
   Hauptfarbe: Orange #E87722  |  Akzent: Slate #3d4a5c
   ============================================================ */

:root {
    --ccd-orange:       #E87722;
    --ccd-orange-dark:  #c9621a;
    --ccd-orange-light: #fdf0e5;
    --ccd-dark:         #3d4a5c;   /* war #2c2c2c – jetzt Slate-Blaugrau */
    --ccd-mid:          #6b7a8d;   /* war #555 – etwas heller */
    --ccd-light:        #f5f6f8;
    --ccd-border:       #e0e4ea;
    --ccd-white:        #ffffff;
    --ccd-radius:       6px;
    --ccd-shadow:       0 2px 8px rgba(0,0,0,0.08);
}

/* ── Allgemeine Seiten-Grundlagen ──────────────────────────── */
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content {
    max-width: 1100px;
    margin: 0 auto;
}

/* Basis-Schriftgröße für beide Seiten anheben */
.woocommerce-cart,
.woocommerce-checkout {
    font-size: 1.1rem;
}
.woocommerce-cart p,
.woocommerce-checkout p,
.woocommerce-cart td,
.woocommerce-checkout td,
.woocommerce-cart th,
.woocommerce-checkout th,
.woocommerce-cart label,
.woocommerce-checkout label,
.woocommerce-cart li,
.woocommerce-checkout li {
    font-size: 1.05rem;
}

/* ============================================================
   WARENKORB
   ============================================================ */

/* Tabelle kompakter */
.woocommerce-cart table.cart {
    border: 1px solid var(--ccd-border);
    border-radius: var(--ccd-radius);
    overflow: hidden;
    box-shadow: var(--ccd-shadow);
    font-size: 1.1rem;
}

.woocommerce-cart table.cart thead tr th {
    background: var(--ccd-dark);
    color: var(--ccd-white);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 14px;
    border: none;
}

/* Produktzeilen */
.woocommerce-cart table.cart tbody tr.cart_item {
    border-bottom: 1px solid var(--ccd-border);
    transition: background 0.15s;
}
.woocommerce-cart table.cart tbody tr.cart_item:hover {
    background: var(--ccd-orange-light);
}

/* Produktbild – klein & kompakt */
.woocommerce-cart table.cart .product-thumbnail {
    width: 72px;
    padding: 8px 8px 8px 12px;
}
.woocommerce-cart table.cart .product-thumbnail img,
.woocommerce-cart table.cart img.ccd-product-thumb {
    width: 56px !important;
    height: 56px !important;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--ccd-border);
    display: block;
}

/* Produktname */
.woocommerce-cart table.cart .product-name {
    padding: 10px 14px;
    vertical-align: middle;
    font-weight: 600;
    color: var(--ccd-dark);
}
.woocommerce-cart table.cart .product-name a {
    color: var(--ccd-orange-dark);
    text-decoration: none;
}
.woocommerce-cart table.cart .product-name a:hover {
    text-decoration: underline;
}

/* Produkt-Meta (z.B. "HERUNTERLADEN") kompakt */
.woocommerce-cart table.cart .product-name dl.variation,
.woocommerce-cart table.cart .product-name .wc-item-meta {
    margin: 2px 0 0;
    font-size: 1.05rem;
    color: var(--ccd-mid);
}

/* Preis-Spalten */
.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-subtotal {
    padding: 10px 14px;
    vertical-align: middle;
    font-size: 1.1rem;
    color: var(--ccd-dark);
}
.woocommerce-cart table.cart .product-subtotal {
    font-weight: 700;
    color: var(--ccd-orange-dark);
}

/* Mengen-Eingabe */
.woocommerce-cart table.cart .product-quantity {
    padding: 10px 8px;
    vertical-align: middle;
}
.woocommerce-cart table.cart .product-quantity .qty {
    width: 56px;
    padding: 5px 8px;
    border: 1px solid var(--ccd-border);
    border-radius: var(--ccd-radius);
    font-size: 1.05rem;
    text-align: center;
}

/* Löschen-Button */
.woocommerce-cart table.cart .product-remove {
    padding: 10px 10px 10px 14px;
    vertical-align: middle;
    width: 30px;
}
.woocommerce-cart table.cart .product-remove a.remove {
    color: #b00 !important;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: background 0.15s;
}
.woocommerce-cart table.cart .product-remove a.remove:hover {
    background: #fde8e8;
}

/* Gutschein + Aktualisieren-Zeile */
.woocommerce-cart table.cart .actions {
    padding: 10px 14px;
    background: var(--ccd-light);
    border-top: 2px solid var(--ccd-border);
}
.woocommerce-cart table.cart .actions .coupon {
    display: flex;
    gap: 8px;
    align-items: center;
}
.woocommerce-cart table.cart .actions .coupon input#coupon_code {
    padding: 7px 12px;
    border: 1px solid var(--ccd-border);
    border-radius: var(--ccd-radius);
    font-size: 1.05rem;
    width: 180px;
}

/* Warenkorb-Buttons */
.woocommerce-cart table.cart .actions button,
.woocommerce-cart table.cart .actions .button {
    background: var(--ccd-orange) !important;
    color: var(--ccd-white) !important;
    border: none !important;
    border-radius: var(--ccd-radius) !important;
    padding: 7px 16px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.woocommerce-cart table.cart .actions button:hover,
.woocommerce-cart table.cart .actions .button:hover {
    background: var(--ccd-orange-dark) !important;
}
/* Aktualisieren-Button rechts */
.woocommerce-cart table.cart .actions [name="update_cart"] {
    float: right;
}

/* Warenkorb-Summen-Box */
.cart_totals {
    background: var(--ccd-white);
    border: 1px solid var(--ccd-border);
    border-radius: var(--ccd-radius);
    box-shadow: var(--ccd-shadow);
    padding: 0;
    overflow: hidden;
    max-width: 480px;
    margin-left: auto;
    margin-top: 28px;
}

.cart_totals h2 {
    background: var(--ccd-orange);
    color: var(--ccd-white);
    margin: 0;
    padding: 12px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.cart_totals table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
    padding: 10px 20px;
    border-bottom: 1px solid var(--ccd-border);
    font-size: 1.05rem;
    vertical-align: middle;
}
.cart_totals table.shop_table th {
    font-weight: 700;
    color: var(--ccd-dark);
    width: 40%;
    background: var(--ccd-light);
}
.cart_totals table.shop_table .order-total th,
.cart_totals table.shop_table .order-total td {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ccd-orange-dark);
    background: var(--ccd-orange-light);
    border-bottom: none;
}
.cart_totals table.shop_table .tax-total td,
.cart_totals table.shop_table .tax-total th {
    font-size: 0.92rem;
    color: var(--ccd-mid);
    background: transparent;
}

/* Zur Kasse Button */
.wc-proceed-to-checkout {
    padding: 14px 20px;
    background: var(--ccd-light);
    border-top: 1px solid var(--ccd-border);
}
.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    background: var(--ccd-orange) !important;
    color: var(--ccd-white) !important;
    text-align: center;
    padding: 12px 0 !important;
    border-radius: var(--ccd-radius) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
    border: none !important;
}
.wc-proceed-to-checkout .checkout-button:hover {
    background: var(--ccd-orange-dark) !important;
}

/* ============================================================
   KASSE
   ============================================================ */

/* Gutschein-Bar (eigenes Element) */
.ccd-coupon-bar {
    background: var(--ccd-orange-light);
    border: 1px solid #f5cfa0;
    border-radius: var(--ccd-radius);
    padding: 8px 16px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ccd-coupon-toggle {
    color: var(--ccd-orange-dark);
    font-weight: 600;
    text-decoration: none;
}
.ccd-coupon-toggle:hover {
    text-decoration: underline;
}

/* Gutschein-Block von WooCommerce ausblenden (wir haben oben unseren) */
.woocommerce-checkout .woocommerce-form-coupon-toggle {
    display: none;
}
.woocommerce-checkout .checkout_coupon {
    display: none;
    border: 1px solid var(--ccd-border);
    border-radius: var(--ccd-radius);
    padding: 14px 16px;
    margin-bottom: 20px;
    background: var(--ccd-white);
}

/* Zweispalten-Layout Kasse */
.woocommerce-checkout #customer_details {
    float: left;
    width: 55%;
    padding-right: 24px;
    box-sizing: border-box;
}
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    float: right;
    width: 42%;
    box-sizing: border-box;
}
.woocommerce-checkout #order_review_heading {
    margin-top: 0;
}
.woocommerce-checkout::after,
.woocommerce-checkout form.checkout::after {
    content: '';
    display: table;
    clear: both;
}

/* Sektions-Überschriften */
.woocommerce-checkout h3#order_review_heading,
.woocommerce-checkout h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ccd-white);
    background: var(--ccd-dark);
    padding: 10px 16px;
    border-radius: var(--ccd-radius) var(--ccd-radius) 0 0;
    margin: 0 0 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Formular-Felder-Wrapper */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields {
    background: var(--ccd-white);
    border: 1px solid var(--ccd-border);
    border-top: none;
    border-radius: 0 0 var(--ccd-radius) var(--ccd-radius);
    padding: 16px;
    box-shadow: var(--ccd-shadow);
    margin-bottom: 16px;
}

/* Felder-Raster: Vorname + Nachname nebeneinander */
.woocommerce-checkout p.form-row {
    margin: 0 0 10px !important;
}
.woocommerce-checkout p.form-row label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ccd-mid);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    display: block;
}
.woocommerce-checkout p.form-row input.input-text,
.woocommerce-checkout p.form-row textarea,
.woocommerce-checkout p.form-row select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--ccd-border);
    border-radius: var(--ccd-radius);
    font-size: 1.05rem;
    color: var(--ccd-dark);
    background: var(--ccd-white);
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.woocommerce-checkout p.form-row input.input-text:focus,
.woocommerce-checkout p.form-row textarea:focus,
.woocommerce-checkout p.form-row select:focus {
    border-color: var(--ccd-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(232,119,34,0.15);
}
.woocommerce-checkout p.form-row textarea {
    min-height: 72px;
    resize: vertical;
}

/* Zahlungsarten-Box */
.woocommerce-checkout #payment {
    background: var(--ccd-white);
    border: 1px solid var(--ccd-border);
    border-radius: var(--ccd-radius);
    overflow: hidden;
    box-shadow: var(--ccd-shadow);
    margin-top: 16px;
}
.woocommerce-checkout #payment ul.payment_methods {
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--ccd-border);
}
.woocommerce-checkout #payment ul.payment_methods li {
    padding: 10px 16px;
    border-bottom: 1px solid var(--ccd-border);
    font-size: 1.05rem;
}
.woocommerce-checkout #payment ul.payment_methods li:last-child {
    border-bottom: none;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {
    font-weight: 700;
    color: var(--ccd-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    accent-color: var(--ccd-orange);
}
.woocommerce-checkout #payment div.payment_box {
    background: var(--ccd-orange-light);
    border-top: 1px solid #f5cfa0;
    padding: 10px 16px;
    font-size: 1.1rem;
    color: var(--ccd-mid);
}
.woocommerce-checkout #payment div.place-order {
    padding: 14px 16px;
    background: var(--ccd-light);
}

/* Jetzt kaufen Button */
.woocommerce-checkout #payment #place_order {
    display: block;
    width: 100%;
    background: var(--ccd-orange) !important;
    color: var(--ccd-white) !important;
    border: none !important;
    border-radius: var(--ccd-radius) !important;
    padding: 13px 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.woocommerce-checkout #payment #place_order:hover {
    background: var(--ccd-orange-dark) !important;
}

/* Bestellübersicht rechts */
.woocommerce-checkout table.shop_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.05rem;
    background: var(--ccd-white);
    border: 1px solid var(--ccd-border);
    border-top: none;
    border-radius: 0 0 var(--ccd-radius) var(--ccd-radius);
    overflow: hidden;
    box-shadow: var(--ccd-shadow);
    margin-bottom: 16px;
}
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    padding: 9px 16px;
    border-bottom: 1px solid var(--ccd-border);
    vertical-align: middle;
}
.woocommerce-checkout table.shop_table thead th {
    background: var(--ccd-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ccd-mid);
}
.woocommerce-checkout table.shop_table .cart-subtotal th,
.woocommerce-checkout table.shop_table .cart-subtotal td,
.woocommerce-checkout table.shop_table .shipping th,
.woocommerce-checkout table.shop_table .shipping td {
    font-size: 1.1rem;
    color: var(--ccd-mid);
}
.woocommerce-checkout table.shop_table .order-total th,
.woocommerce-checkout table.shop_table .order-total td {
    background: var(--ccd-orange-light);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ccd-orange-dark);
    border-bottom: none;
}
.woocommerce-checkout table.shop_table .tax-rate td,
.woocommerce-checkout table.shop_table .tax-rate th {
    font-size: 1.05rem;
    color: var(--ccd-mid);
}

/* Produktbild in der Kasse-Übersicht: winzig */
.woocommerce-checkout table.shop_table .product-name img {
    width: 48px !important;
    height: 48px !important;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--ccd-border);
    vertical-align: middle;
    margin-right: 8px;
}

/* Andere Lieferadresse – Checkbox-Box komplett neu gestalten */
.woocommerce-checkout .woocommerce-shipping-fields h3 {
    background: var(--ccd-orange-light) !important;
    color: var(--ccd-dark) !important;
    border: 1px solid #f5cfa0;
    border-radius: var(--ccd-radius);
    padding: 12px 16px !important;
    margin: 0 !important;
}
.woocommerce-checkout .woocommerce-shipping-fields h3 label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ccd-dark) !important;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}
.woocommerce-checkout .woocommerce-shipping-fields h3 input[type="checkbox"] {
    accent-color: var(--ccd-orange);
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

/* ============================================================
   INFO-BOX WARENKORB (links neben Warenkorb-Summe)
   ============================================================ */

/* WooCommerce .cart-collaterals: float aufheben */
.woocommerce-cart .cart-collaterals {
    display: block !important;
    float: none !important;
    width: 100% !important;
}

/* Unser eigener Zeilen-Wrapper, per JS eingefügt */
.ccd-totals-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

.ccd-cart-info-box {
    flex: 1 1 0;
    min-width: 0;
    background: var(--ccd-white);
    border: 1px solid var(--ccd-border);
    border-radius: var(--ccd-radius);
    box-shadow: var(--ccd-shadow);
    overflow: hidden;
    font-size: 1.05rem;
}

/* cart_totals: Float von WooCommerce überschreiben */
.ccd-totals-row .cart_totals {
    flex: 0 0 400px;
    max-width: 400px;
    float: none !important;
    margin: 0 !important;
    width: auto !important;
}

/* Gemeinsamer Header-Stil für beide Boxen */
.ccd-info-header {
    background: var(--ccd-dark);
    color: var(--ccd-white);
    padding: 10px 16px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ccd-info-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.ccd-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ccd-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 16px;
    border-bottom: 1px solid var(--ccd-border);
    line-height: 1.45;
    color: var(--ccd-dark);
}
.ccd-info-list li:last-child {
    border-bottom: none;
}
.ccd-li-icon {
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.ccd-info-list a {
    color: var(--ccd-orange-dark);
    text-decoration: none;
    font-weight: 600;
}
.ccd-info-list a:hover {
    text-decoration: underline;
}

.ccd-info-note {
    background: var(--ccd-orange-light);
    border-top: 1px solid #f5cfa0;
    padding: 10px 16px;
    font-size: 1.05rem;
    color: var(--ccd-orange-dark);
    font-weight: 600;
}

/* ============================================================
   TRUST-BOX KASSE (mittlere Spalte, unter Anmerkungen)
   ============================================================ */

.ccd-trust-box {
    background: var(--ccd-white);
    border: 1px solid var(--ccd-border);
    border-radius: var(--ccd-radius);
    box-shadow: var(--ccd-shadow);
    overflow: hidden;
    margin-top: 16px;
    font-size: 1.05rem;
    width: 100%;
    box-sizing: border-box;
}

/* AGB direkt über Kaufen-Button: kompakte Box */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    background: var(--ccd-orange-light);
    border: 1px solid #f5cfa0;
    border-radius: var(--ccd-radius) var(--ccd-radius) 0 0;
    padding: 10px 14px;
    font-size: 0.92rem;
    margin: 0 !important;
    color: var(--ccd-dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input#terms {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--ccd-orange);
    width: 16px;
    height: 16px;
}
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label {
    line-height: 1.5;
}
/* Kaufen-Button direkt drunter – obere Ecken eckig lassen */
.woocommerce-checkout #payment #place_order {
    border-radius: 0 0 var(--ccd-radius) var(--ccd-radius) !important;
}

.ccd-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ccd-trust-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-bottom: 1px solid var(--ccd-border);
    color: var(--ccd-dark);
    line-height: 1.4;
}
.ccd-trust-list li:last-child {
    border-bottom: none;
}
.ccd-trust-list li span:first-child {
    font-size: 1.05rem;
    flex-shrink: 0;
}
.ccd-trust-list a {
    color: var(--ccd-orange-dark);
    font-weight: 600;
    text-decoration: none;
}
.ccd-trust-list a:hover {
    text-decoration: underline;
}

/* ── Responsive: unter 768px alles einspaltig ──────────────── */
@media (max-width: 767px) {
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        float: none !important;
        width: 100% !important;
        padding-right: 0 !important;
    }
    .ccd-totals-row {
        flex-direction: column;
    }
    .ccd-totals-row .cart_totals {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .ccd-cart-info-box {
        width: 100%;
    }
}
