/* Multi-Option Product — purchase module. RTL-first. */
.gmop {
    border: 1px solid rgba(0, 57, 68, .25);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 24px 28px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Title */
.gmop__title {
    margin: 0 0 10px;
    text-align: right;
    font-family: "Heebo", sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #4B2D45;
}

/* Label */
.gmop__label {
    display: block;
    margin: 0 0 8px;
    font-family: "Heebo", sans-serif;
    font-weight: 700;
    text-align: right;
    font-size: 0.875rem;
    color: #2E404A;
}

/* Dropdown */
.gmop__select {
    width: 100%;
    height: var(--guild-field-h, 60px);
    border-radius: var(--guild-radius);
    border: 1px solid #2e404a;
    padding: 0 14px;
    font-family: "Heebo", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    background: #fff;
    color: #2E404A;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23003944' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    text-align: right;
}

/* Price + Qty row */
.gmop__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 18px;
    gap: 14px;
    flex-direction: row-reverse;
}

/* Price */
.gmop__price {
    font-family: "Heebo", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2E404A;
    direction: rtl;
}

/* Qty spinner — single bordered pill with no internal dividers. The
   number fills most of the box on the right (RTL col 1); the up/down
   chevrons stack in a narrower column on the left. */
.gmop__qty {
    display: grid;
    grid-template-columns: 1fr 28px;
    grid-template-rows: 1fr 1fr;
    align-items: stretch;
    border: 1px solid #2e404a;
    border-radius: var(--guild-radius);
    overflow: hidden;
    height: var(--guild-field-h);
    width: 5rem;
}

/* Selector doubled (.gmop .gmop__qtyInput) to beat the theme's
   `input[type="number"]` rule (specificity 0,1,1) which would
   otherwise re-impose a 1px border, 3px radius, and padding. */
.gmop .gmop__qtyInput {
    grid-column: 1;
    grid-row: 1 / -1;
    border: 0;
    border-radius: 0;
    padding: 0;
    text-align: center;
    font-family: "Heebo", sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #2E404A;
    background: #fff;
    -moz-appearance: textfield;
}

.gmop__qtyInput::-webkit-outer-spin-button,
.gmop__qtyInput::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gmop__qtyBtn {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #fff;
    color: #003944;
    cursor: pointer;
    padding: 0;
    transition: background .15s ease;
}

.gmop__qtyBtn:hover {
    background: #f0f0f0;
}

.gmop__qtyBtn--up   { grid-row: 1; }
.gmop__qtyBtn--down { grid-row: 2; }

/* Add to cart button */
.gmop__btn {
    width: 100%;
    height: var(--guild-field-h);
    border-radius: var(--guild-radius) !important;
    background: #F9C466 !important;
    color: #003944 !important;
    border: 0;
    font-family: "Heebo", sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    line-height: 120%;
    letter-spacing: -0.019em;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
    white-space: nowrap;
    text-align: center;
}

.gmop__btn:hover {
    background: #f0be52 !important;
    transform: translateY(-1px);
    color: #003944 !important;
}

.gmop__btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

/* Editor notice */
.gmop__notice {
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--guild-radius);
    text-align: center;
    color: #664d03;
    font-size: 0.875rem;
}

/* Desktop */
@media (min-width: 768px) {
    .gmop {
        padding: 22px 26px 26px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .gmop {
        max-width: 360px;
    }

    .gmop__title {
        text-align: center;
        font-size: 1.75rem;
    }

    .gmop__label {
        text-align: center;
    }

    .gmop__row {
        flex-direction: column;
        align-items: center;
    }

    .gmop__btn {
        font-size: 1.125rem;
    }
}
