/* ================================================= */
/* NEW CSS FOR STORE PAGE (SIMPLE SWAP BOX LAYOUT)   */
/* ================================================= */
/* This file replaces the old trade.css */

/* 1. Reset the main container */
#store-items-grid {
    display: block;
    max-width: 480px; /* Width of a standard swap box */
    margin: 2rem auto;
    padding: 0;
}

/* 2. The main swap box */
.swap-box-container {
    background: #ffffff; /* Uniswap-style light background */
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.swap-box-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}
.swap-box-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}
.swap-box-header p {
    font-size: 0.9rem;
    color: #555;
    margin: 4px 0 0 0;
}

#swap-box-content {
    padding: 1.25rem;
    position: relative;
}

/* 3. The "From" and "To" Panels */
.swap-panel {
    background: #f7f7f7; /* Light grey background for panels */
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
}

.swap-panel-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
}

.swap-panel-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.swap-amount {
    font-size: 1.75rem;
    font-weight: 600;
    color: #000;
    font-family: 'Inter', sans-serif;
}

.token-selector-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: default;
    background: #eee;
    color: #000;
}
.token-selector-btn img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}
.token-selector-btn i {
    font-size: 0.8rem;
}

/* Make the selector button clickable */
.token-selector-btn.is-selector {
    background: #ff007a; /* Pink from your image */
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
}
.token-selector-btn.is-selector:hover {
    background: #e6006e;
}

.swap-panel-details {
    font-size: 0.8rem;
    color: #777;
    margin-top: 4px;
    text-align: right;
}

/* 4. The Swap Arrow Button */
.swap-arrow-button-wrapper {
    display: flex;
    justify-content: center;
    padding: 8px 0;
    margin: -18px 0; /* Pulls it over the panel borders */
    position: relative;
    z-index: 2;
}
.swap-arrow-btn {
    background: #f0f0f0;
    border: 4px solid #ffffff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: all 0.2s ease;
}
.swap-arrow-btn:hover {
    transform: rotate(180deg);
    background: #e0e0e0;
}

/* 5. The Main Execute Button */
#swap-box-button-container {
    padding: 0 1.25rem 1.25rem 1.25rem;
}
.execute-trade-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ff007a; /* Pink from your image */
    color: #ffffff;
}
.execute-trade-btn:hover:not(:disabled) {
    background: #e6006e;
}
.execute-trade-btn:disabled {
    background: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
}


/* 6. The Pool Selector Modal */
.pool-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}
.pool-modal.open {
    opacity: 1;
    visibility: visible;
}

.pool-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: all 0.2s ease;
}
.pool-modal.open .pool-modal-content {
    transform: scale(1);
}

.pool-modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pool-modal-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}
.pool-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #555;
    cursor: pointer;
}

#pool-modal-list {
    overflow-y: auto;
    padding: 8px;
}

.pool-modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    transition: background 0.2s ease;
}
.pool-modal-item:hover {
    background: #f7f7f7;
}
.pool-modal-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.pool-modal-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}
.pool-modal-item span {
    font-size: 0.85rem;
    color: #555;
}