/* Share box container */
.gsmastermind-share-container {
    margin: 18px 0;
    padding: 14px;
    border: 2px dashed #0073aa;
    border-radius: 14px;
    background: #f0f8ff;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Title */
.gsmastermind-share-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0073aa;
    line-height: 1.3;
}

/* 2 × 4 grid (2 buttons per row) – applies to ALL devices */
.gsmastermind-share-inner-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
    justify-items: center;
}

/* Rounded icon-only buttons */
.gsmastermind-share-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.gsmastermind-share-btn i {
    color: #fff;
    font-size: 22px;
}

/* Hover/active */
.gsmastermind-share-btn:hover {
    transform: scale(1.08);
    opacity: .92;
}
.gsmastermind-share-btn:active {
    transform: scale(0.98);
}

/* Brand colors */
.gsm-btn-facebook   { background: #1877F2; }
.gsm-btn-twitter    { background: #1DA1F2; }
.gsm-btn-whatsapp   { background: #25D366; }
.gsm-btn-telegram   { background: #0088cc; }
.gsm-btn-linkedin   { background: #0077b5; }
.gsm-btn-email      { background: #FF8C00; }
.gsm-btn-instagram  { background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4); }
.gsm-btn-messenger  { background: #0084FF; }
.gsm-btn-snapchat   { background: #FFFC00; }
.gsm-btn-snapchat i { color: #000 !important; }

/* Context spacing tweaks if needed */
.gsm-loop-context    { margin-top: 12px; }
.gsm-cart-context    { margin-top: 18px; }
.gsm-checkout-context{ margin-top: 18px; }

/* Guest popup overlay */
.gsm-login-popup {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.58);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}

/* Popup card */
.gsm-popup-inner {
    background: #fff;
    width: 92%;
    max-width: 380px;
    border-radius: 14px;
    padding: 22px 22px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    position: relative;
}

.gsm-popup-inner h3 {
    margin: 0 0 10px;
    color: #0073aa;
    font-size: 18px;
    font-weight: 700;
}

.gsm-popup-inner p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #333;
}

.gsm-popup-btn {
    display: inline-block;
    margin: 6px 6px 0;
    padding: 9px 14px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: filter .2s ease, transform .2s ease;
}

.gsm-popup-login    { background: #0073aa; }
.gsm-popup-register { background: #28a745; }
.gsm-popup-howitswork { background: #28a745; }
.gsm-popup-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }

.gsm-popup-close {
    position: absolute;
    top: 8px; right: 12px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

/* Make sure layout looks good in very narrow mobile */
@media (max-width: 360px) {
    .gsmastermind-share-btn { width: 50px; height: 50px; }
    .gsmastermind-share-btn i { font-size: 20px; }
}

/* Optional: slightly larger on big desktops while keeping 2x4 layout */
@media (min-width: 1400px) {
    .gsmastermind-share-btn { width: 58px; height: 58px; }
    .gsmastermind-share-btn i { font-size: 24px; }
}
