/* ==========================================================================
   Datasky Redesign: My eSIM
   The list itself is the theme's [guest_order_notes]; my-esim.js redraws each eSIM as .dsh-esim
   ========================================================================== */


.dsh .dsh-esims__hint { max-width: 420px; }
.dsh .dsh-esims__hint a { font-weight: 700; }

/* The list: cards side by side on wide screens */
.dsh .dsh-esims .guest-orders-notes-wrapper { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 18px; align-items: start; }

/* Messages from the shortcode (no orders yet, ...) */
.dsh .dsh-esims .guest-order-message-box { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin: 0; padding: 22px 24px; border: 0; border-radius: var(--dsh-radius); background: var(--dsh-surface); box-shadow: var(--dsh-shadow); color: var(--dsh-text); }
.dsh .dsh-esims .guest-order-message-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: var(--dsh-btn-gradient); color: #FFFFFF; }
.dsh .dsh-esims .guest-order-message-icon .dashicons { width: 26px; height: 26px; font-size: 26px; }
.dsh .dsh-esims .guest-order-message-box.warning .guest-order-message-icon { background: var(--dsh-yellow); color: var(--dsh-navy); }
.dsh .dsh-esims .guest-order-message-text p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--dsh-text-2); }

/* One eSIM (container from the theme) */
.dsh .dsh-esims .my-custom-order-notes-container { position: relative; margin: 0; padding: 0; border-radius: var(--dsh-radius); background: var(--dsh-surface); box-shadow: var(--dsh-shadow); overflow: hidden; }
.dsh .dsh-esims .order_notes { margin: 0; padding: 18px 20px; list-style: none; }
.dsh .dsh-esims .note_content { margin: 0; padding: 0; background: none; color: var(--dsh-text); font-size: 14px; line-height: 1.6; }
.dsh .dsh-esims .note_content p { margin: 0 0 6px; }
.dsh .dsh-esims .note_content img { max-width: 64px; height: auto; border-radius: 12px; }
.dsh .dsh-esims .note_content a { font-weight: 700; word-break: break-all; }
/* Before / without the redraw: the theme's buttons as small pills in the corner */
.dsh .dsh-esims .datasky-remove-order-btn { top: 16px; right: 16px; border-radius: 10px; font-family: inherit; font-weight: 700; }
.dsh .dsh-esims .datasky-whatsapp-btn { top: 54px; right: 16px; }
html[lang^="ar"] .dsh .dsh-esims .datasky-remove-order-btn, html[lang^="ar"] .dsh .dsh-esims .datasky-whatsapp-btn { right: auto; left: 16px; }

