#angebot-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 0;
}

.angebot-popup-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-width: 600px;
    width: 90%;
    margin: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.popup-success-icon .dashicons {
    display: block;
    margin: auto;
    line-height: 1;
    font-size: 24px;
    color: #fff;
}

#angebot-popup-model {
    font-weight: bold;
}

.angebot-popup-response {
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.angebot-popup-response p {
    margin-bottom: 0px !important;
}

.angebot-popup-response .dashicons {
    margin-right: 0.5em;
}

#angebot-popup-button {
    display: inline-flex;
    color: var(--btn-accented-color);
    background-color: #ff8746;
    border-radius: var(--btn-accented-brd-radius);
    box-shadow: var(--btn-accented-box-shadow);

    text-transform: var(
        --btn-accented-transform,
        var(--btn-transform, uppercase)
    );
    font-weight: var(--btn-accented-font-weight, var(--btn-font-weight, 600));
    font-family: var(
        --btn-accented-font-family,
        var(--btn-font-family, inherit)
    );
    font-style: var(--btn-accented-font-style, var(--btn-font-style, unset));
}
#angebot-popup-button:hover {
    background-color: #ffa06d;
}

#angebot-popup-form #popup-mitteilung {
    margin-top: 3px;
    margin-bottom: 3px;
    min-height: 90px;
    max-height: 120px;
    height: 30px !important;
}

#angebot-popup-submit {
    display: block;
    margin: 5px auto 0;
    color: var(--btn-accented-color);
    background-color: #ff8746;
    border-radius: var(--btn-accented-brd-radius);
    box-shadow: var(--btn-accented-box-shadow);

    text-transform: var(
        --btn-accented-transform,
        var(--btn-transform, uppercase)
    );
    font-weight: var(--btn-accented-font-weight, var(--btn-font-weight, 600));
    font-family: var(
        --btn-accented-font-family,
        var(--btn-font-family, inherit)
    );
    font-style: var(--btn-accented-font-style, var(--btn-font-style, unset));
}

#angebot-popup-submit:hover {
    background-color: #ffa06d;
}

#angebot-popup-close-button {
    color: #ff605c;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#angebot-popup-close-button:hover {
    background-color: #f2f0ef;
}

.rohr-options {
    display: flex;
    align-items: stretch;
    gap: 2px;
    flex-wrap: nowrap;
    margin: 10px 0 10px 0;
    overflow-x: auto;
    padding: 0 5px;
}

.rohr-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-width: min(100px, 20vw);
    flex: 1;
    max-width: none;
    padding: 6px 1px 6px 1px;
}

.rohr-display img {
    max-width: 85%;
    height: auto;
    max-height: min(60px, 8vw);
    display: block;
    margin: 5px auto 12px;
    border-radius: 4px;
}
.rohr-display img[src$=".svg"] {
    /* vertikales Padding, damit SVG-Container die gleiche Höhe erhält */
    padding-top: 12px;
    padding-bottom: 12px;
    /* Bildhöhe nicht begrenzen, Padding sorgt für Gesamthöhe */
    max-height: none;
}

#angebot-popup .rohr-options .rohr-display {
    padding: 16px !important;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rohr-option input[type="radio"] {
    display: none;
}

.rohr-display span {
    font-size: 12px;
    display: block;
    line-height: 1.3;
    font-weight: 500;
}

#angebot-popup .rohr-options .rohr-option:hover .rohr-display {
    border-color: #ff8746 !important;
    box-shadow: 0 0 10px rgba(255, 135, 70, 0.3) !important;
}

#angebot-popup
    .rohr-options
    .rohr-option
    input[type="radio"]:checked
    + .rohr-display {
    border-color: #ff8746 !important;
    background-color: #fff5f0 !important;
    transform: scale(1.02) !important;
    box-shadow: 0 0 15px rgba(255, 135, 70, 0.4) !important;
}

.tooltip {
    cursor: help;
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

.tooltip:hover::after {
    content: attr(title);
    position: absolute;
    background: #333;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-left: 10px;
    margin-top: -5px;
}

.popup-separator {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin: 20px 0;
}

.popup-separator-soft {
    width: 100%;
    height: 1px;
    background-color: rgba(240, 240, 240, 0.8);
    margin: 20px 0;
}

.popup-product-image {
    max-width: 280px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 3px;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fafafa;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#angebot-popup-model {
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 0;
}

.tooltip-close {
    position: absolute;
    top: 5px;
    right: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.form-group {
    margin: 10px 0;
    position: relative;
}

.help-icon {
    margin-left: 8px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    display: inline-block;
}

.custom-tooltip {
    position: absolute !important;
    background: #333 !important;
    color: white !important;
    padding: 10px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    z-index: 9999 !important;
    min-width: 200px !important;
    top: -65px !important;
    right: 0px !important;
}

#angebot-popup .custom-tooltip::before {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

.label-with-help {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.label-with-help label {
    margin-bottom: 0;
}

.popup-product-info {
    text-align: center;
    margin: 15px 0;
}

#popup-extras {
    margin: 3px 0px 15px 0px;
}
