[data-panchang-tithi-card].is-rikta {
  border: 1px solid #e0a39d;
  border-left: 4px solid #b7352f;
  border-radius: 12px;
  background: #fff0ee;
  padding: 10px 12px;
}

.aj-panchang-warning[hidden],
[data-pd-tithi-warning][hidden] {
  display: none !important;
}

.aj-panchang-warning {
  display: block;
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 7px;
  color: #a52d27;
  background: #ffe2de;
  font-size: 12px;
  line-height: 1.4;
}

.aj-panchang-location{position:relative;min-width:0;width:100%;max-width:340px;grid-column:span 2}
.aj-panchang-location>label{display:block;margin:0 0 5px;color:#696f82;font-size:11px;font-weight:700}
.aj-panchang-location__field{position:relative;display:flex;align-items:center;gap:8px;min-height:42px;padding:0 10px;border:1px solid #d8cba9;border-radius:10px;background:#fffdf8}
.aj-panchang-location__field>span{color:#a77c2d;font-size:19px}
.aj-panchang-location__field input{width:100%;min-width:0;padding:8px 0;border:0;outline:0;background:transparent;color:#101a3b;font:inherit}
.aj-panchang-location>small{display:block;margin-top:4px;color:#777c89;font-size:10px;line-height:1.35}
.aj-panchang-location__results{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:50;display:none;overflow:auto;max-height:280px;border:1px solid #ded5c3;border-radius:11px;background:#fff;box-shadow:0 14px 34px #101a3b2b}
.aj-panchang-location__results.is-open{display:block}
.aj-panchang-location__results button{display:block;width:100%;padding:9px 12px;border:0;border-bottom:1px solid #eee8dc;text-align:left;background:#fff;cursor:pointer}
.aj-panchang-location__results button:last-child{border-bottom:0}
.aj-panchang-location__results button:hover{background:#fbf3df}
.aj-panchang-location__results strong,.aj-panchang-location__results small{display:block}
.aj-panchang-location__results strong{color:#101a3b;font-size:13px}
.aj-panchang-location__results small{margin-top:2px;color:#777c89;font-size:11px}

/* Keep the home location picker readable inside the Panchang grid. */
.aj-panchang-today .aj-panchang-today__inner{grid-template-columns:minmax(135px,.9fr) minmax(235px,1.35fr) repeat(6,minmax(100px,1fr)) minmax(132px,.9fr)}
.aj-panchang-today.has-bhadra .aj-panchang-today__inner{grid-template-columns:minmax(130px,.85fr) minmax(220px,1.3fr) repeat(7,minmax(96px,1fr)) minmax(130px,.85fr)}
.aj-panchang-today .aj-panchang-location{display:block;height:auto;min-width:0;width:100%;max-width:none;margin:0;padding:0;border:0;background:transparent;box-shadow:none;grid-column:2;align-self:center}
.aj-panchang-today .aj-panchang-location>label,
.aj-panchang-today .aj-panchang-location>small{max-width:100%;overflow-wrap:normal;word-break:normal}
.aj-panchang-today .aj-panchang-location__field{width:100%;min-width:0;box-sizing:border-box}
.aj-panchang-today .aj-panchang-location__field input{display:block;flex:1 1 auto;min-width:0;width:100%;box-sizing:border-box}

@media(min-width:901px) and (max-width:1250px){
  .aj-panchang-today .aj-panchang-today__inner{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .aj-panchang-today .aj-panchang-today__date{grid-column:span 2}
  .aj-panchang-today .aj-panchang-location{grid-column:span 2}
  .aj-panchang-today .aj-panchang-today__button{grid-column:span 2}
}
@media(max-width:900px){
  .aj-panchang-today .aj-panchang-today__inner{width:calc(100% - 28px);grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .aj-panchang-today .aj-panchang-today__date,
  .aj-panchang-today .aj-panchang-location,
  .aj-panchang-today .aj-panchang-today__button{grid-column:1/-1}
  .aj-panchang-today .aj-panchang-location{max-width:none}
  .aj-panchang-today .aj-panchang-location>label{font-size:12px}
  .aj-panchang-today .aj-panchang-location>small{font-size:11px}
}
