/* Trofeos Economicos — Grabados UI (matches the theme: neutral borders, orange accents). */
.ecograb { margin: .25rem 0 .75rem; }
/* on engraving products the block sits right under the theme's price divider:
   trim the container's extra top padding (keeps the divider line, drops the dead gap) */
.product-additional-info:has(> .ecograb) { padding-top: .4rem; }
.ecograb-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.ecograb-q { font-weight: 600; }
.ecograb-priceunit { color: #ff7d23; font-weight: 600; }
.ecograb-opts { display: flex; gap: 1rem; }
.ecograb-opt { display: inline-flex; align-items: center; gap: .35rem; margin: 0; cursor: pointer; font-weight: 400; }

.ecograb-body { margin-top: .85rem; }
.ecograb-help { color: #777; font-size: .9rem; margin: 0 0 .6rem; }
.ecograb-group { margin-bottom: .75rem; border: 1px solid #e0e0e0; border-radius: 4px; padding: .55rem .65rem; }
.ecograb-grouplabel { font-weight: 600; padding: .25rem .55rem; background: #f4f4f4; border-radius: 4px; display: inline-block; }
.ecograb-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.ecograb-num { flex: 0 0 90px; color: #555; font-size: .9rem; }
.ecograb-input { flex: 1 1 auto; max-width: 420px; border: 1px solid #ccc; border-radius: 4px; padding: .4rem .6rem; }
.ecograb-input:focus { border-color: #ff7d23; outline: none; }

.ecograb-total { margin-top: .5rem; font-weight: 600; color: #ff7d23; }

.ecograb-hidden { display: none !important; }

.ecograb-empty { color:#777; font-style:italic; }

/* scroll box per size: ~4 engravings visible, the rest scroll (keeps the page short) */
.ecograb-rows-scroll { max-height: 188px; overflow-y: auto; padding: .15rem .4rem .15rem 0; }

.ecograb-grouphead { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; margin-bottom:.35rem; }
.ecograb-copybtn, .ecograb-copyall { display:inline-block; width:auto; background:rgba(255,125,35,.12); border:1px solid #ff7d23; color:#333; border-radius:4px; padding:.25rem .6rem; font-size:.8rem; cursor:pointer; line-height:1.4; }
.ecograb-copybtn:hover, .ecograb-copyall:hover { background:#ff7d23; color:#fff; }
.ecograb-copyall { margin-bottom:.6rem; }

/* HYBRID: how-many-per-size selector on the product page */
.ecograb-countrow { display:flex; align-items:center; gap:.6rem; margin-bottom:.5rem; flex-wrap:wrap; }
.ecograb-countlabel { font-weight:600; }
.ecograb-count { width:80px; text-align:center; border:1px solid #ccc; border-radius:4px; padding:.35rem .4rem; }
.ecograb-count:focus { border-color:#ff7d23; outline:none; }
.ecograb-countmax { color:#777; font-size:.9rem; }

/* Checkout: engraving texts */
.ecograb-checkout { margin:1rem 0 1.25rem; }
.ecograb-co-title { margin:0 0 .35rem; font-size:1.05rem; }
.ecograb-co-help { color:#777; font-size:.9rem; margin:0 0 .75rem; }
/* One engraving group placed inside a cart product row */
.ecograb-co-line { margin-top:.6rem; padding-top:.55rem; border-top:1px dashed #ddd; width:100%; }
.ecograb-co-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.5rem; margin-bottom:.45rem; }
.ecograb-co-title2 { font-weight:600; font-size:.9rem; color:#ff7d23; }
.ecograb-co-copy { background:rgba(255,125,35,.12); border:1px solid #ff7d23; color:#333; border-radius:4px; padding:.2rem .6rem; font-size:.78rem; cursor:pointer; line-height:1.4; }
.ecograb-co-copy:hover { background:#ff7d23; color:#fff; }
.ecograb-co-rows.ecograb-rows-scroll { max-height:180px; overflow-y:auto; padding-right:.3rem; }
/* Locked quantity on engraving lines (option B): hide the spinner buttons, show the number read-only */
.ecograb-lockqty .qty .bootstrap-touchspin-up,
.ecograb-lockqty .qty .bootstrap-touchspin-down,
.ecograb-lockqty .qty .input-group-btn-vertical,
.ecograb-lockqty .qty .input-group-btn { display:none !important; }
.ecograb-lockqty .qty .js-cart-line-product-quantity {
    pointer-events:none; text-align:center; background:transparent !important;
    border:0 !important; box-shadow:none !important; width:3em !important; padding:0 !important;
    color:inherit; font-weight:600;
}
/* touchspin wraps the input in an input-group; drop its box/border too */
.ecograb-lockqty .qty .input-group,
.ecograb-lockqty .qty .bootstrap-touchspin { border:0 !important; box-shadow:none !important; background:transparent !important; }
.ecograb-co-row { display:flex; align-items:center; gap:.6rem; margin-bottom:.4rem; }
.ecograb-co-num { flex:0 0 84px; color:#555; font-size:.85rem; }
.ecograb-co-row .form-control { flex:1 1 auto; max-width:420px; }
