
/* ==========================================================================
   TEMPO Returns UX v0.1.2
   Complete stylesheet - Tempo.bg / Bootstrap 5
   ========================================================================== */

/* Terms modal */
.tempo-agree-modal .modal-dialog{width:calc(100% - 32px);max-width:760px;margin-left:auto;margin-right:auto}
.tempo-agree-modal .modal-content{border:0;border-radius:8px;background:#fff;box-shadow:0 20px 60px rgba(0,0,0,.16);overflow:hidden}
.tempo-agree-modal .modal-header{display:flex;align-items:center;gap:16px;padding:22px 26px;border-bottom:1px solid #ececea}
.tempo-agree-modal .modal-title{margin:0;color:var(--color-black);font-size:21px;line-height:1.3;font-weight:600}
.tempo-agree-modal .modal-body{padding:26px;color:var(--color-dark-grey);font-size:15px;line-height:1.65}
.tempo-agree-modal .modal-body p{margin:0 0 14px}
.tempo-agree-modal .modal-body p:last-child{margin-bottom:0}
.tempo-agree-modal .modal-body a{color:var(--color-black);text-decoration:underline;text-decoration-color:var(--main-accent);text-decoration-thickness:2px;text-underline-offset:3px}
.tempo-agree-modal .modal-body a:hover{color:var(--main-accent)}
.tempo-agree-modal .btn-close{flex:0 0 auto;margin:0 0 0 auto;opacity:.6;box-shadow:none}
.tempo-agree-modal .btn-close:hover{opacity:1}
.tempo-agree-modal .modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:18px 26px;border-top:1px solid #ececea}

/* Date picker */
#account-return .account-field__control--compact .input-group.date{display:flex;width:100%;max-width:440px}
#account-return .account-field__control--compact .input-group.date .form-control{flex:1;min-width:0;border-radius:4px 0 0 4px}
#account-return .account-field__control--compact .input-group-btn{display:flex;flex:0 0 auto}
#account-return .tempo-date-trigger{display:flex;align-items:center;justify-content:center;width:48px;min-width:48px;height:48px;padding:0;border:1px solid #d8d8d8;border-left:0;border-radius:0 4px 4px 0;background:#f7f7f5;color:var(--color-black);cursor:pointer;transition:background .2s ease,color .2s ease}
#account-return .tempo-date-trigger:hover{border-color:var(--main-accent);background:var(--main-accent);color:#fff}
#account-return .tempo-date-trigger .icon{width:19px;height:19px;fill:currentColor}

/* Order selection helper */
#account-return .tempo-return-helper{margin:0 0 34px;padding:26px 28px;border:0;border-radius:6px;background:#f7f7f5}
#account-return .tempo-return-helper__copy{display:flex;flex-direction:column;gap:7px;margin:0 0 22px}
#account-return .tempo-return-helper__copy strong{color:var(--color-black);font-size:21px;line-height:1.25;font-weight:600}
#account-return .tempo-return-helper__copy span{max-width:700px;color:var(--color-dark-grey);font-size:14px;line-height:1.55}
#account-return .tempo-return-helper__controls{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;max-width:620px}
#account-return .tempo-return-helper__controls label,#account-return .tempo-return-helper__lookup label{display:block;margin:0;color:var(--color-black);font-size:13px;line-height:1.3;font-weight:600}
#account-return .tempo-return-helper__controls .form-select,#account-return .tempo-return-helper__lookup .form-control{width:100%;min-height:48px;border:1px solid #d8d8d8;border-radius:4px;background-color:#fff;color:var(--color-black);font-size:14px;box-shadow:none}
#account-return .tempo-return-helper__controls .form-select:focus,#account-return .tempo-return-helper__lookup .form-control:focus{border-color:var(--color-black);box-shadow:none}
#account-return .tempo-return-helper__lookup{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end}
#account-return .tempo-return-helper__lookup>div{display:flex;flex-direction:column;gap:8px;min-width:0}
#account-return .tempo-return-helper__lookup .btn{min-height:48px;white-space:nowrap}
#account-return .tempo-return-link{display:inline-flex;align-items:center;width:max-content;max-width:100%;margin:16px 0 0;padding:0;border:0;background:transparent;color:var(--color-black);font-size:13px;line-height:1.4;font-weight:600;text-decoration:underline;text-decoration-color:var(--main-accent);text-decoration-thickness:2px;text-underline-offset:4px;cursor:pointer}
#account-return .tempo-return-link:hover{color:var(--color-dark-grey);text-decoration:none}
#account-return .tempo-return-manual-notice{margin:14px 0 0;color:var(--color-dark-grey);font-size:13px;line-height:1.5}
#account-return .tempo-return-legacy-hidden{display:none!important}

/* Return products */
#account-return .tempo-return-items-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 18px}
#account-return .tempo-return-items-head strong{color:var(--color-black);font-size:20px;line-height:1.3;font-weight:600}
#account-return .tempo-return-items-head span{color:var(--color-grey);font-size:13px;line-height:1.45;text-align:right}
#account-return .tempo-return-item{margin:0 0 12px;border:1px solid #e5e5e2;border-radius:6px;background:#fff;overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease}
#account-return .tempo-return-item:hover{border-color:#babbb4}
#account-return .tempo-return-item.is-selected{border-color:var(--main-accent);box-shadow:0 0 0 1px var(--main-accent)}
#account-return .tempo-return-item__select{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:14px;margin:0;padding:19px 22px;cursor:pointer}
#account-return .tempo-return-item__select>input{position:absolute;opacity:0;pointer-events:none}
#account-return .tempo-return-item__check{position:relative;display:block;width:20px;height:20px;margin:2px 0 0;border:1px solid #bfc1ba;border-radius:4px;background:#fff}
#account-return .tempo-return-item__select>input:checked+.tempo-return-item__check{border-color:var(--main-accent);background:var(--main-accent)}
#account-return .tempo-return-item__select>input:checked+.tempo-return-item__check:after{content:"";position:absolute;top:3px;left:6px;width:6px;height:10px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg)}
#account-return .tempo-return-item__select>input:focus-visible+.tempo-return-item__check{outline:2px solid var(--color-black);outline-offset:3px}
#account-return .tempo-return-item__summary{display:flex;flex-direction:column;gap:5px;min-width:0}
#account-return .tempo-return-item__summary strong{color:var(--color-black);font-size:15px;line-height:1.4;font-weight:600}
#account-return .tempo-return-item__summary small{color:var(--color-grey);font-size:12px;line-height:1.4}
#account-return .tempo-return-item__options{display:flex;flex-wrap:wrap;gap:5px 14px;margin:5px 0 0;color:var(--color-dark-grey);font-size:13px;line-height:1.4}

/* Selected product details */
#account-return .tempo-return-item__details{padding:22px;border-top:1px solid #ededeb;background:#fafaf8}
#account-return .tempo-return-item__details[hidden]{display:none!important}
#account-return .tempo-return-item__grid{display:grid;grid-template-columns:160px minmax(0,1fr);gap:18px 22px}
#account-return .tempo-return-field{display:flex;flex-direction:column;gap:9px;min-width:0;margin:0 0 16px}
#account-return .tempo-return-field label{margin:0;color:var(--color-black);font-size:13px;line-height:1.35;font-weight:600}
#account-return .tempo-return-field .form-control,#account-return .tempo-return-field .form-select{width:100%;min-height:46px;border:1px solid #d8d8d8;border-radius:4px;background-color:#fff;color:var(--color-black);font-size:14px;box-shadow:none}
#account-return .tempo-return-field .form-control:focus,#account-return .tempo-return-field .form-select:focus{border-color:var(--color-black);box-shadow:none}
#account-return .tempo-return-field textarea.form-control{min-height:100px;resize:vertical}
#account-return .tempo-return-choice{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#account-return .tempo-return-choice label{display:inline-flex;align-items:center;gap:8px;min-height:42px;margin:0;padding:9px 13px;border:1px solid #d8d8d8;border-radius:4px;background:#fff;color:var(--color-black);font-size:13px;line-height:1.3;font-weight:500;cursor:pointer;transition:border-color .2s ease,background .2s ease}
#account-return .tempo-return-choice label:hover{border-color:var(--color-black);background:#f5f5f2}
#account-return .tempo-return-choice input{accent-color:var(--main-accent)}
#account-return .tempo-return-loading{padding:24px;border:1px solid #e8e8e5;border-radius:6px;background:#f7f7f5;color:var(--color-dark-grey);font-size:14px;line-height:1.5;text-align:center}

/* Bulk returns - Order details */
.tempo-order-return-select{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:11px;margin:0;color:var(--color-black);font-size:14px;line-height:1.45;cursor:pointer}
.tempo-order-return-select input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--main-accent);cursor:pointer}
.tempo-order-return-select span{min-width:0}
.tempo-order-return-select strong{font-weight:600}
.tempo-order-return-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0 30px;padding:20px 24px;border:0;border-radius:6px;background:#f7f7f5}
.tempo-order-return-actions span{color:var(--color-dark-grey);font-size:14px;line-height:1.45}
.tempo-order-return-actions .btn{flex:0 0 auto;min-width:190px;min-height:44px;margin:0}
.tempo-order-return-actions .btn:disabled{opacity:.45;cursor:not-allowed}