/* ---------- Redrawn card (app style) ---------- */
.dsh .dsh-esim { display: flex; flex-direction: column; }
.dsh .dsh-esim__head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: linear-gradient(120deg, #0A6FE8, #303CE2 60%, #443195); color: #FFFFFF; }
.dsh .dsh-esim__head img { flex: none; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: rgba(255, 255, 255, 0.15); box-shadow: 0 4px 10px rgba(11, 22, 64, 0.25); }
.dsh .dsh-esim__head-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.dsh .dsh-esim__head-text b { font-size: 18px; font-weight: 800; line-height: 1.25; }
.dsh .dsh-esim__head-text small { font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.dsh .dsh-esim__pill { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-size: 11px; font-weight: 700; }

.dsh .dsh-esim__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.dsh .dsh-esim__field { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--dsh-muted); }
.dsh .dsh-esim__field-ico { flex: none; display: flex; color: var(--dsh-text-2); }
.dsh .dsh-esim__field-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dsh .dsh-esim__field-text small { font-size: 12px; color: var(--dsh-text-2); }
.dsh .dsh-esim__field-text b { font-size: 15px; font-weight: 800; color: var(--dsh-text); word-break: break-all; }
.dsh .dsh-esim__copy { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 0; padding: 0 12px; border: 1px solid var(--dsh-border); border-radius: 10px; background: #FFFFFF; color: var(--dsh-blue-text); font: 700 13px/1 var(--dsh-font); text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; }
.dsh .dsh-esim__copy:hover, .dsh .dsh-esim__copy:focus { background: #FFFFFF; border-color: var(--dsh-blue-text); color: var(--dsh-blue-text); }
.dsh .dsh-esim__copy.is-copied { border-color: #16A34A; color: #15803D; }

.dsh .dsh-esim__install { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin-top: 4px; padding: 0 16px; border-radius: 14px; background: var(--dsh-btn-gradient); color: #FFFFFF; font-size: 16px; font-weight: 800; text-align: center; box-shadow: 0 8px 18px rgba(10, 111, 232, 0.3); }
.dsh .dsh-esim__install:hover { color: #FFFFFF; filter: brightness(1.08); }
.dsh .dsh-esim__link { display: block; padding: 4px 2px; font-size: 14px; font-weight: 700; word-break: break-all; }
.dsh .dsh-esim__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dsh .dsh-esim__soft { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid #C7D7F2; background: #F4F8FF; color: var(--dsh-blue-text); font-size: 14px; font-weight: 700; text-align: center; }
.dsh .dsh-esim__soft:hover { border-color: var(--dsh-blue-text); }

.dsh .dsh-esim__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--dsh-border); }
.dsh .dsh-esim .dsh-esim__action { position: static; display: inline-flex; align-items: center; gap: 8px; width: auto; height: 42px; margin: 0; padding: 0 14px; border: 0; border-radius: 12px; font: 700 14px/1 var(--dsh-font); text-transform: none; letter-spacing: 0; cursor: pointer; opacity: 1; box-shadow: none; transform: none; }
.dsh .dsh-esim .dsh-esim__action.is-blue { background: #E6F1FF; color: var(--dsh-blue-text); }
.dsh .dsh-esim .dsh-esim__action.is-green { background: #E7F8EE; color: #128C4A; }
.dsh .dsh-esim .dsh-esim__action.is-green:hover { background: #D5F3E2; }
.dsh .dsh-esim .dsh-esim__action .dashicons { width: 18px; height: 18px; font-size: 18px; }
.dsh .dsh-esim .dsh-esim__remove { position: static; display: inline-flex; align-items: center; gap: 4px; height: 42px; margin: 0; margin-inline-start: auto; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--dsh-red); font: 700 14px/1 var(--dsh-font); text-transform: none; opacity: 1; box-shadow: none; cursor: pointer; }
.dsh .dsh-esim .dsh-esim__remove:hover { background: #FEECEC; color: var(--dsh-red); }



/* Shortcode modals (remove / sent / limit) in the site's style */
.custom-delete-modal-overlay .custom-delete-modal-content { border-radius: 24px; font-family: 'Plus Jakarta Sans', 'Tajawal', system-ui, sans-serif; }
.custom-delete-modal-overlay .custom-delete-modal-buttons button { border-radius: 12px; font-family: inherit; }

/* Quick links under the list */
.dsh .dsh-esim-link { color: var(--dsh-text); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.dsh .dsh-esim-link:hover { color: var(--dsh-text); transform: translateY(-2px); box-shadow: var(--dsh-shadow-hover); }

@media (max-width: 600px) {
    .dsh .dsh-esim__head-text b { font-size: 16px; }
    .dsh .dsh-esim .dsh-esim__remove { margin-inline-start: 0; }
}

/* Direct install button (a <button>: reset theme button styles) + message for devices that can't install */
.dsh .dsh-esim__install-box { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.dsh .dsh-esim__install-box .dsh-esim__install { width: 100%; margin: 0; border: 0; font-family: var(--dsh-font); text-transform: none; letter-spacing: 0; line-height: 1.2; cursor: pointer; }
.dsh .dsh-esim__install-box .dsh-esim__install:hover, .dsh .dsh-esim__install-box .dsh-esim__install:focus { background: var(--dsh-btn-gradient); color: #FFFFFF; }
.dsh .dsh-esim__alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FFF4E5; color: #8A4B00; font-size: 14px; font-weight: 600; line-height: 1.5; }
.dsh .dsh-esim__alert[hidden] { display: none; }

/* Redrawn: the theme's note text, WhatsApp button and form stay in the page for its scripts, but out of sight */
.dsh .dsh-esims .is-redrawn > .order_notes,
.dsh .dsh-esims .is-redrawn > .datasky-whatsapp-btn,
.dsh .dsh-esims .is-redrawn > .datasky-whatsapp-form { display: none !important; }
.dsh .dsh-esim__two > :only-child { grid-column: 1 / -1; }

/* Opened from "View" on an order (my-esim.js): that eSIM is outlined for a moment */
.dsh .dsh-esim.is-target { animation: dsh-esim-target 2.4s ease-out 1; box-shadow: 0 0 0 3px var(--dsh-blue-text), var(--dsh-shadow-hover); }
@keyframes dsh-esim-target { 0%, 60% { box-shadow: 0 0 0 6px rgba(10, 111, 232, 0.35), var(--dsh-shadow-hover); } 100% { box-shadow: 0 0 0 3px var(--dsh-blue-text), var(--dsh-shadow-hover); } }
