/* All rules are isolated to the existing quote drawer. */
#drawerBg .drawer{width:min(1160px,96vw);max-height:94dvh;background:#f8faff}
#drawerBg .quote-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(310px,1fr);gap:20px;padding:20px}
#drawerBg .quote-left,#drawerBg .quote-right{min-width:0}
#drawerBg .quote-right{background:#fff;border:1px solid #dce4f1;border-radius:18px;padding:20px;box-shadow:0 8px 24px #0c1d3810}
#drawerBg .quote-right h4{font-size:23px;color:#102040;margin:0 0 15px}
#drawerBg .quote-left .service-title{font-size:15px;color:#132344;letter-spacing:0;margin:18px 0 10px}
#drawerBg #hireItems,#drawerBg .quote-rental-dates{background:#fff;border:1px solid #dce4f1;border-radius:14px;padding:14px}
#drawerBg .service-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#drawerBg .service-option{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:9px;min-height:138px;padding:14px;border-radius:12px}
#drawerBg .service-option>b{margin-top:auto;font-size:19px}
#drawerBg .service-option.active{background:#edf4ff;border-color:#1877f2;box-shadow:inset 0 0 0 1px #1877f2}
#drawerBg .quote-right .rental-discount-box{margin:14px 0!important;padding:10px 0}
#drawerBg .quote-tax-lines{border-top:1px solid #dce4f1;padding:10px 0}
#drawerBg .quote-tax-lines>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:13px}
#drawerBg .quote-right .total{background:#eaf2ff;border-radius:12px;padding:15px;display:flex;justify-content:space-between;align-items:center}
#drawerBg .quote-right #total{font-size:29px;font-weight:900;color:#125de0}
#drawerBg .quote-right .enquiry{margin:14px 0 0!important;padding:0;background:transparent;border:0}
#drawerBg .quote-right .enquiry>.btn{border-radius:12px;min-height:50px}
#drawerBg .gt-pdf-button,#drawerBg .gt-add-equipment{border:1px solid #b6c8e2;background:#fff;color:#102344;border-radius:11px;font-weight:800;cursor:pointer}
#drawerBg .gt-pdf-button{width:100%;min-height:48px;margin-top:9px}
#drawerBg .gt-add-equipment{padding:9px 12px;margin:10px 0}
#drawerBg .gt-quote-note{font-size:12px;color:#52637d;background:#edf4ff;padding:11px;border-radius:10px;line-height:1.5}
@media(max-width:850px){#drawerBg .quote-columns{grid-template-columns:1fr;padding:14px}#drawerBg .service-options{grid-template-columns:1fr}#drawerBg .service-option{min-height:68px;flex-direction:row;align-items:center}#drawerBg .service-option>b{margin:0 0 0 auto}#drawerBg .drawer{width:100vw;max-height:100dvh;border-radius:0}}

/* Equipment row: prevent long names and totals from colliding. */
#drawerBg .hire-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;min-width:0}
#drawerBg .hire-item>div{min-width:0;overflow-wrap:anywhere}
#drawerBg .hire-item>div>strong{display:block;line-height:1.35;white-space:normal;max-width:100%}
#drawerBg .hire-item>span{white-space:nowrap;text-align:right;align-self:center;font-weight:900}
#drawerBg .hire-item .item-controls{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
#drawerBg .quote-right .enquiry>strong{display:block;font-size:16px;line-height:1.35}
#drawerBg .quote-right .enquiry>p{font-size:12px;line-height:1.5}
#drawerBg .quote-right .quote-form{padding-top:12px}
@media(max-width:520px){#drawerBg .hire-item{grid-template-columns:minmax(0,1fr) auto;gap:8px}#drawerBg .hire-item>span{font-size:14px}}

#drawerBg .gt-email-copy{margin-top:12px}
#drawerBg .gt-email-copy>label{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:750;color:#15284b;cursor:pointer}
#drawerBg .gt-email-copy input[type="checkbox"]{width:17px;height:17px;accent-color:#1877f2}
#drawerBg .gt-email-fields:not([hidden]){display:grid;gap:8px;margin-top:10px}
#drawerBg .gt-email-fields[hidden]{display:none!important}
#drawerBg #gtEmailQuoteAddress{width:100%;border:1px solid #cad7e9;border-radius:10px;padding:12px;font:inherit}
#drawerBg #gtSendQuoteEmail{background:#eaf2ff;color:#1459bb;border:1px solid #b9d1f5;border-radius:10px;padding:12px;font-weight:800;cursor:pointer}
#drawerBg #gtSendQuoteEmail:disabled{opacity:.55;cursor:wait}
#drawerBg #gtEmailQuoteStatus{color:#52637d;line-height:1.5}

/* Compact equipment line items: override legacy drawer spacing and line breaks. */
#drawerBg .quote-left #hireItems .hire-item{display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;align-items:start!important;column-gap:16px!important;row-gap:0!important;padding:12px 2px!important;margin:0!important;min-height:0!important;line-height:1.3!important}
#drawerBg .quote-left #hireItems .hire-item>div{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;min-width:0!important;margin:0!important;padding:0!important}
#drawerBg .quote-left #hireItems .hire-item>div>strong{display:block!important;font-size:15px!important;font-weight:800!important;line-height:1.3!important;margin:0!important;padding:0!important;overflow-wrap:break-word!important}
#drawerBg .quote-left #hireItems .hire-item>div>br{display:none!important}
#drawerBg .quote-left #hireItems .hire-item>div>small{display:block!important;font-size:12px!important;line-height:1.3!important;margin:0!important}
#drawerBg .quote-left #hireItems .hire-item .item-controls{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:7px!important;margin:3px 0 0!important;padding:0!important;align-items:center!important}
#drawerBg .quote-left #hireItems .hire-item>span{display:block!important;font-size:17px!important;line-height:1.3!important;margin:0!important;padding:0!important;align-self:start!important}

/* Give equipment cards a consistent comfortable inset, including the price. */
#drawerBg .quote-left #hireItems{padding:12px 16px!important;box-sizing:border-box!important;overflow:hidden!important}
#drawerBg .quote-left #hireItems .hire-item{padding:14px 8px!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;grid-template-columns:minmax(0,1fr) max-content!important;column-gap:20px!important}
#drawerBg .quote-left #hireItems .hire-item>span{padding-right:8px!important;box-sizing:border-box!important;white-space:nowrap!important}
@media(max-width:520px){#drawerBg .quote-left #hireItems{padding:10px 12px!important}#drawerBg .quote-left #hireItems .hire-item{padding:12px 6px!important;column-gap:12px!important}#drawerBg .quote-left #hireItems .hire-item>span{padding-right:4px!important}}

#drawerBg .quote-rental-dates label.gt-clickable-date{cursor:pointer;border-radius:10px;padding:8px 10px;margin:-8px -10px;transition:background .15s}
#drawerBg .quote-rental-dates label.gt-clickable-date:hover{background:#edf4ff}
#drawerBg .quote-rental-dates label.gt-clickable-date:focus-within{outline:2px solid #9bc2ff;outline-offset:3px}
#drawerBg .quote-rental-dates label.gt-clickable-date input[type="date"]{cursor:pointer}

/* Keep the outer date-field focus ring, not a second unhelpful inner ring. */
#drawerBg .quote-rental-dates label.gt-clickable-date input[type="date"]:focus{outline:none!important;box-shadow:none!important}
#drawerBg .quote-rental-dates label.gt-clickable-date input[type="date"]{min-width:0;max-width:100%}

/* Give customer email its own full-width row, so addresses remain readable. */
#drawerBg .quote-right #quoteForm .quote-form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
#drawerBg .quote-right #quoteForm .quote-form-grid label:has(#quoteEmail){grid-column:1/-1!important}
#drawerBg .quote-right #quoteForm #quoteEmail{display:block!important;width:100%!important;min-width:0!important;box-sizing:border-box!important}
#drawerBg .quote-right #quoteForm .quote-form-grid label{min-width:0!important}
@media(max-width:650px){#drawerBg .quote-right #quoteForm .quote-form-grid{grid-template-columns:1fr!important}}