/* Tablet */
@media (max-width:991.98px){
.tempo-agree-modal .modal-dialog{max-width:calc(100% - 32px)}
#account-return .tempo-return-helper{padding:24px}
#account-return .tempo-return-helper__lookup{grid-template-columns:repeat(2,minmax(0,1fr))}
#account-return .tempo-return-helper__lookup .btn{grid-column:1/-1}
#account-return .tempo-return-item__grid{grid-template-columns:140px minmax(0,1fr)}
}

/* Mobile */
@media (max-width:767.98px){
.tempo-agree-modal .modal-header{padding:18px 20px}
.tempo-agree-modal .modal-title{font-size:19px}
.tempo-agree-modal .modal-body{padding:20px;font-size:14px}
.tempo-agree-modal .modal-footer{padding:16px 20px}
#account-return .tempo-return-helper{margin-bottom:26px;padding:20px}
#account-return .tempo-return-helper__copy{margin-bottom:18px}
#account-return .tempo-return-helper__copy strong{font-size:19px}
#account-return .tempo-return-helper__lookup{grid-template-columns:1fr;gap:14px}
#account-return .tempo-return-helper__lookup .btn{grid-column:1;width:100%}
#account-return .tempo-return-items-head{flex-direction:column;gap:6px}
#account-return .tempo-return-items-head strong{font-size:18px}
#account-return .tempo-return-items-head span{text-align:left}
#account-return .tempo-return-item__select{padding:17px;gap:12px}
#account-return .tempo-return-item__details{padding:18px 17px}
#account-return .tempo-return-item__grid{grid-template-columns:1fr;gap:0}
#account-return .tempo-return-field{margin-bottom:17px}
#account-return .tempo-return-choice label{flex:1;justify-content:center;min-width:90px;padding:10px}
.tempo-order-return-actions{align-items:stretch;flex-direction:column;gap:14px;margin:20px 0 26px;padding:18px}
.tempo-order-return-actions .btn{width:100%;min-width:0}
}
