/* DG Bundles — storefront. Colors follow Rotary's palette (royal blue, gold). */
.dg-bundle-contents { margin: 1.25em 0 1.5em; }
.dg-bundle-contents__title { font-size: 1.05em; margin: 0 0 .5em; }
.dg-bundle-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(0,0,0,.1); }
.dg-bundle { width: 100%; }
.dg-bundle-list__item { padding: .6em 0; border-bottom: 1px solid rgba(0,0,0,.1); }
.dg-bundle-list__row { display: flex; align-items: center; gap: .75em; }
.dg-bundle-list__item .dg-bundle-choice { margin: .6em 0 .2em calc(48px + .75em); }
.dg-bundle-list__thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; display: block; }
.dg-bundle-list__text { flex: 1; display: flex; flex-direction: column; }
.dg-bundle-list__qty { font-weight: 600; margin-right: .25em; }
.dg-bundle-list__hint { font-size: .85em; opacity: .75; }
.dg-bundle-list__value { white-space: nowrap; font-variant-numeric: tabular-nums; opacity: .8; }

.dg-bundle-savings { display: flex; flex-wrap: wrap; gap: .4em 1.25em; margin-top: .75em; padding: .75em 1em; background: #f4f7fb; border-left: 4px solid #17458f; }
.dg-bundle-savings__save { font-weight: 600; color: #17458f; }

.dg-bundle-save { display: inline-block; margin-left: .4em; padding: .1em .5em; font-size: .75em; font-weight: 700; line-height: 1.6; border-radius: 3px; background: #f7a81b; color: #111; vertical-align: middle; }

.dg-bundle-mix { display: flex; align-items: center; gap: .4em; font-size: .85em; margin-bottom: .4em; cursor: pointer; }
.dg-bundle-unit[hidden] { display: none; }
.dg-bundle-admin-note { margin: 0 0 1em; padding: .75em 1em; background: #fcf9e8; border-left: 4px solid #dba617; font-size: .9em; }
.dg-bundle-admin-note ul { margin: .4em 0 0 1.2em; }
ul.dg-bundle-includes { margin: .25em 0 0 1.1em; padding: 0; list-style: disc; font-size: .92em; }
ul.dg-bundle-includes li { margin: 0; }
@media (max-width: 600px) { .dg-bundle-list__item .dg-bundle-choice { margin-left: 0; } }
.dg-bundle-unit { margin-top: .35em; }
.dg-bundle-unit + .dg-bundle-unit { padding-top: .75em; border-top: 1px dashed rgba(0,0,0,.12); }
.dg-bundle-unit__title { display: block; font-size: .85em; font-weight: 600; opacity: .75; margin-bottom: .25em; }
.dg-bundle-unit__fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6em .9em; }
.dg-bundle-attr label { display: block; font-size: .85em; margin-bottom: .2em; }
.dg-bundle-attr select { width: 100%; }
.dg-bundle-attr select option:disabled { color: #aaa; }
.dg-bundle-unit__status { margin: .35em 0 0; font-size: .85em; color: #17458f; min-height: 0; }
.dg-bundle-unit__status:empty { display: none; }
.dg-bundle-unit__status.is-error { color: #b32d2e; }
.dg-bundle-live-price { margin: 0 0 1em; }
.dg-bundle-buy { display: flex; align-items: center; gap: .5em; }
.dg-bundle-form.cart,
.woocommerce div.product form.cart.dg-bundle-form { display: block; }

/* Cart: items inside a bundle */
.woocommerce table.shop_table tr.dg-bundled-item td { border-top: 0; padding-top: .35em; padding-bottom: .35em; font-size: .92em; }
.woocommerce table.shop_table tr.dg-bundled-item td.product-thumbnail img { width: 40px; margin-left: auto; }
.dg-bundled-arrow { opacity: .5; margin-right: .25em; }
.dg-bundled-included { font-size: .85em; opacity: .7; }
