/* Keep customization line breaks readable in theme cart widgets. */
.elementor-cart__product-attr { white-space: pre-line; }

/* Hidden native PrestaShop widget (only on products configured by this module). */
.product-customization.dcp-native-hidden { display: none !important; }

/* Vinyl dedication styling – compact, clean, accessible, theme-independent. */
.dcp-block {
    --dcp-ink: #242424;
    --dcp-muted: #62666c;
    --dcp-border: #dedfe2;
    --dcp-accent: #a6803e;
    width: 100%;
    margin: 18px 0 24px;
    padding: 22px 24px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(23, 26, 30, .045);
    color: var(--dcp-ink);
    font-size: 14px;
    box-sizing: border-box;
}
.dcp-block *, .dcp-block *::before, .dcp-block *::after { box-sizing: border-box; }
.dcp-group { margin-bottom: 20px; }
.dcp-group-title {
    display: block;
    margin: 0 0 11px;
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: .01em;
    line-height: 1.5;
    color: var(--dcp-ink);
    text-align: left;
}
.dcp-options { display: flex; flex-wrap: wrap; gap: 10px; }
.dcp-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 118px;
    min-height: 85px;
    margin: 0;
    padding: 13px 12px;
    border: 1px solid var(--dcp-border);
    border-radius: 9px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s, background-color .18s;
}
.dcp-option:hover { border-color: #a8a8a8; }
.dcp-option:has(input:checked) { border-color: var(--dcp-accent); background: #fbf8f1; }
.dcp-option input { position: absolute; top: 8px; left: 8px; accent-color: var(--dcp-accent); }
.dcp-option-visual { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; margin-bottom: 7px; }
.dcp-option-visual:empty { display: none; }
.dcp-option-visual img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dcp-option-name { font-size: 12px; line-height: 1.35; }
.dcp-option-price { font-size: 12px; font-weight: 600; color: var(--dcp-accent); }

.dcp-dedication-choices { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.dcp-dedication-choices label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 100px;
    margin: 0;
    padding: 11px 17px;
    border: 1px solid var(--dcp-border);
    border-radius: 8px;
    background: #fff;
    font-weight: 500;
    color: var(--dcp-ink);
    line-height: 1.3;
    cursor: pointer;
    transition: background-color .18s, border-color .18s;
}
.dcp-dedication-choices label:hover { border-color: #aaa; }
.dcp-dedication-choices label:has(input:checked) { border: 2px solid #111; padding: 10px 16px; background: #fff; color: #111; font-weight: 700; }
/* Hide the radio circle but keep it keyboard-accessible and screen-reader friendly. */
.dcp-dedication-choices input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.dcp-dedication-choices label { position: relative; justify-content: center; }
.dcp-dedication-choices label:has(input:focus-visible) { outline: 2px solid #111; outline-offset: 3px; }
.dcp-text-block { margin: 18px 0 0; }
.dcp-text-block[hidden], .dcp-total[hidden] { display: none !important; }
.dcp-text-block .dcp-group-title { margin-bottom: 8px; }
.dcp-group-description { color: var(--dcp-muted); font-size: 12px; line-height: 1.5; margin: 0 0 10px; }
.dcp-text-input {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 96px;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid var(--dcp-border);
    border-radius: 8px;
    background: #fff;
    color: var(--dcp-ink);
    font: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: border-color .18s, box-shadow .18s;
}
.dcp-text-input::placeholder { color: #96999d; }
.dcp-text-input:focus { outline: none; border-color: var(--dcp-accent); box-shadow: 0 0 0 3px rgba(166,128,62,.12); }
.dcp-total { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin: 16px 0; padding-top: 13px; border-top: 1px solid #ececec; font-size: 13px; font-weight: 600; }
.dcp-total-price { color: var(--dcp-accent); font-weight: 700; }
.dcp-add-to-cart.btn {
    display: block;
    width: 100%;
    min-height: 49px;
    margin: 19px 0 0;
    padding: 12px 18px;
    border: 1px solid #212121;
    border-radius: 8px;
    background: #212121;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    transition: background-color .18s ease, transform .18s ease;
    cursor: pointer;
}
.dcp-add-to-cart.btn:hover, .dcp-add-to-cart.btn:focus { background: #3c3c3c; border-color: #3c3c3c; color: #fff; }
.dcp-add-to-cart.btn:disabled { opacity: .55; cursor: wait; }
.dcp-message { margin-top: 10px; font-size: 13px; line-height: 1.5; color: #b43a3a; }
.dcp-message:empty { display: none; }
@media (max-width: 575px) { .dcp-block { max-width: calc(100% - 30px); padding: 18px 16px; margin-left: 0; margin-right: auto; } .dcp-dedication-choices label { flex: 1 1 110px; justify-content: center; } }
