@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&display=swap');

:root {
    --dpp-font-body: "Niveau Grotesk", Arial, Helvetica, sans-serif;
    --dpp-font-heading: Syne, "Niveau Grotesk", Arial, Helvetica, sans-serif;
    --dpp-bg: #0E0B05;
    --dpp-panel: #15171d;
    --dpp-panel-2: #101218;
    --dpp-black: #07080b;
    --dpp-gold: #EFAE54;
    --dpp-gold-2: #D69528;
    --dpp-text: #fffaf1;
    --dpp-muted: #a6a198;
    --dpp-line: rgba(239, 174, 84, .22);
    --dpp-green: #2FBF71;
    --dpp-red: #EF5C52;
}

.dpp-widget,
.dpp-widget * {
    box-sizing: border-box;
}

.dpp-widget {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(160deg, #191b22 0%, #101218 100%);
    border: 1px solid rgba(255, 255, 255, .06);
    color: var(--dpp-text);
    font-family: var(--dpp-font-body);
    padding: 20px 18px 22px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .42);
}

.dpp-ticket-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    font-family: var(--dpp-font-heading);
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: .18em;
    font-weight: 700;
    text-transform: uppercase;
}

.dpp-ticket-head span {
    color: #ffffff;
}

.dpp-ticket-head strong,
.dpp-selected-count {
    color: var(--dpp-gold);
    white-space: nowrap;
	font-weight:700;
}

.dpp-product-price-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 35px;
    padding: 9px 12px;
    background: #050609;
    border: 1px solid rgba(239, 174, 84, .32);
}

.dpp-product-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #b9b4aa;
    font-family: var(--dpp-font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
}

.dpp-unit-price,
.dpp-unit-price .woocommerce-Price-amount,
.dpp-row-total,
.dpp-total,
.dpp-total .woocommerce-Price-amount {
    color: var(--dpp-gold) !important;
    font-family: var(--dpp-font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
}

.dpp-line-controls,
.button-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 12px 0 0;
}

.dpp-qty-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin: 0;
}

