.jersey-customizer {
    box-sizing: border-box;
    margin: 1.5em 0;
    padding: 1em;
    border: 1px solid #e2e2e2;
    background: #fafafa;
}

.jersey-customizer *,
.jersey-customizer *::before,
.jersey-customizer *::after {
    box-sizing: inherit;
}

.jersey-customizer__title {
    margin-bottom: 1em;
    font-size: 1.1em;
}

.jersey-customizer__field {
    margin-bottom: 1em;
}

.jersey-customizer__field label {
    display: block;
    margin-bottom: 0.3em;
    font-weight: 600;
}

.jersey-customizer__field input[type="text"],
.jersey-customizer__field input[type="number"] {
    width: 100%;
    max-width: 240px;
    padding: 0.4em;
}

/* ===== Customizer Box Layout – Content Flow ===== */

.jersey-customizer {
    text-align: center;
}

/* Title styling */
.jersey-customizer__title {
    background: #f0f0f0; /* etwas dunkler als Box */
    padding: 0.75em 1em;
    margin: -1em -1em 1em -1em; /* zieht über Box-Rand */
    font-size: 1.15em;
    font-weight: 600;
    text-align: center;
}

/* Price block as vertical stack */
.jersey-customizer__price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    margin-top: 1em;
}

/* Price text */
#jersey-customizer-price {
    display: block;
    font-weight: 600;
    font-size: 1.05em;
}

/* Fields stacked & centered */
.jersey-customizer__field {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Inputs keep size but centered */
.jersey-customizer__field input {
    text-align: center;
}


.jersey-customizer__options label {
    display: block;
    margin-bottom: 0.4em;
}

.jersey-customizer__price {
    margin-top: 1em;
    font-size: 1em;
}

/* invalid input */
.jersey-customizer input.jc-input-invalid {
    border-color: #d33;
    box-shadow: 0 0 0 1px rgba(211, 51, 51, .15);
}

/* preview */
.jc-preview-canvas { background: #fff; }

/* ===== Botiga Theme Button Integration ===== */
body.theme-botiga .jersey-customizer button,
body.theme-botiga .jc-modal button.button-primary {
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
}

body.theme-botiga .jersey-customizer button:hover,
body.theme-botiga .jc-modal button.button-primary:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}
