.rms-wrap {
    padding: 74px 0px;
}
.rms-header {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-bottom: 50px;
}
.rms-tabs {
    display: flex;
    gap: 17px 10px;
    flex-wrap: wrap;
    width: 60%;
}
.rms-tab { padding: 8px 12px; border: 1px solid #ddd; background: #fff; cursor: pointer; border-radius: 10px; }
.rms-tab.is-active { border-color: #111; }

.rms-cart-mini { display: flex; gap: 10px; align-items: center; }
.rms-cart-toggle { border: 1px solid #ddd; background: #fff; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.redwood-system-button {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 10px;
    background: #d4363b;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.rms-panels { margin-top: 14px; }
.rms-panel { display: none; }
.rms-panel.is-active { display: block; }
.rms-grid-packs {
    grid-template-columns: repeat(2, 1fr) !important;
    margin-bottom: 50px !important;
}
.rms-grid-banquets {
    grid-template-columns: repeat(2, 1fr) !important;
}
.rms-item-banquet .rms-item-includes {
    height: 160px;
    overflow-x: hidden;
    overflow-y: scroll;
}
.rms-item-banquet .rms-item-actions {
    align-items: end;
}

.rms-item-banquet .rms-item-actions .rms-banquet-guests {
    width: 80%;
}

.rms-item-banquet .rms-item-actions button.rms-add {
    width: 20%;
}

.rms-item-banquet .rms-item-rules {
    width: 70%;
}
.rms-pack-dish {
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 4px 8px;
}
.rms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 52px;
    margin-bottom: 20px;
}
[data-type="pack"] .rms-item-actions {
    flex-wrap: wrap;
}

[data-type="pack"] .rms-item-actions .rms-pack-options {
    width: 100%;
}

[data-type="pack"] .rms-item-actions .rms-qty {
    width: 80%;
}

.rms-item {
    border: 1px solid #e7e7e7;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
    border: 1px solid black;
}
.rms-item-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
    height: 57px;
}
.rms-item-title {
    font-weight: 600;
    line-height: 29px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    text-transform: uppercase !important;
    font-size: 14px;
}


.rms-item-number { opacity: .6; }
.rms-item-price { font-weight: 700; }
.rms-item-desc { margin-top: 8px; font-size: 14px;}

.rms-badge { font-size: 11px; padding: 3px 7px; border-radius: 999px; background: #f3f3f3; border: 1px solid #e1e1e1; }

.rms-item-actions { margin-top: 10px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.rms-qty { display: flex; align-items: center; gap: 6px; }
.rms-qty-btn { width: 32px; height: 32px; border: 1px solid #ddd; background: #fff; border-radius: 10px; cursor: pointer; }
.rms-qty-input { width: 52px; height: 32px; border: 1px solid #ddd; border-radius: 10px; text-align: center; }

.rms-add {
    padding: 8px 12px;
    border-radius: 10px;
    background: #d4363b;
    color: #fff;
    cursor: pointer;
    box-shadow: none !important;
    border: none;
}
.redwood-system-button:hover {
    color: white !important;
}
.rms-cart-drawer { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: none; }
.rms-cart-drawer[aria-hidden="false"] { display: block; }
.rms-cart-drawer-inner {
    position: absolute;
    right: 0;
    bottom :0px;
    height: 70%;
    width: min(420px, 92vw);
    background: #fff;
    padding: 14px;
    display: flex;
    flex-direction: column;
}
.rms-cart-drawer-head { display: flex; justify-content: space-between; align-items: center; }
.rms-cart-lines { 
  margin-top: 12px; 
  overflow-y: auto; 
  overflow-x: hidden;
  padding-right: 6px; 
  flex: 1;
  -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
  overscroll-behavior: contain; /* Prevent parent scroll */
}

.rms-cart-line { border: 1px solid #eee; border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.rms-cart-line-title { font-weight: 600; }
.rms-cart-line-meta { font-size: 13px; opacity: .8; margin-top: 4px; }
.rms-cart-line-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.rms-cart-line-actions button { border: 1px solid #ddd; background: #fff; border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.rms-cart-footer { border-top: 1px solid #eee; padding-top: 12px; }
.rms-cart-footer-row { display: flex; justify-content: space-between; }
.rms-cart-actions { display: flex; gap: 10px; margin-top: 10px; }
.rms-empty-cart { opacity: .7; padding: 10px; }

.rms-item-includes, .rms-item-rules { margin-top: 8px; font-size: 13px; opacity: .9; }
.rms-item-includes strong, .rms-item-rules strong { display:block; margin-bottom: 3px; }

.rms-pack-options, .rms-banquet-guests { display: flex; flex-direction: column; gap: 4px; }
.rms-label { font-size: 14px; }
.rms-pack-rice { height: 34px; border: 1px solid #ddd; border-radius: 10px; padding: 4px 8px; }

.rms-disabled {
  background: #f5f5f5;
  pointer-events: none;
  opacity: 0.7;
}
/* Disabled proceed button */
.rms-proceed.rms-disabled {
  background: #ccc !important;
  border-color: #ccc !important;
  color: #888 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
  pointer-events: auto; /* Allow click to show message */
}

.rms-proceed.rms-disabled:hover {
  background: #ccc !important;
  transform: none;
}
/* Pack addons checkboxes */
.rms-pack-addons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.rms-addon-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px;
  font-size: 15px;
}

.rms-addon-option:hover {
  background: #f9f9f9;
  border-radius: 4px;
}

.rms-pack-addon-cb {
  cursor: pointer;
  margin: 0;
}

.rms-addon-option span {
  user-select: none;
}
@media (max-width: 900px) { 
    .rms-grid { grid-template-columns: repeat(2, 1fr);} 
    .rms-header {
        flex-wrap: wrap;
    }
    .rms-tabs {
        width: 100%;
    }
    }
@media (max-width: 560px) { .rms-grid { grid-template-columns: 1fr; } .rms-grid-packs {
    grid-template-columns: repeat(1, 1fr) !important;
} }