/* GC RMA — área do cliente, no estilo dos cartões da Green Computer */
.gcrma{--g-dark:#13261b;--g:#1e8e3e;--g-soft:#eaf6ee;--b:#e3e6e8;--t:#1d2327;--m:#5f6b73;color:var(--t)}
.gcrma h3{margin:0 0 12px;font-size:20px}
.gcrma h4{margin:0 0 12px;font-size:16px}
.gcrma-muted{color:var(--m);font-size:13px;display:block}
.gcrma-card{background:#fff;border:1px solid var(--b);border-left:4px solid var(--g-dark);border-radius:8px;padding:18px 20px;margin:0 0 16px}
.gcrma-card--ok{border-left-color:var(--g);background:var(--g-soft)}
.gcrma-card textarea,.gcrma-card input[type=text]{width:100%;box-sizing:border-box;border:1px solid #cfd5da;border-radius:6px;padding:10px 12px;font-size:15px}
.gcrma-btn,.gcrma .button.gcrma-btn{background:var(--g-dark)!important;color:#fff!important;border:0!important;border-radius:6px!important;padding:12px 22px!important;font-weight:700!important;line-height:1.2!important;text-transform:none!important}
.gcrma-btn:hover{background:#234a33!important}
.gcrma-btn--alt,.gcrma .button.gcrma-btn--alt{background:#fff!important;color:var(--g-dark)!important;border:1px solid var(--g-dark)!important}
.gcrma-btn-small{padding:8px 14px!important;border-radius:6px!important;font-size:14px!important}
.gcrma-right{text-align:right;white-space:nowrap}
.gcrma-item{display:flex;gap:14px;align-items:center;padding:12px 0;border-top:1px solid #f0f1f2}
.gcrma-item:first-of-type{border-top:0}
.gcrma-item.is-disabled{opacity:.55}
.gcrma-item__img{flex:0 0 56px;width:56px;height:56px;overflow:hidden;border-radius:6px;background:#f6f7f7;font-size:0;line-height:0}
.gcrma-item__img img{width:56px!important;height:56px!important;max-width:none;object-fit:contain;display:block}
.gcrma-item__info{flex:1;min-width:0}
.gcrma-item__info strong{display:block;font-size:15px}
.gcrma-item__qty{flex:0 0 auto}
.gcrma-item__qty label{display:flex;align-items:center;gap:8px;margin:0;font-size:14px}
.gcrma .gcrma-item__qty select{min-width:72px;width:auto;height:42px;padding:0 28px 0 12px!important;font-size:16px!important;line-height:40px!important;color:var(--t)!important;background-color:#fff;border:1px solid #cfd5da;border-radius:6px;text-indent:0;box-sizing:border-box}
.gcrma-choices{display:grid;grid-template-columns:1.25fr 1fr;gap:12px}
.gcrma-choice{position:relative;display:flex;flex-direction:column;gap:6px;border:2px solid var(--b);border-radius:10px;padding:16px 16px 14px 46px;cursor:pointer;background:#fff;transition:border-color .15s,box-shadow .15s}
.gcrma-choice input{position:absolute;left:16px;top:19px;width:18px;height:18px;margin:0;accent-color:var(--g)}
.gcrma-choice:has(input:checked){border-color:var(--g-dark);box-shadow:0 0 0 3px rgba(30,142,62,.15)}
.gcrma-choice--coupon{border-color:var(--g);background:linear-gradient(180deg,#f3fbf5,#fff)}
.gcrma-choice__badge{align-self:flex-start;background:var(--g);color:#fff;font-weight:700;font-size:12px;padding:3px 10px;border-radius:20px;text-transform:uppercase;letter-spacing:.02em}
.gcrma-choice__title{font-weight:700;font-size:16px}
.gcrma-choice__value{font-size:24px;font-weight:800;color:var(--g-dark)}
.gcrma-choice--coupon .gcrma-choice__value{color:var(--g)}
.gcrma-choice__text{font-size:14px;color:var(--t)}
.gcrma-choice__fine{font-size:12px;color:var(--m)}
.gcrma-submit{margin-top:8px}
.gcrma-status{display:inline-block;padding:3px 10px;border-radius:12px;font-size:13px;font-weight:600;background:#f0f0f1;color:#50575e}
.gcrma-status--loja{background:#ddf4ff;color:#0a4f8a}
.gcrma-status--cliente{background:#fff8c5;color:#6b4e00}
.gcrma-status--fornecedor{background:#ffe8d1;color:#8a3c00}
.gcrma-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.gcrma-head h3{margin:0}
.gcrma-lead{font-size:15px;margin:10px 0 16px}
.gcrma-coupon{font-size:26px;font-weight:800;letter-spacing:.06em;margin:0 0 6px;color:var(--g-dark)}
.gcrma-row{display:flex;gap:10px;margin-top:6px}
.gcrma-row input{flex:1}
.gcrma-timeline{list-style:none;margin:0;padding:0 0 0 14px;border-left:2px solid var(--b)}
.gcrma-timeline li{margin:0 0 10px;position:relative}
.gcrma-timeline li:before{content:"";position:absolute;left:-20px;top:6px;width:10px;height:10px;border-radius:50%;background:var(--g)}
.gcrma-timeline strong{display:block}
.gcrma-timeline em{display:block;font-style:normal;background:#f6f7f7;padding:6px 8px;border-radius:4px;margin-top:4px}
.gcrma-link-danger{background:none;border:0;color:#b32d2e;text-decoration:underline;cursor:pointer;padding:0}
.gcrma-orderbox{margin:24px 0}
.gcrma-list-compact{margin:0 0 12px 18px}
.gcrma-actions .button{margin:0 6px 6px 0}
@media (max-width:640px){
	.gcrma-choices{grid-template-columns:1fr}
	.gcrma-row{flex-direction:column}
	.gcrma-right{text-align:left;white-space:normal}
}
/* Avisos do plugin */
.gcrma-flash{padding:12px 16px;border-radius:8px;margin:0 0 16px;font-weight:600;border:1px solid}
.gcrma-flash--success{background:#eaf6ee;border-color:#b7e1c3;color:#155d2b}
.gcrma-flash--error{background:#fbe9ea;border-color:#f1c0c3;color:#a1181a}
.gcrma-flash--info{background:#eef5fb;border-color:#c5dbef;color:#0a4f8a}
/* Mensagens */
.gcrma-card--attention{border-left-color:#dba617;background:#fffbea}
.gcrma-thread{display:flex;flex-direction:column;gap:10px;margin:0 0 14px}
.gcrma-msg{max-width:85%;padding:10px 14px;border-radius:10px;background:#f6f7f7}
.gcrma-msg--shop{align-self:flex-start;background:#eef7f0;border:1px solid #d3ead9}
.gcrma-msg--me{align-self:flex-end;background:#f1f3f5;border:1px solid #e3e6e8}
.gcrma-msg__who{display:block;font-size:12px;color:var(--m);margin-bottom:4px}
.gcrma-msg__text{font-size:15px;line-height:1.5;word-wrap:break-word}
.gcrma-msg__files{margin-top:6px;font-size:13px;display:flex;flex-wrap:wrap;gap:8px;color:var(--m)}
.gcrma-reply textarea{margin-bottom:8px}
.gcrma-row--between{justify-content:space-between;align-items:center;flex-wrap:wrap}
.gcrma-row--between input[type=file]{flex:1;min-width:200px}
.gcrma-fix{margin-top:8px}
.gcrma-fix summary{cursor:pointer;color:var(--m);font-size:14px}
.gcrma button[disabled]{opacity:.65;cursor:wait}
/* Tabelas em cartões no telemóvel (não depende dos estilos do WooCommerce) */
.gcrma-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--b,#e3e6e8);border-radius:10px;overflow:hidden;margin:0 0 16px}
.gcrma-table th,.gcrma-table td{padding:11px 14px;border:0;border-bottom:1px solid #eef0f1;text-align:left;vertical-align:middle;font-size:14px}
.gcrma-table thead th{background:#f7f8f8;color:#5f6b73;font-size:13px}
.gcrma-table tbody tr:last-child td{border-bottom:0}
@media (max-width:640px){
	.gcrma-table{border:0;border-radius:0;overflow:visible}
	.gcrma-table thead{display:none}
	.gcrma-table,.gcrma-table tbody,.gcrma-table tr,.gcrma-table td{display:block;width:100%;box-sizing:border-box}
	.gcrma-table tr{border:1px solid #e3e6e8;border-radius:10px;margin:0 0 10px;background:#fff;overflow:hidden}
	.gcrma-table td{display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:right;padding:9px 14px;border-bottom:1px solid #f0f1f2}
	.gcrma-table td[data-title]::before{content:attr(data-title);font-weight:600;color:#5f6b73;font-size:13px;text-align:left}
	.gcrma-table td:last-child{border-bottom:0;justify-content:flex-start}
	.gcrma-table td:not([data-title]){display:block;text-align:left}
	.gcrma-table .gcrma-btn-small{width:100%;text-align:center}
}