.dpp-qty-wrap button {
    width: 25px;
    height: 25px;
    min-width: 25px;
    border-radius: 50%;
    border: 1px solid rgba(239, 174, 84, .45);
    background: transparent;
    color: var(--dpp-gold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--dpp-font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.dpp-qty-wrap button:hover,
.dpp-qty-wrap button:focus {
    background: var(--dpp-gold);
    border-color: var(--dpp-gold);
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}

.dpp-qty-wrap input,
input.dpp-qty {
    width: 24px !important;
    height: 22px;
    min-height: 22px;
    text-align: center;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--dpp-gold) !important;
    font-family: var(--dpp-font-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    padding: 0 !important;
    margin: 0;
    -moz-appearance: textfield;
}

.dpp-qty-wrap input:focus,
input.dpp-qty:focus {
    outline: none;
}

.dpp-price {
    margin: 0;
    color: var(--dpp-gold);
    text-align: right;
}

.dpp-product-list {
    display: grid;
    gap: 12px;
}

.dpp-product-row {
    width: 100%;
}

.dpp-grand-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-family: var(--dpp-font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #ffffff;
}

.dpp-ticket-note {
    max-width: 340px;
    margin: 18px auto 18px;
    color: #fff7ec;
    font-family: var(--dpp-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
}

.dpp-add-to-cart,
button.dpp-add-to-cart {
    width: 100%;
    min-height: 39px;
    border: 0 !important;
    border-radius: 0;
    background: linear-gradient(180deg, var(--dpp-gold), var(--dpp-gold-2)) !important;
    color: #080805 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--dpp-font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
    padding: 12px 18px;
    box-shadow: 0 14px 38px rgba(214, 149, 40, .18);
    transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}

.dpp-add-to-cart:hover,
button.dpp-add-to-cart:hover,
.dpp-add-to-cart:focus,
button.dpp-add-to-cart:focus {
    color: #080805 !important;
    filter: brightness(1.06);
    transform: translateY(-1px);
    outline: none;
}

.dpp-add-to-cart.is-loading,
button.dpp-add-to-cart.is-loading {
    pointer-events: none;
    opacity: .72;
}

.dpp-add-to-cart:disabled,
button.dpp-add-to-cart:disabled {
    cursor: not-allowed;
    opacity: .5;
    filter: grayscale(.25);
}

.dpp-add-to-cart .dpp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    transition: opacity .25s ease;
}
.dpp-ticket-footer {
    margin: 12px 0 0;
    color: #ffffff;
    opacity: .9;
    font-family: var(--dpp-font-body);
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.dpp-message {
    margin-top: 11px;
    min-height: 18px;
    color: var(--dpp-green);
    font-family: var(--dpp-font-body);
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.dpp-message.is-error {
    color: var(--dpp-red);
}

.dpp-loading {
    color: var(--dpp-muted);
    font-size: 13px;
    text-align: center;
}

.dpp-price-shortcode {
    font-family: var(--dpp-font-heading);
    color: var(--dpp-gold);
    font-weight: 800;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media screen and (max-width: 520px) {
    .dpp-widget {
        max-width: 100%;
        padding: 18px 16px 20px;
    }

    .dpp-ticket-head {
        font-size: 8px;
    }

    .dpp-product-title {
        font-size: 11px;
        letter-spacing: .08em;
    }

    .dpp-ticket-note {
        font-size: 10px;
    }
	.dpp-add-to-cart, button.dpp-add-to-cart{
		font-size:14px;
	}
}

/* =========================================================
   Kids tickets ("Anzahl Kindertarif (6–14 Jahre)")
   ========================================================= */

.dpp-product-row.dpp-kids-row {
    margin-top: 20px;
}
/* The exact label must stay readable: no ellipsis, no forced single line. */
.dpp-kids-row .dpp-product-title {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b9b4aa; font-family: var(--dpp-font-body); font-size: 12px; font-weight: 500; letter-spacing: .14em;}

.dpp-kids-row.is-selected .dpp-product-price-line {
    border-color: 1px solid rgba(239, 174, 84, .32)
}

.dpp-kids-note {
    margin: 10px 0 0;
    color: var(--dpp-muted);
    font-family: var(--dpp-font-body);
    font-size: 12px;
    line-height: 1.5;
}

/* ---- Kindertarif: Aufklapper --------------------------------------------
   Dezente Zeile, kein Preis: der steht im aufgeklappten Zustand ohnehin da.
   Rahmen und Farbe sind mit !important gesetzt, damit kein Theme-Button-Stil
   durchschlaegt (das Plugin macht das bei .dpp-unit-price genauso).
   Hintergrund laeuft ueber background-IMAGE, weil das Theme global
   `button:hover { background-color: transparent !important; }` erzwingt.   */

.dpp-kids-block {
    margin-top: 20px;
}

.dpp-widget .dpp-kids-toggle,
.dpp-widget button.dpp-kids-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 35px;
    margin: 0;
    padding: 9px 12px;
    background-color: transparent !important;
    background-image: linear-gradient(#050609, #050609);
    border: 1px solid rgba(239, 174, 84, .32) !important;
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
    outline: none;
    color: var(--dpp-gold) !important;
    text-align: left;
    text-transform: none;
    cursor: pointer;
    transition: border-color .2s ease;
}

.dpp-widget .dpp-kids-toggle:hover,
.dpp-widget .dpp-kids-toggle:focus-visible {
    border-color: var(--dpp-gold) !important;
}

/* Rundes Plus, exakt wie die Stepper-Buttons. */
.dpp-widget .dpp-kids-toggle-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 1px solid rgba(239, 174, 84, .45) !important;
    border-radius: 50%;
    color: var(--dpp-gold) !important;
    font-family: var(--dpp-font-body);
    font-size: 15px;
    line-height: 1;
    transition: transform .2s ease;
}

/* Aufgeklappt wird aus dem Plus ein Schliessen-Kreuz. */
.dpp-kids-block.is-open .dpp-kids-toggle-icon {
    transform: rotate(45deg);
}

.dpp-widget .dpp-kids-toggle-text {
    flex: 1 1 auto;
    min-width: 0;
    color: #b9b4aa !important;
    font-family: var(--dpp-font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
}

.dpp-widget .dpp-kids-toggle:hover .dpp-kids-toggle-text {
    color: var(--dpp-text) !important;
}

.dpp-kids-panel[hidden] {
    display: none;
}

/* Im Aufklapper braucht die Kids-Zeile ihren grossen Abstand nicht mehr. */
.dpp-kids-panel .dpp-product-row.dpp-kids-row {
    margin-top: 12px;
}

@media (max-width: 480px) {
    .dpp-widget .dpp-kids-toggle-text {
        font-size: 11px;
        letter-spacing: .03em;
    }
}
