<div>
    <button @click="openItem === 2 ? openItem = null : openItem = 2"
            class="w-full flex justify-between items-center p-4 lg:bg-gray-100 border-b">
        <span class="text-black text-sm lg:text-xl font-semibold font-inter">What payment methods do you accept?</span>
        <span class="ml-4 flex-shrink-0">
              <svg x-show="openItem === 2" x-cloak xmlns="http://www.w3.org/2000/svg" width="22" height="2" viewBox="0 0 22 2" fill="none">
                <path d="M0 1H22" stroke="#2A2A2A" stroke-width="2" />
              </svg>
              <svg x-show="openItem !== 2" x-cloak xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22" fill="none">
                <path d="M11 0V22" stroke="#2A2A2A" stroke-width="2" />
                <path d="M0 11H22" stroke="#2A2A2A" stroke-width="2" />
              </svg>
            </span>
    </button>
    <div x-show="openItem === 2" x-collapse class="p-4 text-sm text-gray-700">
        We accept Visa, MasterCard, PayPal, and bank transfers.
    </div>
</div>

<div>
    <button @click="openItem === 3 ? openItem = null : openItem = 3"
            class="w-full flex justify-between items-center p-4 bg-gray-100 border-t">
        <span class="text-black text-sm lg:text-xl font-semibold font-inter">Is it safe to pay online?</span>
        <span class="ml-4 flex-shrink-0">
              <svg x-show="openItem === 3" x-cloak xmlns="http://www.w3.org/2000/svg" width="22" height="2" viewBox="0 0 22 2" fill="none">
                <path d="M0 1H22" stroke="#2A2A2A" stroke-width="2" />
              </svg>
              <svg x-show="openItem !== 3" x-cloak xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22" fill="none">
                <path d="M11 0V22" stroke="#2A2A2A" stroke-width="2" />
                <path d="M0 11H22" stroke="#2A2A2A" stroke-width="2" />
              </svg>
            </span>
    </button>
    <div x-show="openItem === 3" x-collapse class="p-4 text-sm text-gray-700">
        Yes, our website is fully encrypted and uses secure gateways.
    </div>
</div>
