/* «إعلاناتي»: one consistent set of actions — equal sizes, an icon each, colour by meaning.
   Edit = main (navy) · Preview = outline · Sold = green · Pause = neutral · Delete = red · Republish = orange. */
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x)>*:last-child:nth-child(odd){grid-column:1/-1}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) form{margin:0;display:flex}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) .sm-act{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;margin:0;padding:10px 14px!important;border-radius:12px!important;border:1px solid #dfe5ee!important;background:#fff!important;color:#13294b!important;box-shadow:none!important;font-size:14px!important;font-weight:700!important;line-height:1.2;text-decoration:none!important;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s,transform .1s}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) .sm-act:active{transform:scale(.98)}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) .sm-act::before{content:"";flex:0 0 18px;width:18px;height:18px;background:currentColor;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) .sm-act::after{display:none!important}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) .sm-act-edit{background:#13294b!important;border-color:#13294b!important;color:#fff!important;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16v4z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E")}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) .sm-act-edit:hover{background:#1e3a66!important}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) .sm-act-view{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) .sm-act-view:hover,.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) .sm-stop-ad:hover{border-color:#b9c4d4!important;background:#f7f9fc!important}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) .sm-sold-ad{background:#e6f4ec!important;border-color:#bfe3cd!important;color:#1d7a43!important;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.8 2.8L16 9.5'/%3E%3C/svg%3E")}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) .sm-sold-ad:hover{background:#d6eedf!important}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) .sm-stop-ad{background:#f4f6fa!important;color:#33415a!important;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10 9v6M14 9v6'/%3E%3C/svg%3E")}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) .sm-delete-ad{background:#fdecea!important;border-color:#f3c2c4!important;color:#c0262d!important;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%3E%3C/svg%3E")}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) .sm-delete-ad:hover{background:#fbdcd9!important}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) .sm-act-republish{background:#f2702b!important;border-color:#f2702b!important;color:#fff!important;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 1 0-2.3 5.7'/%3E%3Cpath d='M20 4v7h-7'/%3E%3C/svg%3E")}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) .sm-act:focus-visible{outline:2px solid #f2702b;outline-offset:2px}
@media(min-width:768px){.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x){grid-template-columns:repeat(2,minmax(150px,190px));justify-content:end}.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x)>*:last-child:nth-child(odd){grid-column:auto}}
/* inactive ads: «إعادة النشر» is the main action, first; «تعديل» becomes a normal button */
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x) form:has(.sm-act-republish){order:-1}
.sm .sm-owner-dashboard .sm-owner-buttons:not(#sm-x):has(.sm-act-republish) .sm-act-edit{background:#fff!important;border-color:#dfe5ee!important;color:#13294b!important}
/* ad page «تواصل مع البائع»: the buttons share the full row equally */
.sm .sm-seller-contact .sm-contact-actions:not(#sm-x){display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;width:100%}
.sm .sm-seller-contact .sm-contact-actions:not(#sm-x)>*{width:100%!important;min-width:0!important;min-height:46px;justify-content:center;margin:0!important}
/* ad editing page: each setting is a small card — title and state, then one full-width button */
.sm .sm-manage-page .sm-owner-actions:not(#sm-x){display:grid;gap:10px;margin:4px 0 16px}
.sm .sm-manage-page .sm-owner-actions:not(#sm-x)>form{display:grid;gap:10px;margin:0;padding:14px 16px;background:#fff;border:1px solid #dfe5ee;border-radius:16px;box-shadow:0 1px 2px rgba(24,44,70,.04)}
.sm .sm-manage-page .sm-owner-actions:not(#sm-x)>form>p{margin:0;font-size:13.5px;line-height:1.7;color:#4a5a70}
.sm .sm-manage-page .sm-owner-actions:not(#sm-x)>form>p strong{display:block;color:#13294b;font-size:15px;margin-bottom:2px}
.sm .sm-manage-page .sm-owner-actions:not(#sm-x)>form>button{width:100%;min-height:46px;margin:0;border-radius:12px!important;font-size:14px!important;font-weight:700!important;justify-content:center}
.sm .sm-manage-page .sm-owner-actions:not(#sm-x)>form:last-child>button:not(.sm-secondary){background:#13294b!important;border-color:#13294b!important;color:#fff!important}
.sm .sm-manage-page>a:last-child:not(#sm-x){display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid #dfe5ee;border-radius:12px;background:#fff;color:#13294b;font-weight:700;text-decoration:none}
.sm .sm-manage-page>a:last-child:not(#sm-x)::before{content:"→";font-size:16px}
.sm[dir=ltr] .sm-manage-page>a:last-child:not(#sm-x)::before{content:"←"}
