.pd-shell {
    box-sizing: border-box;
    clear: both;
    width: 100%;
    min-width: 0;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fcfcfc;
}
.pd-shell *, .pd-shell *::before, .pd-shell *::after { box-sizing: border-box; }
.pd-shell [hidden] { display: none !important; }
.pd-shell h3 { margin: 0 0 12px; }
.pd-shell .pd-help { margin: 12px 0; font-size: .9em; }
.pd-type-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
/* WooCommerce floats cart buttons, which otherwise escape the decoration panel. */
.pd-shell .button,
.woocommerce div.product form.cart .pd-shell .button {
    float: none;
    width: auto;
    max-width: 100%;
    min-height: 40px;
    margin: 0;
    line-height: 1.4;
}
.pd-shell .pd-type-button.button { padding: 8px 16px; border: 1px solid #767676; border-radius: 4px; background: #fff; color: #333; cursor: pointer; }
.pd-shell .pd-type-button.button:hover { border-color: #175a8c; background: #edf5fc; color: #175a8c; }
.pd-shell .pd-type-button.button.is-selected { border-color: #175a8c; background: #175a8c; color: #fff; box-shadow: inset 0 0 0 1px currentColor; }
.pd-rows { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 22rem; margin: 12px 0; padding: 0; list-style: none; }
.pd-row-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 12px; border: 1px solid #ddd; border-radius: 4px; background: #fff; }
.pd-row-entry label { grid-column: 1 / -1; font-weight: 600; }
.pd-shell .pd-location-select { width: 100%; min-width: 0; min-height: 40px; margin: 0; padding: 8px; }
.pd-shell .pd-row-remove { min-height: 40px; margin: 0; border: 0; background: transparent; padding: 8px; color: #9e2727; text-decoration: underline; cursor: pointer; }
.pd-shell .pd-add-row.button { padding: 8px 14px; border: 1px solid #175a8c; border-radius: 4px; background: #fff; color: #175a8c; }
.pd-shell .pd-add-row.button:hover:not(:disabled) { background: #edf5fc; color: #175a8c; }
.pd-shell .pd-add-row:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 480px) {
    .pd-row-entry label { grid-column: 1; }
    .pd-shell .pd-location-select { grid-column: 1 / -1; grid-row: 2; }
    .pd-shell .pd-row-remove { grid-column: 2; grid-row: 1; min-height: 32px; padding: 4px 0; }
}
.pd-error { color: #9e2727; font-weight: 600; margin: 12px 0 0; }
.pd-quote-dialog { max-width: min(480px, 90vw); padding: 24px; border: 1px solid #aaa; border-radius: 6px; background: #fff; color: #222; }
.pd-quote-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.pd-shell :focus-visible { outline: 2px solid #2271b1; outline-offset: 3px; }
