/* Scoped personalization panel; inherits the store's font and primary color. */
form.cart .wpp-panel {
    --wpp-accent: var(--primary-color, #263e3a);
    box-sizing: border-box; width: 100%; min-width: 0; flex: 0 0 100%;
    border: 1px solid #dedfdf; border-radius: 12px; padding: 24px;
    background: #fff; color: #333; margin: 8px 0 20px; text-align: left;
}
.wpp-panel *, .wpp-panel *::before, .wpp-panel *::after { box-sizing: border-box; }
.wpp-panel [hidden] { display: none !important; }
.wpp-panel .wpp-panel-header { margin-bottom: 24px; }
.wpp-panel .wpp-eyebrow { display: block; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6b7370; margin-bottom: 8px; }
.wpp-panel .wpp-panel-header h3 { margin: 0 0 8px; font-size: 26px; line-height: 1.25; color: #242b28; }
.wpp-panel .wpp-panel-header p, .wpp-panel .wpp-help { font-size: 16px; line-height: 1.6; color: #707572; margin: 0 0 12px; }
.wpp-panel .wpp-section { border-top: 1px solid #eceeed; padding-top: 20px; margin-top: 20px; }
.wpp-panel h4 { display: flex; align-items: center; gap: 9px; font-size: 18px; line-height: 1.4; margin: 0 0 14px; text-transform: none; letter-spacing: 0; color: #303733; }
.wpp-panel h4 small { font-size: 14px; font-weight: 400; color: #7b807d; margin-left: auto; }
.wpp-panel .wpp-step { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 23px; height: 23px; border-radius: 50%; background: #f0f2f1; color: #58615b; font-size: 14px; }
.wpp-panel .wpp-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); gap: 8px; margin-bottom: 16px; }
.wpp-panel button.wpp-tier { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 92px; width: 100%; min-width: 0; margin: 0; padding: 12px; border: 1px solid #e1e4e2; border-radius: 7px; background: #fff; box-shadow: none; color: #666e69; font: inherit; font-size: 16px; line-height: 1.3; text-transform: none; letter-spacing: 0; white-space: normal; cursor: pointer; }
.wpp-panel .wpp-tier strong { color: #27312a; font-size: 22px; }
.wpp-panel .wpp-tier small { font-size: 14px; font-weight: 400; }
.wpp-panel .wpp-tier[aria-pressed="true"] { border-color: var(--wpp-accent); background: #f3f6f4; outline: 1px solid var(--wpp-accent); }
.wpp-panel .wpp-tier:disabled { opacity: .55; cursor: default; }
.wpp-panel .wpp-quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; }
.wpp-panel .wpp-quantity-row .quantity { margin: 0 !important; float: none; }
.wpp-panel .wpp-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 16px; border: 1px dashed #bfc8c2; border-radius: 8px; background: #fafbf9; text-align: center; }
.wpp-panel .wpp-dropzone.is-dragover { border-color: var(--wpp-accent); background: #eff4ef; }
.wpp-panel .wpp-upload-icon { color: #63746a; }
.wpp-panel button.wpp-upload-button { display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 10px 18px; min-height: 40px; background: var(--wpp-accent); border: 1px solid var(--wpp-accent); border-radius: 5px; box-shadow: none; color: #fff; font-size: 16px; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.wpp-panel .wpp-drag-hint, .wpp-panel .wpp-dropzone small { font-size: 14px; line-height: 1.4; color: #7d837f; }
.wpp-panel .wpp-images { max-width: 100%; font-size: 16px; }
.wpp-panel.wpp-enhanced .wpp-images { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; padding: 0; border: 0; }
.wpp-panel .wpp-file-count { margin: 10px 0 0; font-size: 14px; color: #647068; }
.wpp-panel .wpp-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.wpp-panel .wpp-previews:empty { display: none; }
.wpp-panel .wpp-preview { position: relative; min-width: 0; margin: 0; padding: 0; }
.wpp-panel .wpp-preview img { display: block; width: 100%; height: 86px; object-fit: cover; border-radius: 5px; background: #f2f3f2; }
.wpp-panel .wpp-preview span { display: block; margin-top: 5px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpp-panel button.wpp-remove-photo { position: absolute; top: 4px; right: 4px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-height: 28px; padding: 0; margin: 0; border: 1px solid #ddd; border-radius: 50%; background: #fff; color: #333; line-height: 1; font-size: 19px; box-shadow: none; }
.wpp-panel .wpp-note-label { display: block; font-size: 16px; font-weight: 400; color: #727873; }
.wpp-panel textarea { display: block; width: 100%; min-height: 96px; margin: 9px 0 0; padding: 12px; border: 1px solid #dce1dd; border-radius: 6px; box-shadow: none; background: #fff; color: #333; resize: vertical; font: inherit; font-size: 16px; line-height: 1.5; }
.wpp-panel textarea::placeholder { color: #989e99; font-weight: 400; }
.wpp-panel .wpp-current { border-top: 1px solid #eceeed; margin-top: 22px; padding: 18px 0 16px; }
.wpp-panel .wpp-unit-line, .wpp-panel .wpp-total-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wpp-panel .wpp-unit-line { font-size: 16px; color: #788078; margin-bottom: 6px; }
.wpp-panel .wpp-total-line { font-size: 18px; font-weight: 600; color: #28372d; }
.wpp-panel .wpp-total-value { font-size: 24px; line-height: 1.4; }
.wpp-panel .wpp-tax-suffix { font-size: 14px; color: #788078; }
.wpp-panel .wpp-error { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid #ab3737; border-radius: 3px; background: #fff4f3; color: #933a35; font-size: 16px; line-height: 1.5; }
form.cart .wpp-panel .single_add_to_cart_button { width: 100%; margin: 0; float: none; }
.wpp-panel button:focus-visible, .wpp-panel textarea:focus-visible { outline: 2px solid var(--wpp-accent); outline-offset: 3px; }
form.cart.wpp-form { flex-wrap: wrap; }
@media (max-width: 480px) {
    form.cart .wpp-panel { padding: 18px 14px; }
    .wpp-panel .wpp-panel-header h3 { font-size: 24px; }
    .wpp-panel .wpp-tiers { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
    .wpp-panel button.wpp-tier { padding: 10px 8px; }
    .wpp-panel .wpp-tier strong { font-size: 18px; }
}

/* Flatsome 3.14 sticky cart moves the same form into a fixed bottom bar.
   Keep this product's complete personalization form in normal document flow,
   even when its waypoint applies the active class and inline wrapper height. */
.product-type-wpp_photo .sticky-add-to-cart-wrapper {
    height: auto !important;
}
.product-type-wpp_photo .sticky-add-to-cart,
.product-type-wpp_photo .sticky-add-to-cart.sticky-add-to-cart--active {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: 0 !important;
    z-index: auto !important;
    background: transparent !important;
    font-size: inherit !important;
}
.product-type-wpp_photo .sticky-add-to-cart__product { display: none !important; }
.product-type-wpp_photo .sticky-add-to-cart form.cart { display: block !important; width: 100%; margin: 0 !important; }
.wpp-panel .wpp-quantity-row .quantity {
    display: inline-flex !important; align-items: stretch; gap: 0;
    height: 50px; min-height: 50px; max-height: 50px; flex: 0 0 auto; width: auto;
}
.wpp-panel .wpp-quantity-row .quantity input.qty {
    width: 72px !important; min-width: 72px; max-width: none;
    height: 50px !important; min-height: 50px !important; max-height: 50px !important;
    box-sizing: border-box !important; flex: 0 0 72px;
    margin: 0 !important; padding: 0 8px;
    font-size: 20px !important; line-height: 48px; text-align: center;
    border: 1px solid #bfc8c2; box-shadow: none;
}
.wpp-panel .wpp-quantity-row .quantity .minus,
.wpp-panel .wpp-quantity-row .quantity .plus {
    width: 48px !important; min-width: 48px; max-width: 48px;
    height: 50px !important; min-height: 50px !important; max-height: 50px !important;
    box-sizing: border-box !important; flex: 0 0 48px;
    margin: 0 !important; padding: 0 !important; font-size: 24px !important;
    line-height: 48px; border: 1px solid #bfc8c2;
    background: #f4f6f4; color: #28372d; box-shadow: none;
}
.wpp-panel button.wpp-upload-button { min-height: 48px; padding: 12px 20px; }
.wpp-panel button.wpp-remove-photo { width: 40px; height: 40px; min-height: 40px; }
.wpp-panel .single_add_to_cart_button { min-height: 50px; font-size: 16px; }
@media (max-width: 480px) {
    .wpp-panel .wpp-quantity-row { flex-wrap: wrap; gap: 12px; }
    .wpp-panel h4 { flex-wrap: wrap; }
    .wpp-panel h4 small { margin-left: 32px; }
}

/* Theme buttons have min-height:2.5em; explicit bounds above prevent 60px buttons. */
.wpp-panel .wpp-quantity-row .quantity .minus { border-radius: 6px 0 0 6px !important; }
.wpp-panel .wpp-quantity-row .quantity .plus { border-radius: 0 6px 6px 0 !important; }
.wpp-panel .wpp-quantity-row .quantity input.qty { border-radius: 0 !important; }
