.mg-review-entry,.mg-review-order-items{box-sizing:border-box;border:1px solid #e2e2e2;border-radius:12px;background:#fff;padding:20px;margin:16px 0;color:#222}
.mg-review-entry h3{font-size:20px;margin:0 0 8px}.mg-review-entry p{color:#666;line-height:1.6;margin:0 0 16px}
.mg-review-button,.mg-review-primary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:9px;border:1px solid #bbb;background:white;color:#111;font:600 15px/1.4 Arial;cursor:pointer;text-decoration:none;box-sizing:border-box}
.mg-review-button:disabled{color:#777;background:#f5f5f5;cursor:default}.mg-review-primary{border-color:#de0f04;background:#de0f04;color:#fff;width:100%}
.mg-review-dialog{width:min(520px,calc(100% - 28px));max-height:90vh;padding:0;border:1px solid #ddd;border-radius:16px;color:#222;box-shadow:0 20px 80px #0003}.mg-review-dialog::backdrop{background:#0007}
.mg-review-form{position:relative;padding:24px;font:15px/1.5 Arial}.mg-review-form h2{font-size:23px;margin:0 36px 14px 0}.mg-review-close{position:absolute;top:12px;right:12px;width:40px;height:40px;border:0;background:transparent;font-size:28px;cursor:pointer}
.mg-review-product{font-weight:600;margin:0 0 4px}.mg-review-verified{color:#287349;margin:0 0 20px;font-size:13px}
.mg-review-product-image{width:64px;height:64px;object-fit:contain;float:left;margin:0 14px 12px 0}.mg-review-stars{clear:both}.mg-review-verified-badge{display:inline-block;margin-left:8px;color:#287349;font-size:12px;font-weight:400}
#comment [hidden]{display:none!important}
#comment .toprt{box-sizing:border-box;border:1px solid #e2e2e2;border-radius:12px;background:#fff;padding:20px;margin:16px 0}#comment .lcrt b{color:#222;font-size:32px}#comment .comment_list{padding:0;list-style:none}#comment .comment_list>li{box-sizing:border-box;padding:18px 16px;margin:12px 0;border:1px solid #e8e8e8;border-radius:12px;background:#fff}#comment .comment_list .name{font-weight:600;color:#222}#comment .comment_list .text{font-size:15px;line-height:1.65}#comment .comment_list .time{color:#777;font-size:12px}
.mg-review-form [hidden]{display:none!important}.mg-review-stars .is-selected span{color:#a75a00;background:#fff7e7;border-color:#d6b27d}.mg-review-upload{position:relative}.mg-review-upload input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;left:0;bottom:0}.mg-review-upload:focus-within{outline:2px solid #225f89;outline-offset:2px}
.mg-review-stars{margin:0 0 20px;padding:0;border:0;display:flex;gap:8px}.mg-review-stars legend{margin-bottom:8px}.mg-review-stars label{position:relative;cursor:pointer}.mg-review-stars input{position:absolute;opacity:0}.mg-review-stars span{display:block;font-size:30px;line-height:42px;min-width:42px;text-align:center;color:#888;border:1px solid #ddd;border-radius:8px}.mg-review-stars input:checked+span{background:#fff7e7;color:#a75a00;border-color:#a75a00}.mg-review-stars input:focus-visible+span{outline:2px solid #225f89;outline-offset:2px}
.mg-review-form textarea{display:block;width:100%;box-sizing:border-box;margin:6px 0;border:1px solid #bbb;border-radius:9px;padding:12px;font:16px/1.5 Arial;resize:vertical}.mg-review-help{font-size:12px;color:#777;margin:5px 0 16px}.mg-review-upload{display:inline-block;border:1px dashed #aaa;border-radius:8px;padding:10px;cursor:pointer}.mg-review-upload input{display:block;max-width:100%;font-size:13px;margin-top:6px}.mg-review-message{color:#333;font-size:14px;line-height:1.5}
.mg-review-order-item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 0}.mg-review-order-item+.mg-review-order-item{border-top:1px solid #eee}.mg-review-order-item>span{flex:1;min-width:160px}
@media(max-width:600px){.mg-review-form{padding:20px}.mg-review-stars{gap:6px}.mg-review-stars span{min-width:38px}.mg-review-entry{padding:16px}.mg-review-entry .mg-review-button{width:100%}}

#comment .mg-review-entry{display:block;float:none;clear:both;width:100%;text-align:left}#comment .mg-review-entry h3{float:none!important;display:block!important;width:auto!important;text-align:left!important;margin:0 0 8px!important;padding:0!important}#comment .mg-review-entry p{float:none;clear:both;text-align:left}

.mg-review-invite{flex-basis:100%;margin:0;color:#666;line-height:1.6}.mg-code-card .mg-review-order-item{margin-top:16px;border-top:1px solid #eee;padding-top:16px}

/* Keep review actions within responsive order cards. */
.mg-review-order-items,.mg-review-order-item{min-width:0;max-width:100%;width:100%;box-sizing:border-box;white-space:normal;text-align:left}
.mg-review-order-items{float:none;clear:both;display:block;padding:14px;margin:12px 0}
.mg-review-order-item>span,.mg-review-order-item>.mg-review-invite{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
.mg-review-order-item>.mg-review-invite{width:100%;flex:0 0 100%;font-size:13px;line-height:1.5}
.mg-review-order-item .mg-review-button{width:auto;max-width:100%;min-height:38px;padding:8px 12px;font-size:14px;line-height:1.4;white-space:normal;float:none;margin:0}
@media(max-width:600px){
.mg-review-order-items{padding:12px;margin:10px 0;border-radius:9px}
.mg-review-order-item{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:10px 0}
.mg-review-order-item>span{flex:0 0 auto;width:100%;font-size:14px;line-height:1.5}
.mg-review-order-item>.mg-review-invite{flex:0 0 auto}
}

@media(max-width:600px){td.mg-review-actions-cell{display:block!important;white-space:normal!important;text-align:left!important;min-width:0!important}td.mg-review-actions-cell .mg-review-order-items{width:100%!important;max-width:100%!important;margin:12px 0 0!important}}

/* Override legacy form button rules for the review dialog. */
.mg-review-dialog .mg-review-form .mg-review-close{display:flex!important;visibility:visible!important;opacity:1!important;position:absolute!important;top:8px!important;right:8px!important;left:auto!important;align-items:center;justify-content:center;width:44px!important;height:44px!important;min-width:44px!important;padding:0!important;margin:0!important;background:#f3f3f3!important;border:1px solid #ddd!important;border-radius:50%!important;color:#222!important;font:30px/1 Arial!important;z-index:10!important;cursor:pointer}
.mg-review-dialog .mg-review-form h2{padding-right:40px!important}
.mg-review-dialog .mg-review-form .mg-review-dismiss{display:block!important;visibility:visible!important;width:100%!important;min-height:42px;padding:10px 16px!important;margin:10px 0 0!important;border:1px solid #bbb!important;border-radius:9px!important;background:#fff!important;color:#222!important;font:600 15px/1.4 Arial!important;cursor:pointer}

/* Explicit dialog placement overrides the site's legacy reset. */
dialog.mg-review-dialog{position:fixed!important;inset:0!important;margin:auto!important;float:none!important;transform:none!important;box-sizing:border-box!important;width:calc(100% - 28px)!important;max-width:520px!important;min-width:0!important;height:fit-content!important;max-height:calc(100% - 28px)!important;padding:0!important;overflow:auto!important;overscroll-behavior:contain}
dialog.mg-review-dialog .mg-review-form{box-sizing:border-box!important;min-width:0!important;width:100%!important;margin:0!important}
@supports(height:100dvh){dialog.mg-review-dialog{max-height:calc(100dvh - 28px)!important}}

/* Stack product name and action within the desktop order action column. */
.mg-review-order-items .mg-review-order-item{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:8px!important}
.mg-review-order-items .mg-review-order-item>span{display:block!important;flex:none!important;width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}
.mg-review-order-items .mg-review-order-item>.mg-review-invite{flex:none!important;width:100%!important;overflow-wrap:break-word!important;word-break:normal!important}
.mg-review-order-items .mg-review-button{flex:none!important;align-self:flex-start!important}
@media(min-width:601px){td.mg-review-actions-cell{width:240px!important;min-width:210px!important;vertical-align:top!important}.mg-review-order-items{padding:12px!important}.mg-review-order-items .mg-review-button{font-size:13px!important;padding:8px 10px!important}}
